@schandlergarcia/sf-web-components 1.9.18 → 1.9.19
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
paths:
|
|
3
|
-
- "**/
|
|
4
|
-
- "**/
|
|
5
|
-
- "**/components/
|
|
3
|
+
- "**/pages/*.jsx"
|
|
4
|
+
- "**/pages/*.tsx"
|
|
5
|
+
- "**/components/workspace/CommandCenter.tsx"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Command Center Dashboard Rules (MANDATORY)
|
|
9
9
|
|
|
10
|
-
These rules are non-negotiable for all files in `src/components/
|
|
10
|
+
These rules are non-negotiable for all dashboard files in `src/pages/` and workspace files in `src/components/workspace/`.
|
|
11
11
|
|
|
12
12
|
## Before writing ANY code, load these skills
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ You MUST load the **command-center-builder** and **component-library** skills be
|
|
|
15
15
|
|
|
16
16
|
## Critical constraints
|
|
17
17
|
|
|
18
|
-
1. **File extension
|
|
18
|
+
1. **File extension MUST be `.tsx`** — This is a TypeScript project. All React components MUST use `.tsx` extension, never `.jsx`. All type definitions are available from the component library.
|
|
19
19
|
|
|
20
20
|
2. **Use ONLY library components** from `@/components/library` for cards, charts, tables, lists. Never hand-roll HTML cards (`<div className="bg-white border rounded...">`).
|
|
21
21
|
|
|
@@ -15,7 +15,7 @@ These rules apply when building dashboards rendered by `CommandCenter.tsx`. For
|
|
|
15
15
|
|
|
16
16
|
**Every time you build a dashboard, you MUST follow these non-negotiable rules. Violations are the #1 cause of rejected dashboards.**
|
|
17
17
|
|
|
18
|
-
1. **Actually write files to disk.** Use the file-writing tools to create `.
|
|
18
|
+
1. **Actually write files to disk.** Use the file-writing tools to create `.tsx` files (NOT `.jsx`) in `src/pages/` and update `CommandCenter.tsx` to import your dashboard. This is a TypeScript project - all React components MUST use `.tsx` extension. If you only describe what you would build without creating the files, the dashboard will not render. Verify the files exist after writing them.
|
|
19
19
|
|
|
20
20
|
2. **Use ONLY library components** from `@/components/library` for all cards, charts, tables, lists, and feeds. The library has 30+ components — there is no reason to hand-roll HTML. See the component table below.
|
|
21
21
|
|
package/package.json
CHANGED