@schandlergarcia/sf-web-components 1.9.46 → 1.9.47

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
@@ -73,6 +73,34 @@ Between versions 1.9.29 and 1.9.42, a critical inconsistency existed that broke
73
73
 
74
74
  ---
75
75
 
76
+ ## [1.9.47] - 2026-04-01
77
+
78
+ ### Fixed
79
+ - **scripts/reset-command-center.sh** - Now removes ALL custom pages, not just files matching `*Dashboard*` pattern
80
+ - Issue: `EngineCommandCenter.tsx` wasn't removed because it doesn't match `*Dashboard*` pattern
81
+ - Cause: Script only looked for `*Dashboard*.jsx` and `*Dashboard*.tsx` files
82
+ - Fix: Changed logic to remove all `.jsx` and `.tsx` files in `src/pages/` except template files
83
+ - Template files (kept): `Home.tsx`, `Search.tsx`, `NotFound.tsx`, `BlankDashboard.tsx`
84
+ - Now removes: `EngineCommandCenter.tsx`, `MyDashboard.tsx`, `CustomPage.tsx`, etc.
85
+
86
+ ### Changed
87
+ - Reset script message updated from "Removing custom dashboards..." to "Removing custom pages..." to better reflect behavior
88
+ - Added explicit keep-list of template files for clarity
89
+
90
+ ### Technical Details
91
+ Previous pattern:
92
+ ```bash
93
+ for f in src/pages/*Dashboard*.jsx src/pages/*Dashboard*.tsx; do
94
+ ```
95
+
96
+ New approach:
97
+ ```bash
98
+ KEEP_FILES=("Home.tsx" "Search.tsx" "NotFound.tsx" "BlankDashboard.tsx")
99
+ # Remove all .jsx/.tsx except templates
100
+ ```
101
+
102
+ ---
103
+
76
104
  ## [1.9.46] - 2026-04-01
77
105
 
78
106
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schandlergarcia/sf-web-components",
3
- "version": "1.9.46",
3
+ "version": "1.9.47",
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",
@@ -34,24 +34,42 @@ echo "║ Reset App → Baseline State ║"
34
34
  echo "╚════════════════════════════════════════════════╝"
35
35
  echo ""
36
36
 
37
- # ── 1. Remove custom dashboard pages (keep library & workspace) ─────────────
37
+ # ── 1. Remove custom dashboard/page files (keep templates) ─────────────────
38
38
 
39
- echo "→ Removing custom dashboards…"
39
+ echo "→ Removing custom pages…"
40
+
41
+ # List of template files that should NOT be removed
42
+ KEEP_FILES=("Home.tsx" "Search.tsx" "NotFound.tsx" "BlankDashboard.tsx")
40
43
 
41
44
  removed=0
42
- for f in src/pages/*Dashboard*.jsx src/pages/*Dashboard*.tsx; do
43
- if [ -f "$f" ]; then
44
- # Don't remove BlankDashboard.tsx (it's the template)
45
- if [[ "$(basename "$f")" != "BlankDashboard.tsx" ]]; then
46
- rm "$f"
47
- echo " ✓ Removed $(basename "$f")"
48
- removed=$((removed + 1))
45
+
46
+ # Remove all .jsx and .tsx files in src/pages/ except templates
47
+ if [ -d "src/pages" ]; then
48
+ for f in src/pages/*.jsx src/pages/*.tsx; do
49
+ if [ -f "$f" ]; then
50
+ filename="$(basename "$f")"
51
+
52
+ # Check if this file should be kept
53
+ should_keep=false
54
+ for keep in "${KEEP_FILES[@]}"; do
55
+ if [[ "$filename" == "$keep" ]]; then
56
+ should_keep=true
57
+ break
58
+ fi
59
+ done
60
+
61
+ # Remove if not in keep list
62
+ if [ "$should_keep" = false ]; then
63
+ rm "$f"
64
+ echo " ✓ Removed $(basename "$f")"
65
+ removed=$((removed + 1))
66
+ fi
49
67
  fi
50
- fi
51
- done
68
+ done
69
+ fi
52
70
 
53
71
  if [ "$removed" -eq 0 ]; then
54
- echo " (no custom dashboards found)"
72
+ echo " (no custom pages found)"
55
73
  fi
56
74
  echo ""
57
75