Loading...
Loading...
Compare original and translation side by side
building-ui-bundle-frontendgenerating-ui-bundle-featuresusing-ui-bundle-salesforce-datadeploying-ui-bundlegenerating-lightning-appbuilding-ui-bundle-frontendgenerating-ui-bundle-featuresusing-ui-bundle-salesforce-datadeploying-ui-bundlegenerating-lightning-appUI Bundle scaffold (sf template generate ui-bundle)
v
Install dependencies (npm install)
v
Bundle metadata (uibundle-meta.xml, ui-bundle.json)
v
CSP Trusted Sites (if external domains needed)UI Bundle 脚手架(sf template generate ui-bundle)
v
安装依赖(npm install)
v
Bundle元数据(uibundle-meta.xml, ui-bundle.json)
v
CSP可信站点(如需外部域名)Search project code (src/) for existing implementations
v
Install dependencies (npm install)
v
Search, describe, and install features (auth, shadcn, search, navigation, GraphQL)
v
Resolve conflicts (two-pass: --on-conflict error, then --conflict-resolution)
v
Integrate __example__ files into target files, then delete them搜索项目代码(src/)中的现有实现
v
安装依赖(npm install)
v
搜索、描述并安装功能(auth、shadcn、search、navigation、GraphQL)
v
解决冲突(两步:--on-conflict error,然后--conflict-resolution)
v
将__example__文件集成到目标文件中,然后删除这些示例文件Acquire schema (npm run graphql:schema)
v
Look up entity schema (graphql-search.sh, max 2 runs)
v
Generate queries/mutations (use verified field names, @optional on all record fields)
v
Validate and test (npx eslint, ask user before testing mutations)@salesforce/sdk-data获取 schema(npm run graphql:schema)
v
查找实体 schema(graphql-search.sh,最多运行2次)
v
生成查询/变更(使用已验证的字段名,所有记录字段添加@optional)
v
验证与测试(npx eslint,测试变更前需询问用户)@salesforce/sdk-dataLayout, navigation, header, and footer (appLayout.tsx)
v
Pages (routed views)
v
Components (widgets, forms, tables)布局、导航、页眉和页脚(appLayout.tsx)
v
页面(路由视图)
v
组件(小部件、表单、表格)Agentforce chat widget (if requested)
File upload API (if requested)Agentforce聊天组件(如已请求)
文件上传API(如已请求)Org authentication
v
Pre-deploy UI bundle build (npm install + npm run build)
v
Deploy metadata
v
Post-deploy configuration (permissions, profiles, named credentials, connected apps, custom settings, flow activation)
v
Import data (if data plan exists)
v
Fetch GraphQL schema and run codegen
*(Re-fetches schema from the deployed org -- required because the remote schema may differ from the local one used in Phase 3)*
v
Final UI bundle build (rebuilds with the deployed schema)Org身份验证
v
部署前UI bundle构建(npm install + npm run build)
v
部署元数据
v
部署后配置(权限、配置文件、命名凭据、连接应用、自定义设置、流激活)
v
导入数据(如有数据计划)
v
获取GraphQL schema并运行代码生成
*(从已部署的Org重新获取schema——这是必需的,因为远程schema可能与阶段3使用的本地schema不同)*
v
最终UI bundle构建(使用已部署的schema重新构建)Resolve site properties (siteName, appDevName, etc.)
v
Generate site metadata (Network, CustomSite, DigitalExperience)
v
Deploy site infrastructure解析站点属性(siteName、appDevName等)
v
生成站点元数据(Network、CustomSite、DigitalExperience)
v
部署站点基础设施UI Bundle App Build Plan: [App Name]
SCAFFOLDING:
- App name: [PascalCase name]
- Routing: [SPA rewrites, trailing slash config]
- External domains: [domains needing CSP registration]
FEATURES:
- [list of features to install: auth, shadcn, search, navigation, etc.]
DATA ACCESS:
- Objects: [Salesforce objects to query/mutate]
- Queries: [list of GraphQL queries needed]
- REST endpoints: [Apex REST or Connect API calls, if any]
UI:
- Layout: [description of app shell/navigation]
- Pages: [list of pages with routes]
- Components: [key components per page]
- Design direction: [aesthetic/style intent]
INTEGRATIONS (if applicable):
- Agentforce chat: [yes/no, agent ID if known]
- File upload: [yes/no, record linking pattern]
DEPLOYMENT:
- Target org: [org alias if known]
- Experience Site: [yes/no, site name if applicable]
SKILL LOAD ORDER:
1. generating-ui-bundle-metadata
2. generating-ui-bundle-features (if features needed)
3. using-ui-bundle-salesforce-data (if data access needed)
4. building-ui-bundle-frontend
5a. implementing-ui-bundle-agentforce-conversation-client (if chat requested)
5b. implementing-ui-bundle-file-upload (if file upload requested)
6. deploying-ui-bundle
7. generating-experience-react-site (if site requested)UI Bundle应用构建计划:[应用名称]
脚手架搭建:
- 应用名称:[大驼峰命名]
- 路由:[SPA重写、尾随斜杠配置]
- 外部域名:[需要注册CSP的域名]
功能:
- [待安装功能列表:auth、shadcn、search、navigation等]
数据访问:
- 对象:[需要查询/变更的Salesforce对象]
- 查询:[所需GraphQL查询列表]
- REST端点:[Apex REST或Connect API调用(如有)]
UI:
- 布局:[应用框架/导航描述]
- 页面:[带路由的页面列表]
- 组件:[每个页面的关键组件]
- 设计方向:[美学/风格意图]
集成(如适用):
- Agentforce聊天:[是/否,已知则填写代理ID]
- 文件上传:[是/否,记录关联模式]
部署:
- 目标Org:[已知则填写Org别名]
- Experience Site:[是/否,已知则填写站点名称]
技能加载顺序:
1. generating-ui-bundle-metadata
2. generating-ui-bundle-features(如需功能)
3. using-ui-bundle-salesforce-data(如需数据访问)
4. building-ui-bundle-frontend
5a. implementing-ui-bundle-agentforce-conversation-client(如已请求聊天)
5b. implementing-ui-bundle-file-upload(如已请求文件上传)
6. deploying-ui-bundle
7. generating-experience-react-site(如需站点)| Step | What to do | Why |
|---|---|---|
| 1. Load skill | Invoke the skill (e.g., via the Skill tool) for this phase | Gives you the current rules, patterns, constraints, and implementation guides |
| 2. Execute | Follow the loaded skill's workflow to generate code/config | The skill defines HOW to do the work correctly |
| 3. Verify | Run lint and build from the UI bundle directory | Catch errors before moving to the next phase |
| 4. Checkpoint | Confirm phase completion before proceeding | Ensures dependencies are satisfied for the next phase |
generating-ui-bundle-metadatasf template generate ui-bundlenpm installgenerating-ui-bundle-featuresnpm run buildusing-ui-bundle-salesforce-datanpx eslintbuilding-ui-bundle-frontendimplementing-ui-bundle-agentforce-conversation-clientimplementing-ui-bundle-file-uploaddeploying-ui-bundlegenerating-experience-react-site| 步骤 | 操作内容 | 原因 |
|---|---|---|
| 1. 加载技能 | 调用此阶段对应的技能(例如,通过Skill工具) | 获取当前规则、模式、约束和实施指南 |
| 2. 执行 | 按照加载的技能工作流生成代码/配置 | 技能定义了正确的工作方式 |
| 3. 验证 | 在UI bundle目录中运行lint和构建命令 | 进入下一阶段前捕获错误 |
| 4. 检查点 | 确认阶段完成后再继续 | 确保下一阶段的依赖条件已满足 |
generating-ui-bundle-metadatasf template generate ui-bundlenpm installgenerating-ui-bundle-featuresnpm run buildusing-ui-bundle-salesforce-datanpx eslintbuilding-ui-bundle-frontendimplementing-ui-bundle-agentforce-conversation-clientimplementing-ui-bundle-file-uploaddeploying-ui-bundlegenerating-experience-react-siteUI Bundle App Build Complete: [App Name]
PHASES COMPLETED:
[x] Phase 1: Scaffolding -- [app name] UI bundle created
[x] Phase 2: Features -- [list of features installed, or "skipped"]
[x] Phase 3: Data Access -- [list of entities wired up]
[x] Phase 4: UI -- [count] pages, [count] components
[x] Phase 5: Integrations -- [list or "none"]
[x] Phase 6: Deployment -- deployed to [org]
[x] Phase 7: Experience Site -- [site URL or "skipped"]
FILES GENERATED:
[list key files and their paths]
NEXT STEPS:
[any manual steps the user should take]UI Bundle应用构建完成:[应用名称]
已完成阶段:
[x] 阶段1:脚手架搭建——已创建[应用名称]UI bundle
[x] 阶段2:功能开发——[已安装功能列表,或“已跳过”]
[x] 阶段3:数据访问——[已连接的实体列表]
[x] 阶段4:UI——[数量]个页面,[数量]个组件
[x] 阶段5:集成——[集成列表或“无”]
[x] 阶段6:部署——已部署到[Org]
[x] 阶段7:Experience Site——[站点URL或“已跳过”]
生成的文件:
[关键文件及其路径列表]
后续步骤:
[用户应执行的手动步骤]node_modules/package.jsonnpm run builddist/npx eslint src/appLayout.tsx@salesforce/sdk-datanode_modules/package.jsonnpm run builddist/npx eslint src/appLayout.tsx@salesforce/sdk-databuilding-ui-bundle-frontendbuilding-ui-bundle-frontend