@schandlergarcia/sf-web-components 1.9.57 → 1.9.59
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,36 @@ 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.59] - 2026-04-01
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **src/templates/config/routes.tsx.template** - Restored navigation bar on Home and Accounts pages
|
|
12
|
+
- Issue: Routes were missing `showNavBar: true` in the handle object
|
|
13
|
+
- AppLayout checks for `handle.showNavBar === true` to determine whether to render the nav bar
|
|
14
|
+
- Without this flag, nav bar was hidden even though pages had `showInNavigation: true`
|
|
15
|
+
- Added `showNavBar: true` to Home and Accounts route handles
|
|
16
|
+
- Now matches the reset script pattern which already had this flag
|
|
17
|
+
- Navigation bar now appears on outer app pages (Home, Accounts) as expected
|
|
18
|
+
|
|
19
|
+
### Context
|
|
20
|
+
The outer app (Home, Accounts pages) uses neutral shadcn styling, NOT Engine brand colors. Engine branding (#5BC8C8 teal, coral, orange) is only applied inside `.heroui-scope` (CommandCenter wrapper around dashboards). This is intentional.
|
|
21
|
+
|
|
22
|
+
## [1.9.58] - 2026-04-01
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
- **scripts/reset-command-center.sh** - Fixed reset pointing to old __examples__ Home page
|
|
26
|
+
- Issue: Reset routes.tsx imported Home from `./features/object-search/__examples__/pages/Home` (old style with SearchBar component)
|
|
27
|
+
- But reset script creates `src/pages/Home.tsx` with new styled template (shadcn Input/Button)
|
|
28
|
+
- Result: Routes pointed to wrong file, so users saw old style __examples__ page instead of new template
|
|
29
|
+
- Solution: Changed reset routes.tsx to import Home from `./pages/Home` (matches postinstall routes.tsx.template)
|
|
30
|
+
- Now reset uses the styled Home.tsx it creates, not the old __examples__ version
|
|
31
|
+
|
|
32
|
+
### Context
|
|
33
|
+
- **Postinstall routes.tsx.template**: Already correct - imports from `./pages/Home` ✓
|
|
34
|
+
- **Reset script routes**: Was importing from `./features/object-search/__examples__/pages/Home` ✗ (now fixed)
|
|
35
|
+
- The __examples__ directory contains reference implementations but should not be used in actual routes
|
|
36
|
+
- Routes should point to the templates installed in `src/pages/`
|
|
37
|
+
|
|
8
38
|
## [1.9.57] - 2026-04-01
|
|
9
39
|
|
|
10
40
|
### Fixed
|
package/package.json
CHANGED
|
@@ -251,7 +251,7 @@ echo "→ Updating ${ROUTES}..."
|
|
|
251
251
|
cat > "$ROUTES" << 'ROUTES_EOF'
|
|
252
252
|
import type { RouteObject } from 'react-router';
|
|
253
253
|
import AppLayout from './appLayout';
|
|
254
|
-
import Home from './
|
|
254
|
+
import Home from './pages/Home';
|
|
255
255
|
import AccountSearch from './features/object-search/__examples__/pages/AccountSearch';
|
|
256
256
|
import AccountObjectDetailPage from './features/object-search/__examples__/pages/AccountObjectDetailPage';
|
|
257
257
|
import NotFound from './pages/NotFound';
|
|
@@ -13,12 +13,12 @@ export const routes: RouteObject[] = [
|
|
|
13
13
|
{
|
|
14
14
|
index: true,
|
|
15
15
|
element: <Home />,
|
|
16
|
-
handle: { showInNavigation: true, label: "Home" }
|
|
16
|
+
handle: { showInNavigation: true, showNavBar: true, label: "Home" }
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
path: 'accounts',
|
|
20
20
|
element: <AccountSearch />,
|
|
21
|
-
handle: { showInNavigation: true, label: "Accounts" }
|
|
21
|
+
handle: { showInNavigation: true, showNavBar: true, label: "Accounts" }
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
path: 'accounts/:recordId',
|