Document Dynamic Nav system β nav-config.json, useNav hook, component wiring
π€ kelly
Created
11 May 2026, 9:48 am
No dependencies. Click "Add" to link a blocking task.
No tasks depend on this one.
Write wiki page for the dynamic navigation system.
Cover:
- nav-config.json as single source of truth for href/label/visibility
- /api/nav-config route serving at runtime
- useNav() hook in lib/navItems.ts β fetches from API, resolves icons from static ICON_REGISTRY
- Updated components: NavRail.tsx, MobileNav.tsx, TopBar.tsx, CommandPalette.tsx
- STATIC_NAV fallback for SSR/build-time
- How to add a new nav entry: edit nav-config.json + add icon to ICON_REGISTRY
- No rebuild needed for route changes
- See: nav-config.json, lib/navItems.ts, app/api/nav-config/route.ts
No review requested. Click "Request review" to flag this task for Robbie to check.