Skip to content

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 prerendered apps/site on main; #361 (merged) moves staging brilliant.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 under components/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 ​

URLPage
/use-casesHub — all departments and their use cases
/use-cases/:departmentDepartment — persona message + that department's use cases
/use-cases/:department/:useCaseUse case — pre-filled prompt, screenshot CTA, outcomes, related links
any of the above with ?lp=1Ad 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, hrefFor
  • departments/*.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> (avoids position: fixed inside a translated nav — see gotchas/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).
  • UseCaseView is 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 visual slot on MarketingShell), not the stock clay photo. Other marketing pages keep their current hero.

Pictures (#275) ​

Real apps built with Brilliant; one calm capture per app.

AssetSizeBudget
Page screenshot (*.webp)2400×1500≤ 150 KB (content test enforces)
Menu card thumb (*-thumb.webp)800×500shown 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).

DepartmentUse cases
operationsproject-portfolio, okr-tracker, work-orders
salesdeal-pipeline, lead-routing, quote-builder
hrrecruiting-pipeline, time-off, performance-reviews
marketingcampaign-hub, content-calendar, social-planner
financebudget-vs-actual, invoices-collections, purchase-requests
itknowledge-base, service-desk, bug-triage
customer-successcustomer-onboarding, customer-360, support-sla

Key files ​

AreaPath (live apps/site)
Typessrc/content/use-cases/use-cases.types.ts
Order + helperssrc/content/use-cases/use-cases.data.ts
Department contentsrc/content/use-cases/departments/*.ts
Views / herosrc/landing/use-cases/* (UseCasesHeroVisual, cards)
Shared shellsrc/landing/MarketingShell.tsx
Teststest/use-cases-content.test.ts
Historical SPAdeleted 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 /use-cases/* — addressed by merged #318 / marketing site (prerendered head() on main; not live until cutover).
  • Worker 301 for /solutions — obsolete: live site has no /solutions route or redirect (confirmed in #423 merged 2026-10-04 docs pass; test expects matchUseCasesPath("/solutions") null).
  • Campaign attribution: carry UTM and lp into signup and prompt events — addressed by merged #318 (first-party attribution + signed_up on main; not live until cutover).
  • Phone-sized image srcset + measured LCP on mid-range phones.
  • Feedback attribution for use-case pages (FeedbackButton placement is layout-only today).
  • Apex marketing Worker + /start hand-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 on apps/site (#401 merged 2026-10-04 removed the studio copy). /solutions is not a live route (#423 merged 2026-10-04, doc-only).