mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-07-31 04:01:24 +08:00
1008 B
1008 B
UI Platform Rule
All new UI must be built as a Salesforce Web Application.
When any task involves creating a new UI, frontend, page, dashboard, form, or user-facing feature:
- Use
sf webapp generateto scaffold the web app inside the SFDX project — do not usecreate-react-app, standalone Vite, or any other scaffold. - The app must live under
<sfdx-source>/webapplications/<AppName>/as a WebApplication bundle. - Do not build new UIs as LWC components, Aura components, or Visualforce pages.
For setup from the project root, use node scripts/setup-cli.mjs --help and the options documented there.
Data Access (MUST FOLLOW)
- Never hardcode data in the app. All data displayed in the UI must come from live Salesforce data fetching — no static arrays, mock objects, or placeholder values in production code.
- Follow
.a4drules/webapp-data.mdbefore writing any data access code. All implementation must match those rules (Data SDK, supported APIs, GraphQL workflow).