@schandlergarcia/sf-web-components 1.9.55 → 1.9.56

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/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.9.56] - 2026-04-01
9
+
10
+ ### Fixed
11
+ - **scripts/reset-command-center.sh** - Fixed reset script creating broken Home.tsx
12
+ - Issue 1: Home.tsx template used UIButton/UIInput (command center components) instead of shadcn Button/Input (outer app components)
13
+ - Issue 2: Home.tsx "Browse All" button navigated to `/accounts` route that doesn't exist after reset → 404
14
+ - Issue 3: Search button navigated to `/accounts` instead of `/search`
15
+ - Solution: Updated Home.tsx template in reset script to:
16
+ - Use shadcn `Button`/`Input` from `@/components/ui/` (correct for outer app context)
17
+ - Removed "Browse All" button (baseline state = no accounts feature)
18
+ - Changed search to navigate to `/search?q=...` instead of `/accounts`
19
+ - Now reset creates a working baseline app with no 404 errors
20
+
21
+ ### Context
22
+ The reset script creates a baseline app state (Home search page + Search page + BlankDashboard). The routes.tsx reset only includes `/` (Home) and `/search` (Search) - no `/accounts` route. But Home.tsx was trying to navigate to `/accounts`, causing 404.
23
+
24
+ The postinstall routes.tsx.template DOES include `/accounts` route (pointing to __examples__/AccountSearch), but the reset script deliberately overwrites this with a simpler baseline that doesn't include accounts functionality.
25
+
8
26
  ## [1.9.55] - 2026-04-01
9
27
 
10
28
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schandlergarcia/sf-web-components",
3
- "version": "1.9.55",
3
+ "version": "1.9.56",
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",
@@ -152,8 +152,8 @@ echo "→ Restoring ${HOME} from template..."
152
152
  cat > "$HOME" << 'HOME_EOF'
153
153
  import { useState } from "react";
154
154
  import { useNavigate } from "react-router";
155
- import UIInput from '@/components/library/ui/UIInput';
156
- import UIButton from '@/components/library/ui/UIButton';
155
+ import { Input } from "@/components/ui/input";
156
+ import { Button } from "@/components/ui/button";
157
157
  import { Search } from "lucide-react";
158
158
 
159
159
  export default function HomePage() {
@@ -163,9 +163,7 @@ export default function HomePage() {
163
163
  const handleSearch = () => {
164
164
  const trimmed = searchQuery.trim();
165
165
  if (trimmed) {
166
- navigate(`/accounts?search=${encodeURIComponent(trimmed)}`);
167
- } else {
168
- navigate('/accounts');
166
+ navigate(`/search?q=${encodeURIComponent(trimmed)}`);
169
167
  }
170
168
  };
171
169
 
@@ -186,7 +184,7 @@ export default function HomePage() {
186
184
  <div className="flex flex-col gap-4">
187
185
  <div className="relative">
188
186
  <Search className="absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-slate-400" />
189
- <UIInput
187
+ <Input
190
188
  type="text"
191
189
  value={searchQuery}
192
190
  onChange={(e) => setSearchQuery(e.target.value)}
@@ -196,12 +194,9 @@ export default function HomePage() {
196
194
  />
197
195
  </div>
198
196
  <div className="flex gap-3 justify-center">
199
- <UIButton onClick={handleSearch} variant="primary">
197
+ <Button onClick={handleSearch}>
200
198
  Search
201
- </UIButton>
202
- <UIButton onClick={() => navigate('/accounts')} variant="secondary">
203
- Browse All
204
- </UIButton>
199
+ </Button>
205
200
  </div>
206
201
  </div>
207
202
  </div>