@schandlergarcia/sf-web-components 1.9.48 → 1.9.52
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/.a4drules/features/command-center-dashboard-rule.md +20 -7
- package/.a4drules/features/engine-dashboard-rule.md +302 -0
- package/.a4drules/features/phase2-data-pattern.md +166 -0
- package/.a4drules/features/pre-code-checklist.md +72 -0
- package/.a4drules/skills/command-center-builder/SKILL.md +635 -29
- package/.a4drules/skills/command-center-project/SKILL.md +4 -4
- package/.a4drules/skills/component-library/SKILL.md +1000 -27
- package/.a4drules/troubleshooting/graphql-introspection-failure.md +286 -0
- package/.a4drules/validation-requirements.md +211 -0
- package/.a4drules/webapp-data.md +353 -0
- package/.a4drules/webapp-ui.md +16 -0
- package/CHANGELOG.md +258 -0
- package/data/README.md +80 -17
- package/data/engine-command-center-prd.md +436 -0
- package/data/schema.graphql +292 -0
- package/package.json +1 -1
- package/scripts/generate-schema-from-sample.mjs +370 -0
- package/scripts/postinstall.mjs +94 -0
- package/scripts/reset-command-center.sh +317 -3
|
@@ -32,10 +32,10 @@ src/
|
|
|
32
32
|
├── features/ # Feature modules (global-search)
|
|
33
33
|
│ └── global-search/ # Search API, components, hooks
|
|
34
34
|
├── components/
|
|
35
|
-
│ ├── library/ #
|
|
36
|
-
│ ├── workspace/ # ComponentRegistry
|
|
35
|
+
│ ├── library/ # Component library (.tsx/.jsx - TypeScript migration in progress)
|
|
36
|
+
│ ├── workspace/ # ComponentRegistry (schema renderer)
|
|
37
37
|
│ ├── pages/ # Dashboard pages (CommandCenter.tsx wraps active dashboard)
|
|
38
|
-
│ ├── ui/ # shadcn/ui components (button, card, dialog, etc.)
|
|
38
|
+
│ ├── ui/ # shadcn/ui components (button, card, dialog, etc.) - TypeScript
|
|
39
39
|
│ ├── alerts/ # StatusAlert (CVA + Lucide)
|
|
40
40
|
│ └── layouts/ # CardLayout (uses shadcn Card)
|
|
41
41
|
└── stubs/ # No-op stubs for standalone dev (sdk-data, webapp-experimental, agentforce)
|
|
@@ -81,7 +81,7 @@ Configured in both `vite.config.ts` and `tsconfig.json`:
|
|
|
81
81
|
|
|
82
82
|
- **Dashboard pages** go in `src/components/pages/`. Wire into `CommandCenter.tsx` by importing and rendering.
|
|
83
83
|
- **Outer app pages** go in `src/pages/` or `src/features/*/pages/`. Wire into `src/routes.tsx`.
|
|
84
|
-
- **TypeScript** for
|
|
84
|
+
- **TypeScript** preferred for all code (`.tsx`/`.ts`). Core UI components converted to TypeScript. Legacy `.jsx` files being migrated.
|
|
85
85
|
- **Component library** is a vendored copy from command-center-starter — not an npm package. Changes sync manually.
|
|
86
86
|
- Vite config has `loader: { '.js': 'jsx' }` in `optimizeDeps` to support the `.js`→JSX library files.
|
|
87
87
|
- **Reset script:** `npm run reset:command-center` wipes custom dashboards and restores blank canvas.
|