1The shared primary navigation for pages using the brand system. Use the
2component whose job matches the route:
3
4- `SiteNav` — full discovery navigation, sign-in, demo, and Get Started.
5- `SiteNavLogoOnly` — one Warp home link for gated and operational routes.
6 It is a server component and accepts no production content props.
7- `SiteNavFocused` — a constrained campaign action cluster with zero to two
8 utility links, optional standard sign-in, and one or two CTAs. It accepts
9 data only, never arbitrary action slots.
10
11Menus, Get Started choices, and sign-in destinations are code-owned in
12`src/components/brand-system/navigation-data.ts`. Use `SiteNav` without
13CMS data props on production pages. Edit that configuration to change
14links; do not call `getNavigation()` or publish a Sanity navigation edit.
15The catalog uses the same defaults and shows all three supported variants.
16
17## Existing event compatibility
18
19Page compositions must choose their existing telemetry contract explicitly;
20exposing a tracking option without wiring it on the page is not parity.
21`navigation-content.ts` provides compatibility profiles for the shared
22`SiteNav`:
23
24- `EXPLORE_NAV_TELEMETRY` preserves the former Explore navigation contract on
25 Home, Factories, Terminal, Agent CLI and Enterprise. Sign-in uses
26 `marketing_site_tracks.global.cta_login_in_header.click` with `{href,
27 surface}`: `explore-nav` on desktop and `factories-mobile-menu` in the
28 menu. Demo clicks retain `nav request demo button clicked` with
29 `{href: '/contact-sales', surface: 'desktop-nav' | 'mobile-menu'}`.
30- `STANDARD_NAV_TELEMETRY` preserves the former standard-site contract on
31 `/download` and `/download-preview`. Sign-in retains the same event and `{href, surface}`,
32 with `standard-nav` / `standard-mobile-menu`. Demo clicks retain the
33 existing event **without custom properties**.
34- `FACTORIES_NAV_TELEMETRY` preserves source-specific Factories outcomes:
35 `/qualification` remains the demo destination, demo controls emit no event,
36 and sign-in retains `factories-nav` / `factories-mobile-menu`.
37
38An explicit `null` desktop/mobile demo surface means event-only: no
39`data-track-props` attribute and an undefined SDK properties argument, not
40an empty object or a null payload. `false` means no tracking attributes and no
41event. Omitting the entire telemetry profile keeps shared defaults unchanged;
42it does not select a migration profile.
43
44`SiteNavFocused` does not infer events from CTA appearance or destination.
45The BSF/Lenny preset keeps Enterprise, Pricing, Book a demo, and Request
46access untracked; only its standard sign-in dropdown carries the existing
47`build-software-factories-nav` attribution. Request access retains
48`data-sound="request-access"`.
49
50Names, login return URLs and payloads are frozen. Menu opening and
51dismissal are not conversions. Compact layouts can expose both the
52desktop demo and the mobile menu; each keeps its own surface.
53`HomepageNavigation.test.tsx` exercises the real page compositions and
54delegated interceptor for exact single emissions. `DownloadPage.test.tsx`
55also checks the server-rendered property-free contract. Catalog specimens
56do not load marketing services; verify delivery on the public page.
57
58## Anchored discovery menus
59
60`SiteNav` is the approved former Explore/Learn treatment, implemented entirely
61in the shared system. Each trigger opens its own square dropdown card with a
62compact metadata/count strip and a subtle dotted panel ground. Menus overlay
63content rather than moving the page. Products, Enterprise and Resources keep
64the canonical grouped inventory; widths follow the number of populated groups.
65Names retain their authored case. Descriptions appear when the data supplies
66them; the three product descriptions match the original reference. Do not
67invent descriptions for destinations that have none.
68
69## Light and dark
70
71Use `<SiteNav />` or `<SiteNav theme="light" />` for the white version.
72Use `<SiteNav theme="dark" />` for the black version used by Learn. Both
73are shown in the Full variants on `/brand/primary-nav`.
74Themes are local to the entire navigation, including the logo, cards, hover
75states and mobile overlay. Explicit light remains light under an inverted
76parent; dark does not recolor neighboring page content. Yellow actions and
77hover blocks always carry dark text.
78
79Top-row and action labels use uppercase Azeret SemiMono Medium. Action buttons
80are pills; Get started is outlined and Book a demo uses Yield. These are the
81full discovery nav's approved R-18 exceptions to R-03/R-08/R-09/R-15, not new
82global typography, page texture or button defaults. Focused and logo-only
83navigation retain their own presentation and APIs.
84
85## Pointer, touch and keyboard
86
87All desktop dropdowns, including Sign in and Get started, share one open state.
88Mouse hover, keyboard focus and explicit click/touch can open them. Trigger
89and panel IDs are instance-unique; inactive panels are immediately inert and
90hidden from assistive technology, including during their fade.
91
92Tab, Enter, Space and ArrowDown enter the panel; ArrowUp enters at its last
93link. Shift+Tab from the first link and Escape return to the trigger and close
94it. Tab from the last link continues to the next top-level control, or out of
95the nav after its final action. Navigation uses ordinary disclosure buttons
96and links, not application-menu roles. Outside interaction, focus leaving the
97nav, destination selection and route changes close menus. A focus-held panel
98is not replaced just because the pointer passes another trigger.
99
100The hover grace period and pointer bridge allow crossing the panel seam.
101Cards shift within viewport edges and scroll when a short screen cannot fit
102their contents. Positioning updates with viewport/ancestor scrolling and zoom.
103Reduced motion removes the nonessential fade and caret transitions.
104
105## Responsive behavior
106
107The header keeps its existing 64px frame and border, preserving pricing and
108other sticky offsets. Below 1100px of available component width, discovery
109links and desktop sign-in move into the mobile menu. Below 720px the demo
110button also moves there. These measurements use the component width so the
111catalog works inside a narrow preview pane on a wide desktop. Viewport media
112queries supply the pre-hydration fallback.
113
114The fixed mobile menu uses dynamic viewport height and safe-area padding.
115Its body scrolls independently; native accordions retain their grouped links
116and descriptions. Focus stays inside visible enabled controls, skipping
117links in closed accordions. Escape/Close returns focus to the burger and
118releases the prior body scroll state. Changing layout modes, navigating or
119unmounting cleans up open menus, scroll locks and delayed focus work.
120
121Focused navigation has no burger. Utility links hide first at 860px. At phone
122widths its sign-in and CTA controls wrap in DOM order, and an open sign-in
123panel grows the header in normal flow. Logo-only navigation remains one
124server-rendered Warp home link without placeholder controls or menu state.