@salesforce/webapp-template-app-react-sample-b2e-experimental 1.91.0 → 1.92.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AGENT.md +17 -13
- package/dist/CHANGELOG.md +19 -0
- package/dist/force-app/main/default/data/Lease__c.json +711 -711
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/package.json +4 -4
- package/dist/package.json +1 -1
- package/dist/scripts/prepare-import-unique-fields.js +17 -3
- package/dist/scripts/setup-cli.mjs +318 -67
- package/package.json +3 -3
package/dist/AGENT.md
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
# Agent guide: SFDX project with React web app
|
|
2
2
|
|
|
3
|
-
This project is a **Salesforce DX (SFDX) project** containing a **React web application**. The
|
|
3
|
+
This project is a **Salesforce DX (SFDX) project** containing a **React web application**. The SFDX source path is defined in `sfdx-project.json` (`packageDirectories[].path`); the web app lives under `<sfdx-source>/webapplications/<appName>/`. Use this file when working in this directory.
|
|
4
|
+
|
|
5
|
+
## SFDX Source Path
|
|
6
|
+
|
|
7
|
+
The source path prefix is **not** always `force-app`. Read `sfdx-project.json` at the project root, take the first `packageDirectories[].path` value, and append `/main/default` to get `<sfdx-source>`. All paths below use this placeholder.
|
|
4
8
|
|
|
5
9
|
## Project layout
|
|
6
10
|
|
|
7
|
-
- **Project root**: this directory — SFDX project root. Contains `sfdx-project.json`,
|
|
8
|
-
- **React web app**:
|
|
11
|
+
- **Project root**: this directory — SFDX project root. Contains `sfdx-project.json`, the SFDX source directory, and (optionally) LWC/Aura.
|
|
12
|
+
- **React web app**: `<sfdx-source>/webapplications/<appName>/`
|
|
9
13
|
- Replace `<appName>` with the actual app folder name (e.g. `base-react-app`, or the name chosen when the app was generated).
|
|
10
14
|
- Entry: `src/App.tsx`
|
|
11
15
|
- Routes: `src/routes.tsx`
|
|
@@ -35,7 +39,7 @@ Root **does not** run the React app. The root `npm run build` is a no-op for the
|
|
|
35
39
|
**Always `cd` into the web app directory for dev/build/lint/test:**
|
|
36
40
|
|
|
37
41
|
```bash
|
|
38
|
-
cd
|
|
42
|
+
cd <sfdx-source>/webapplications/<appName>
|
|
39
43
|
```
|
|
40
44
|
|
|
41
45
|
| Command | Purpose |
|
|
@@ -54,24 +58,24 @@ cd force-app/main/default/webapplications/<appName>
|
|
|
54
58
|
|
|
55
59
|
This project includes **.a4drules/** at the project root. Follow them when generating or editing code.
|
|
56
60
|
|
|
57
|
-
When rules refer to
|
|
61
|
+
When rules refer to "web app directory" or `<sfdx-source>/webapplications/<appName>/`, resolve `<sfdx-source>` from `sfdx-project.json` and use the **actual app folder name** for this project.
|
|
58
62
|
|
|
59
63
|
## Deploying
|
|
60
64
|
|
|
61
|
-
From **this project root
|
|
65
|
+
From **this project root** (resolve the actual SFDX source path from `sfdx-project.json`):
|
|
62
66
|
|
|
63
67
|
```bash
|
|
64
|
-
# Build the React app first (replace <appName> with
|
|
65
|
-
cd
|
|
68
|
+
# Build the React app first (replace <sfdx-source> and <appName> with actual values)
|
|
69
|
+
cd <sfdx-source>/webapplications/<appName> && npm i && npm run build && cd -
|
|
66
70
|
|
|
67
|
-
# Deploy web app only
|
|
68
|
-
sf project deploy start --source-dir
|
|
71
|
+
# Deploy web app only (replace <sfdx-source> with actual path, e.g. force-app/main/default)
|
|
72
|
+
sf project deploy start --source-dir <sfdx-source>/webapplications --target-org <alias>
|
|
69
73
|
|
|
70
|
-
# Deploy all metadata
|
|
71
|
-
sf project deploy start --source-dir
|
|
74
|
+
# Deploy all metadata (use the top-level package directory, e.g. force-app)
|
|
75
|
+
sf project deploy start --source-dir <packageDir> --target-org <alias>
|
|
72
76
|
```
|
|
73
77
|
|
|
74
78
|
## Conventions (quick reference)
|
|
75
79
|
|
|
76
80
|
- **UI**: shadcn/ui + Tailwind. Import from `@/components/ui/...`.
|
|
77
|
-
- **Entry**: Keep `App.tsx` and routes in `src/`; add features as new routes or sections, don
|
|
81
|
+
- **Entry**: Keep `App.tsx` and routes in `src/`; add features as new routes or sections, don't replace the app shell but you may modify it to match the requested design.
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.92.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.92.0...v1.92.1) (2026-03-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **template:** make setup-cli data import idempotent with Apex-based insert ([#254](https://github.com/salesforce-experience-platform-emu/webapps/issues/254)) ([76ee673](https://github.com/salesforce-experience-platform-emu/webapps/commit/76ee673f1f13c117f33550dfbb2fff6870a038dc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.92.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.91.0...v1.92.0) (2026-03-11)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [1.91.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.90.4...v1.91.0) (2026-03-11)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|