Skip to content

Commit 27d16a3

Browse files
RubenHalmanjunners
authored andcommitted
include example flows
1 parent 332cb8e commit 27d16a3

File tree

49 files changed

+3015
-543
lines changed

Some content is hidden

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

49 files changed

+3015
-543
lines changed

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default [
2525
},
2626
},
2727
{
28-
ignores: ["jest.config.ts"],
28+
ignores: ["jest.config.ts", "example-flows/**"],
2929
},
3030
perfectionist.configs["recommended-alphabetical"],
3131
perfectionist.configs["recommended-line-length"],

example-flows/.forceignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
2+
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
3+
#
4+
5+
package.xml
6+
7+
# LWC configuration files
8+
**/jsconfig.json
9+
**/.eslintrc.json
10+
11+
# LWC Jest
12+
**/__tests__/**

example-flows/.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file is used for Git repositories to specify intentionally untracked files that Git should ignore.
2+
# If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore
3+
# For useful gitignore templates see: https://github.com/github/gitignore
4+
5+
# Salesforce cache
6+
.sf/
7+
.sfdx/
8+
.localdevserver/
9+
deploy-options.json
10+
11+
# LWC VSCode autocomplete
12+
**/lwc/jsconfig.json
13+
14+
# LWC Jest coverage reports
15+
coverage/
16+
17+
# Logs
18+
logs
19+
*.log
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log*
23+
24+
# Dependency directories
25+
node_modules/
26+
27+
# Eslint cache
28+
.eslintcache
29+
30+
# MacOS system files
31+
.DS_Store
32+
33+
# Windows system files
34+
Thumbs.db
35+
ehthumbs.db
36+
[Dd]esktop.ini
37+
$RECYCLE.BIN/
38+
39+
# Local environment variables
40+
.env
41+
42+
# Python Salesforce Functions
43+
**/__pycache__/
44+
**/.venv/
45+
**/venv/

example-flows/.prettierignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# List files or directories below to ignore them when running prettier
2+
# More information: https://prettier.io/docs/en/ignore.html
3+
#
4+
5+
**/staticresources/**
6+
.localdevserver
7+
.sfdx
8+
.sf
9+
.vscode
10+
11+
coverage/

example-flows/.prettierrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"trailingComma": "none",
3+
"plugins": [
4+
"prettier-plugin-apex",
5+
"@prettier/plugin-xml"
6+
],
7+
"overrides": [
8+
{
9+
"files": "**/lwc/**/*.html",
10+
"options": { "parser": "lwc" }
11+
},
12+
{
13+
"files": "*.{cmp,page,component}",
14+
"options": { "parser": "html" }
15+
}
16+
]
17+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"ForceConfigControl.lightningflowscanner"
4+
]
5+
}

