@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
- - "**/components/pages/*.jsx"
4
- - "**/components/pages/*.tsx"
5
- - "**/components/pages/CommandCenter.tsx"
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/pages/`.
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 should be `.tsx`** — TypeScript is preferred for type safety. Use `.jsx` only if types are not available.
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 `.jsx` files in `src/components/pages/` and update `CommandCenter.tsx` to import your dashboard. If you only describe what you would build without creating the files, the dashboard will not render. Verify the files exist after writing them.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schandlergarcia/sf-web-components",
3
- "version": "1.9.18",
3
+ "version": "1.9.19",
4
4
  "description": "Reusable Salesforce web components library with Tailwind CSS v4 and shadcn/ui",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",