← Corpus / dididecks-ai / sitemap

DididecksNav — shell-injected global header linking Scroll · TOC · Play · Changelog

Top-of-page nav auto-mounted on every shell-injected route (/toc/*, /play/*) and importable into consumer-owned routes (homepage, scroll-deck variants). Links derive from the consumer's deck registry — Scroll → first deck slug, TOC and Play → first deck + first variant. Brand slot lets each client deck drop in its own wordmark; default is a text wordmark sourced from the integration's `client` option. Reads `Astro.url.pathname` to flag the active link with `aria-current="page"`.

Path
sitemap/components/DididecksNav.md
Authors
Michael Staton

DididecksNav

Auto-mount vs. opt-in

  • Auto on every shell-injected route (/toc/*, /play/*).
  • Opt-in on consumer routes — the consumer imports it where its design language fits.

Brand override

<DididecksNav>
  <Wordmark slot="brand" />
</DididecksNav>

Status

  • ✅ Shipped Phase A+. Active-link state, brand slot, deck-registry-driven links all working.
  • ⚠️ Not yet re-tokenized to the --ddd-chrome-* namespace (Restore plan), though it’s lower-priority than DeckChrome.
  • ⚠️ Tier-awareness (showing Design System / Components links at non-private tiers) is Phase B.
  • [[DeckChrome]] — sibling nav primitive for inside-the-deck navigation.
  • [[DeckHeader]] — not yet built; Restore plan Step 3 sibling.
  • [[../routes/toc]], [[../routes/play-slot]] — auto-mount sites.
  • [[../../plans/Phase-A-Plus-In-Deck-Ranking-Shared-Nav-and-Play-Runtime]] — origin plan.