Issue 1531
enhancement: Developer site shell: home page, header with light and dark toggle, searchable side navigation
Back to our planOpen
enhancementfrontenduxpriority: medium
Problem
The developer pages need a frame that looks like the site and is built for development: the developer home page, a header with a light and dark toggle, and a side navigation that is easy to search and use on a phone.
Proposed fix
- A developer layout from the site's own header, logo, layouts, typography and kit (no parallel design): a header with links to the home page, the showcase and the knowledge map (#1446), and the light and dark toggle at the top right, built from the kit's
Switch. It starts from the visitor's device setting, and the choice switches the whole page, header and navigation included, through the existingThemeProvider(setTheme). - A side navigation listing the showcase's groups, components and configurations, with a search box that filters as you type; on a phone it becomes a slide-out menu opened from the header (a hamburger menu).
- The developer home page at
/: panels linking to the showcase, the knowledge map and the other developer pages. - Built to the mockup the owner approves; follow the visual design review skill.
Existing work compared
Searched open and closed issues on 2026-11-26 (showcase, Storybook, gallery, toggle, switch, developer site, examples, theme readiness, usage, side navigation). Part of epic #1528, which replaces #1424 (owner decision 2026-11-26, recorded there). No other issue covers this step.
Acceptance criteria
- Not done: Built to the approved mockup, checked at the six widths in light and dark
- Not done: The toggle switches every part of the page; the choice is kept across pages
- Not done: Search finds a component or a configuration by name and jumps to it; keyboard and screen-reader usable; an axe check
- Not done: On a phone the side navigation is a slide-out menu, with no sideways scrolling
- Not done: Only kit components and theme tokens (guard rails 2 and 3); tests first
Files likely touched
src/app/(developer)/, src/platform/ui/, src/platform/theme/ThemeSelector.client.tsx, src/platform/ui/README.md, docs/ui/component-set.md
Must not touch
src/modules/, src/payload.config.ts, ops/
Open questions
- The mockup is approved (2026-11-26, see the epic #1528). Waits for the toggle switch.
Area
frontend, ux
Priority
priority: medium
Generated by Claude Code, opens in a new tab