Skip to content

Commit e0c97ea

Browse files
authored
Merge pull request #1 from Lightning-Flow-Scanner/v1-dev
init
2 parents 691f046 + 3f80006 commit e0c97ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1548
-70
lines changed

README.md

Lines changed: 49 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,60 @@
1-
# Lightning Web Component - Development Preview
1+
[![Lightning Flow Scanner](media/banner.png)](https://github.com/Lightning-Flow-Scanner)
2+
Pinpoint deviations from Industry Best Practices in Salesforce Flows and ensure standards of business automation excellence.
23

3-
**Note: This project is still in development.**
4+
[![Demo](media/lfsapp.gif)](https://github.com/Lightning-Flow-Scanner)
45

5-
## Overview
6+
## Features
67

7-
This project aims to integrate a core module into a Lightning Web Component (LWC) in Salesforce. The core module is successfully being loaded as a static resource, although it seemingly required several changes on the core module. We are currently able to show the rules.
8+
- **Flow Overview**: Displays a list of all flows in your Salesforce org.
9+
- **Scan Flow**: Allows users to scan the metadata of a selected flow.
10+
- **Flow Analysis**: Provides detailed metadata analysis of the selected flow.
811

9-
## Core Module
12+
## Using the Lightning Flow Scanner
1013

11-
The core module is loaded as a single JavaScript file static resource. The JavaScript file can be generated using `ncc` on the core module as follows:
14+
1) Open the App Launcher:
15+
- Click on the App Launcher icon in the top-left corner of your Salesforce interface.
16+
- Search for "Flow Scanner" in the App Launcher search bar.
17+
- Click on the "Flow Scanner" app to open it.
1218

13-
`git clone https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core.git`
19+
2) Scan a Flow:
20+
- To scan a flow, click the "Scan" button next to the flow you want to analyze.
1421

15-
`cd lightning-flow-scanner-core`
22+
## Project Structure
1623

17-
`git checkout toolingapi`
24+
The project is organized into two main directories:
1825

19-
`npx rollup -c rollup.config.js`
26+
1) force-app: The main application(tab, page etc)
27+
2) lfs_component: Contains the Lightning Flow Scanner Component, used by the main application.
2028

21-
## Development Status
29+
This structure allows for clear separation of the core scanning functionality and the main application logic. By modularizing the core scanning functionality, we ensure easier maintenance and updates. Additionally, this setup encourages other Salesforce apps to integrate our functionality, promoting collaboration and expanding the potential use cases for the Lightning Flow Scanner.
2230

23-
Despite the current state, this project demonstrates promising progress towards realizing a Lightning Web Component.
31+
## Development
32+
33+
### Development Flow
34+
35+
1) Authorize Your Salesforce Org:
36+
Authorize your Salesforce org to set up a connection between your local development environment and the Salesforce org:
37+
38+
```sh
39+
sfdx force:auth:web:login -d -a <YourOrgAlias>
40+
```
41+
42+
2) Install dependency
43+
44+
Install the Lightning Flow Scanner Component required for core functionality:
45+
46+
```sh
47+
sfdx force:package:install --package 04tDn0000011NplIAE --wait 10 -u <YourOrgAlias>
48+
```
49+
50+
3) Push Source to Your Org:
51+
Push the latest source to your og:
52+
53+
```sh
54+
sfdx force:source:push
55+
```
56+
57+
3) Pull Source from Your Org:
58+
```sh
59+
sfdx force:source:pull
60+
```

config/project-scratch-def.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
},
99
"mobileSettings": {
1010
"enableS1EncryptedStoragePref2": false
11-
}
11+
},
12+
"securitySettings": {
13+
"sessionSettings": {
14+
"lockerServiceNext": true
15+
}
16+
}
1217
}
1318
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<brand>
4+
<headerColor>#203271</headerColor>
5+
<logo>logo</logo>
6+
<logoVersion>1</logoVersion>
7+
<shouldOverrideOrgTheme>false</shouldOverrideOrgTheme>
8+
</brand>
9+
<description>Lightning Flow Scanner</description>
10+
<formFactors>Small</formFactors>
11+
<formFactors>Large</formFactors>
12+
<isNavAutoTempTabsDisabled>true</isNavAutoTempTabsDisabled>
13+
<isNavPersonalizationDisabled>true</isNavPersonalizationDisabled>
14+
<label>Flow Scanner</label>
15+
<navType>Standard</navType>
16+
<tabs>Lightning_Flow_Scanner</tabs>
17+
<uiType>Lightning</uiType>
18+
</CustomApplication>

force-app/main/default/aura/.eslintrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<aura:application access="GLOBAL" extends="ltng:outApp">
2+
<aura:dependency resource="c:lightningFlowScannerApp" />
3+
</aura:application>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<apiVersion>58.0</apiVersion>
4+
<description>A Lightning Application Bundle</description>
5+
</AuraDefinitionBundle>

force-app/main/default/aura/LightningFlowScannerApp/LightningFlowScannerApp.app

Lines changed: 0 additions & 3 deletions
This file was deleted.

force-app/main/default/aura/LightningFlowScannerApp/LightningFlowScannerApp.app-meta.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.
12.8 KB
Binary file not shown.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ContentAsset xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<isVisibleByExternalUsers>false</isVisibleByExternalUsers>
4+
<language>en_US</language>
5+
<masterLabel>logo</masterLabel>
6+
<relationships>
7+
<organization>
8+
<access>VIEWER</access>
9+
</organization>
10+
</relationships>
11+
<versions>
12+
<version>
13+
<number>1</number>
14+
<pathOnClient>logo.png</pathOnClient>
15+
</version>
16+
</versions>
17+
</ContentAsset>

0 commit comments

Comments
 (0)