Skip to content

Commit ac8019a

Browse files
feat(app): wire /map route + nav link
Lazy-loaded route in router.tsx and a "map" entry in the NAV_LINKS array of NavBar.tsx so the new MapPage is reachable as a top-level section alongside specs/plots/libraries/stats/palette/mcp. Refs #5646 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 47cf1bc commit ac8019a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/components/NavBar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const DEBUG_CLICK_WINDOW_MS = 800;
1010
const NAV_LINKS: { label: string; to: string; short?: string }[] = [
1111
{ label: 'specs', to: '/specs' },
1212
{ label: 'plots', to: '/plots' },
13+
{ label: 'map', to: '/map' },
1314
{ label: 'libraries', to: '/libraries', short: 'libs' },
1415
{ label: 'stats', to: '/stats' },
1516
{ label: 'palette', to: '/palette', short: 'pal' },

app/src/router.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const router = createBrowserRouter([
3636
{ path: 'plots', lazy: () => import('./pages/PlotsPage').then(m => ({ Component: m.PlotsPage })) },
3737
{ path: 'specs', lazy: () => import('./pages/SpecsListPage').then(m => ({ Component: m.SpecsListPage })) },
3838
{ path: 'libraries', lazy: () => import('./pages/LibrariesPage').then(m => ({ Component: m.LibrariesPage })) },
39+
{ path: 'map', lazy: () => import('./pages/MapPage').then(m => ({ Component: m.MapPage })) },
3940
{ path: 'palette', lazy: () => import('./pages/PalettePage').then(m => ({ Component: m.PalettePage })) },
4041
{ path: 'about', lazy: () => import('./pages/AboutPage').then(m => ({ Component: m.AboutPage })) },
4142
{ path: 'legal', lazy: () => import('./pages/LegalPage').then(m => ({ Component: m.LegalPage })) },

0 commit comments

Comments
 (0)