example-flows/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Salesforce DX Project: Next Steps
2+
3+
Now that you’ve created a Salesforce DX project, what’s next? Here are some documentation resources to get you started.
4+
5+
## How Do You Plan to Deploy Your Changes?
6+
7+
Do you want to deploy a set of changes, or create a self-contained application? Choose a [development model](https://developer.salesforce.com/tools/vscode/en/user-guide/development-models).
8+
9+
## Configure Your Salesforce DX Project
10+
11+
The `sfdx-project.json` file contains useful configuration information for your project. See [Salesforce DX Project Configuration](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm) in the _Salesforce DX Developer Guide_ for details about this file.
12+
13+
## Read All About It
14+
15+
- [Salesforce Extensions Documentation](https://developer.salesforce.com/tools/vscode/)
16+
- [Salesforce CLI Setup Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm)
17+
- [Salesforce DX Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_intro.htm)
18+
- [Salesforce CLI Command Reference](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference.htm)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"orgName": "Lightning Flow Scanner",
3+
"edition": "Developer",
4+
"features": ["EnableSetPasswordInApi"],
5+
"settings": {
6+
"lightningExperienceSettings": {
7+
"enableS1DesktopEnabled": true
8+
},
9+
"mobileSettings": {
10+
"enableS1EncryptedStoragePref2": false
11+
}
12+
}
13+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<apiVersion>51.0</apiVersion>
4+
<description>This flow demonstrates a violation of the rule &quot;Copy API Name&quot;.</description>
5+
<environments>Default</environments>
6+
<interviewLabel>Copy API Name {!$Flow.CurrentDateTime}</interviewLabel>
7+
<label>Copy API Name</label>
8+
<processMetadataValues>
9+
<name>BuilderType</name>
10+
<value>
11+
<stringValue>LightningFlowBuilder</stringValue>
12+
</value>
13+
</processMetadataValues>
14+
<processMetadataValues>
15+
<name>CanvasMode</name>
16+
<value>
17+
<stringValue>AUTO_LAYOUT_CANVAS</stringValue>
18+
</value>
19+
</processMetadataValues>
20+
<processMetadataValues>
21+
<name>OriginBuilderType</name>
22+
<value>
23+
<stringValue>LightningFlowBuilder</stringValue>
24+
</value>
25+
</processMetadataValues>
26+
<processType>Flow</processType>
27+
<screens>
28+
<name>Copy_1_of_mockscreen</name>
29+
<label>Copy 1 of mockscreen</label>
30+
<locationX>176</locationX>
31+
<locationY>242</locationY>
32+
<allowBack>true</allowBack>
33+
<allowFinish>true</allowFinish>
34+
<allowPause>true</allowPause>
35+
<showFooter>true</showFooter>
36+
<showHeader>true</showHeader>
37+
</screens>
38+
<screens>
39+
<name>mockscreen</name>
40+
<label>mockscreen</label>
41+
<locationX>176</locationX>
42+
<locationY>134</locationY>
43+
<allowBack>true</allowBack>
44+
<allowFinish>true</allowFinish>
45+
<allowPause>true</allowPause>
46+
<connector>
47+
<targetReference>Copy_1_of_mockscreen</targetReference>
48+
</connector>
49+
<showFooter>true</showFooter>
50+
<showHeader>true</showHeader>
51+
</screens>
52+
<start>
53+
<locationX>50</locationX>
54+
<locationY>0</locationY>
55+
<connector>
56+
<targetReference>mockscreen</targetReference>
57+
</connector>
58+
</start>
59+
<status>Active</status>
60+
</Flow>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<apiVersion>51.0</apiVersion>
4+
<description>This flow demonstrates how to resolve a violation of the rule &quot;Copy API Name&quot;.</description>
5+
<environments>Default</environments>
6+
<interviewLabel>Fix: Copy API Name {!$Flow.CurrentDateTime}</interviewLabel>
7+
<label>Fix: Copy API Name</label>
8+
<processMetadataValues>
9+
<name>BuilderType</name>
10+
<value>
11+
<stringValue>LightningFlowBuilder</stringValue>
12+
</value>
13+
</processMetadataValues>
14+
<processMetadataValues>
15+
<name>CanvasMode</name>
16+
<value>
17+
<stringValue>AUTO_LAYOUT_CANVAS</stringValue>
18+
</value>
19+
</processMetadataValues>
20+
<processMetadataValues>
21+
<name>OriginBuilderType</name>
22+
<value>
23+
<stringValue>LightningFlowBuilder</stringValue>
24+
</value>
25+
</processMetadataValues>
26+
<processType>Flow</processType>
27+
<screens>
28+
<name>mockscreen</name>
29+
<label>mockscreen</label>
30+
<locationX>176</locationX>
31+
<locationY>134</locationY>
32+
<allowBack>true</allowBack>
33+
<allowFinish>true</allowFinish>
34+
<allowPause>true</allowPause>
35+
<connector>
36+
<targetReference>second_mockscreen</targetReference>
37+
</connector>
38+
<showFooter>true</showFooter>
39+
<showHeader>true</showHeader>
40+
</screens>
41+
<screens>
42+
<name>second_mockscreen</name>
43+
<label>second mockscreen</label>
44+
<locationX>176</locationX>
45+
<locationY>242</locationY>
46+
<allowBack>true</allowBack>
47+
<allowFinish>true</allowFinish>
48+
<allowPause>true</allowPause>
49+
<showFooter>true</showFooter>
50+
<showHeader>true</showHeader>
51+
</screens>
52+
<start>
53+
<locationX>50</locationX>
54+
<locationY>0</locationY>
55+
<connector>
56+
<targetReference>mockscreen</targetReference>
57+
</connector>
58+
</start>
59+
<status>Active</status>
60+
</Flow>

0 commit comments

Comments
 (0)