@schandlergarcia/sf-web-components 1.9.22 → 1.9.24

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.
@@ -43,4 +43,4 @@ You MUST load the **command-center-builder** and **component-library** skills be
43
43
 
44
44
  14. **Heroicon names** — common correct names: `PaperAirplaneIcon` (not PlaneIcon), `BuildingOfficeIcon` (not HotelIcon), `BanknotesIcon` (not MoneyIcon), `ExclamationTriangleIcon` (not AlertIcon), `UserIcon` (not PersonIcon).
45
45
 
46
- 15. **Wire the dashboard as the home page.** After creating your dashboard and updating `CommandCenter.tsx`, also update `src/routes.tsx`: set `Home` as the index route (it renders CommandCenter which renders your dashboard) and move `Search` to `/search`. The dashboard must be the first thing users see at `/`.
46
+ 15. **Wire the dashboard as the home page.** After creating your dashboard and updating `CommandCenter.tsx`, you MUST also update `src/pages/Home.tsx` to render `CommandCenter` (replace any search interface with `import CommandCenter from "@/components/workspace/CommandCenter"; export default function HomePage() { return <CommandCenter />; }`), and update `src/routes.tsx` to set `Home` as the index route and move `Search` to `/search`. The dashboard must be the first thing users see at `/`.
@@ -183,6 +183,16 @@ export default function CommandCenter() {
183
183
  }
184
184
  ```
185
185
 
186
+ **Step 2.5:** Update `Home.tsx` to render `CommandCenter`:
187
+ ```tsx
188
+ // src/pages/Home.tsx
189
+ import CommandCenter from "@/components/workspace/CommandCenter";
190
+
191
+ export default function HomePage() {
192
+ return <CommandCenter />;
193
+ }
194
+ ```
195
+
186
196
  **Step 3:** Update `src/routes.tsx` to make the dashboard the home page. Replace the Search page index route with the Home/CommandCenter route:
187
197
  ```tsx
188
198
  // src/routes.tsx — change the index route
@@ -203,7 +213,8 @@ The `Home` page renders `CommandCenter`, which renders your dashboard. The Searc
203
213
  **Verify:** After writing all files, confirm:
204
214
  1. Your dashboard `.tsx` file exists in `src/pages/`
205
215
  2. `CommandCenter.tsx` (in `src/components/workspace/`) imports your dashboard (not `BlankDashboard`)
206
- 3. `src/routes.tsx` has `Home` as the index route and `Search` at `/search`
216
+ 3. `Home.tsx` (in `src/pages/`) imports and renders `CommandCenter` (not search interface)
217
+ 4. `src/routes.tsx` has `Home` as the index route and `Search` at `/search`
207
218
 
208
219
  ## Page Structure
209
220
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schandlergarcia/sf-web-components",
3
- "version": "1.9.22",
3
+ "version": "1.9.24",
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",
@@ -60,7 +60,7 @@ function copyDirectoryRecursive(source, target) {
60
60
 
61
61
  if (stat.isDirectory()) {
62
62
  count += copyDirectoryRecursive(sourcePath, targetPath);
63
- } else if (item.match(/\.(jsx|tsx|js|ts|css)$/)) {
63
+ } else if (item.match(/\.(jsx|tsx|js|ts|css|md)$/)) {
64
64
  try {
65
65
  fs.copyFileSync(sourcePath, targetPath);
66
66
  count++;