Repository navigation
Description
Context
PR #56 (feat/mobile-menu-drawer) was developed before the /blog routes landed on main. When merging main back into the branch in commit ae1fcc3, the Chrome.tsx integration was parked: Chrome.tsx was reset to main's version verbatim and lib/sections.ts was deleted. The drawer's other pieces still ship in the PR:
components/site/MobileMenu.tsx(compiles standalone with inlined section constants)- The
.mm-toggle/ overlay / panel block inapp/globals.css - The
--mm-iaugmentation intypes/css.d.ts
…but they're unreferenced. The mobile menu does not render until Chrome.tsx is re-wired.
The rollback was the right call short-term — main's Chrome.tsx had picked up next/link, /#section anchors (required so the navbar works from /blog/* routes), and a new Blog link, all of which would have made hand-stitching a hybrid risky. Easier to re-do the integration cleanly on top of main than to defend the merge resolution in review.
What needs to happen
- Re-import and render
MobileMenuinsideChrome.tsx, after the Litepaper link in the right cluster. - Add
mobileOpenstate + ahandleMobileOpenChangecallback (useCallback) passed in asonOpenChange. - Compute
toggleTone:mobileOpen ? \"paper\" : onDark ? \"ink\" : \"paper\". Pass as thetoneprop. - Hide desktop links on phones: add
hidden ... md:flexto the Docs / Blog / Litepaper links so the drawer toggle replaces them <md. Don't break theborder-b border-current pb-[2px]migration on Docs/Blog. - Add Blog to
MobileMenu.tsx'sEXTERNALlist (between Docs and Litepaper,external: false) so the drawer matches the desktop nav. - Decide on
lib/sections.ts— if Chrome and MobileMenu both want the sameSECTION_IDS/NAV_SECTIONS/DARK_SECTIONS, re-extract; otherwise leave inline in both.
Pointers
- Last working integration: commit
c240b60(pre-mergeHEADof this branch). - Verbatim
mainbaseline: commitae1fcc3(the merge commit). - Diff that needs reapplying lives in
c240b60..ae1fcc3^1 -- components/site/Chrome.tsx lib/sections.ts.
Verification
pnpm lint && pnpm test && pnpm buildmust pass.- Manual smoke at
/,/on a <md viewport,/blog/,/blog/<slug>— see the verification block in the original plan.
Tracked from PR #56.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
feat(nav): re-wire MobileMenu into Chrome on top of main's nav