Marketing Use cases pages
Path: apps/site (live); historical SPA was apps/control-plane/web until #401
Shipped: DaPulse/brilliant-ai#259 (merged 2026-10-01) — page framework + Customer Success (2 use cases); DaPulse/brilliant-ai#275 (merged 2026-10-01) — 7 departments × 3 use cases, mega-menu, lighter images, #259 review fixes (historical SPA also redirected /solutions → /use-cases)
Design: docs/superpowers/specs/2026-10-01-use-cases-pages-design.md
Live source of truth is
apps/site. Merged #318 put prerenderedapps/siteonmain; #361 (merged) moves stagingbrilliant.rocks→ site and studio →app.brilliant.rocks. Merged #401 (merged 2026-10-04; part of #304) deleted the leftover studio SPA marketing routes (routes/marketing/*, use-case data undercomponents/landing/,MarketingShell, …) — see Marketing site (apps/site). Paths and file locations below are the historical SPA content model; edit the site app for live pages.
Config-driven marketing pages for jobs-to-be-done, also usable as paid-ads landings. After cutover they are served by the prerendered site; the studio no longer ships them (#401 merged 2026-10-04).
Routes
| URL | Page |
|---|---|
/use-cases | Hub — all departments and their use cases |
/use-cases/:department | Department — persona message + that department's use cases |
/use-cases/:department/:useCase | Use case — pre-filled prompt, screenshot CTA, outcomes, related links |
any of the above with ?lp=1 | Ad mode — same content; nav and related links hidden |
Unknown department or use-case slugs redirect client-side to /use-cases (and keep ?lp=1 when present — #259 review fix in #275).
/solutions: Gone on live apps/site. #259 had a separate page; #275 replaced it with a client redirect in the studio SPA. After the move to apps/site, there is no /solutions route and no redirect — matchUseCasesPath("/solutions") is null (apps/site/test/use-cases-content.test.ts). The hub is /use-cases. In-repo docs stop claiming the redirect in #423 (merged 2026-10-04, doc-only; closes the docs item on #304).
Content model
Types live in use-cases.types.ts. Order and path helpers live in use-cases.data.ts. Each department is its own file under use-cases/departments/ (keeps files under the 600-line cap). Imports from use-cases.data.ts stay the public surface.
Live: apps/site/src/content/use-cases/ (studio copy deleted in #401).
use-cases.types.ts—Department,UseCase,PageMeta, …use-cases.data.ts—DEPARTMENTS[]order,USE_CASES_HUB,matchUseCasesPath,hrefFordepartments/*.ts— one file per department (operations, sales, hr, marketing, finance, it, customer-success)
Each department: slug, name, headline, lede, seo, chips[], useCases[].
Each use case: slug, title, summary, headline, lede, prompt, three outcomes, screenshot, thumb, seo.
Adding a use case is a content edit: new entry in the department file (+ screenshot / thumb / OG WebP under apps/site/public/marketing/use-cases/). No new route, component, or server change.
Slug rule: once shipped, never rename a slug (they are public URLs and ad destinations). Rename the title instead.
Copy rule: headlines, ledes, and outcomes stay vendor-agnostic (CRM, help desk). Tool names appear as source chips in use-case and studio prompts; the signed-out landing's no-signal defaults do not (#955). Content invariants (and image size budgets) are enforced by apps/site/test/use-cases-content.test.ts.
Note: #259 kept everything in one zero-import data file so the worker could eventually read it for link-preview meta. #275 splits by department and adds imports; server-side OG / canonical tags for
/use-cases/*remain a follow-up.
Mega-menu (#275)
"Use cases" in the header opens a panel: departments on the left, home-style cards on the right (NavMenu.tsx + landing.config.ts).
- Portaled to
<body>(avoidsposition: fixedinside a translated nav — seegotchas/studio-frontend.md). - Capped to the viewport height; sits right after the trigger in Tab order.
- Pointer hovering the department list does not swap the pane out from under keyboard focus.
What a use-case page is
A use-case leaf reuses the landing layout and theme with overrides: own eyebrow/headline/lede, pre-filled prompt (source chips), department chips. Below the prompt: real-app screenshot, three outcomes, related links.
- Screenshot is a CTA. Click focuses the prompt (scroll, caret at end, brief send highlight) and never sends for the visitor (
focus-prompt.ts). UseCaseViewis keyed by slug (#275 / #259 review): client-side navigation between use cases resets the prompt to the new one.- Department / hub hero shows that department's real apps and the prompts that built them (via
visualslot onMarketingShell), not the stock clay photo. Other marketing pages keep their current hero.
Pictures (#275)
Real apps built with Brilliant; one calm capture per app.
| Asset | Size | Budget |
|---|---|---|
Page screenshot (*.webp) | 2400×1500 | ≤ 150 KB (content test enforces) |
Menu card thumb (*-thumb.webp) | 800×500 | shown whole, no crop |
OG crop (*-og.webp) | — | link-preview image |
Content
Department order matches DEPARTMENTS[] (most common among published vibe apps first). All seven departments shipped in #275 (Customer Success started in #259 with two use cases; #275 added support-sla and the other six departments).
| Department | Use cases |
|---|---|
operations | project-portfolio, okr-tracker, work-orders |
sales | deal-pipeline, lead-routing, quote-builder |
hr | recruiting-pipeline, time-off, performance-reviews |
marketing | campaign-hub, content-calendar, social-planner |
finance | budget-vs-actual, invoices-collections, purchase-requests |
it | knowledge-base, service-desk, bug-triage |
customer-success | customer-onboarding, customer-360, support-sla |
Key files
| Area | Path (live apps/site) |
|---|---|
| Types | src/content/use-cases/use-cases.types.ts |
| Order + helpers | src/content/use-cases/use-cases.data.ts |
| Department content | src/content/use-cases/departments/*.ts |
| Views / hero | src/landing/use-cases/* (UseCasesHeroVisual, cards) |
| Shared shell | src/landing/MarketingShell.tsx |
| Tests | test/use-cases-content.test.ts |
| Historical SPA | deleted in #401 (routes/marketing/*, studio components/landing/use-cases/) |
Follow-ups (called out in #275, not in that PR)
Server-side OG meta and canonical tags for— addressed by merged #318 / marketing site (prerendered/use-cases/*head()onmain; not live until cutover).Worker 301 for— obsolete: live site has no/solutions/solutionsroute or redirect (confirmed in #423 merged 2026-10-04 docs pass; test expectsmatchUseCasesPath("/solutions")null).Campaign attribution: carry UTM and— addressed by merged #318 (first-party attribution +lpinto signup and prompt eventssigned_uponmain; not live until cutover).- Phone-sized image
srcset+ measured LCP on mid-range phones. - Feedback attribution for use-case pages (
FeedbackButtonplacement is layout-only today).
Related
- Apex marketing Worker +
/starthand-off + staging domain flip: Marketing site (apps/site) (#318, #361; prod cleanup #304 remains) - Landing / home prompt behaviour: Control plane & studio
- Design intent (worker HTMLRewriter meta, campaign → BI
landing_attributed): repo spec above — treat #259/#275 as the original SPA content + templates; live pages are onapps/site(#401 merged 2026-10-04 removed the studio copy)./solutionsis not a live route (#423 merged 2026-10-04, doc-only).