PR: #770: feat(agents): cast pages — /agents bento + /agents/[agent], Vani personalisation re-homed [Story-3273] by @ankitmaheshwari-com
View PR →

Files changed

33 file(s), +1112 / -147 lines

Path Role + -
messages/en.jsonConfig+75-2
messages/hi.jsonConfig+75-2
public/agent-avatars/kabir-documents.pngSourcebinbin
public/agent-avatars/neel-audit.pngSourcebinbin
public/agent-avatars/zoya-classification.pngSourcebinbin
src/app/[locale]/(workspace)/agents/[agent]/page.tsxApp route+104-0
src/app/[locale]/(workspace)/agents/agents-view.tsxApp route+38-0
src/app/[locale]/(workspace)/agents/page.tsxApp route+76-0
src/app/[locale]/(workspace)/settings/personalisation/amira/page.tsxApp route+0-33
src/app/[locale]/(workspace)/settings/personalisation/vani/page.tsxApp route+0-51
src/components/agents/cast/cast-card.tsxComponent+109-0
src/components/agents/cast/cast-fixtures.tsComponent+120-0
src/components/agents/cast/cast-grid-page.stories.tsxComponent+44-0
src/components/agents/cast/cast-grid-page.tsxComponent+53-0
src/components/agents/cast/cast-profile-page.stories.tsxComponent+24-0
src/components/agents/cast/cast-profile-page.tsxComponent+91-0
src/components/agents/cast/cast-profile-sections.tsxComponent+124-0
src/components/agents/cast/personas.tsComponent+48-0
src/components/agents/cast/rail-icon-candidates.stories.tsxComponent+71-0
src/components/onboarding/onboarding-hello-bar-fixtures.tsComponent+1-1
src/components/onboarding/onboarding-hello-bar-view.stories.tsxComponent+1-1
src/components/settings/personalisation/vani-personalisation-editor.tsxComponent+2-1
src/components/settings/personalisation/vani-personalisation-page.stories.tsxComponent+1-1
src/components/settings/personalisation/vani-personalisation-page.tsxComponent+8-1
src/components/settings/personalisation/vani-personalisation-types.tsComponent+2-0
src/components/settings/settings-breadcrumb.stories.tsxComponent+3-3
src/components/settings/settings-shell.stories.tsxComponent+3-3
src/components/settings/settings-sidebar.stories.tsxComponent+3-3
src/components/settings/settings-sidebar.tsxComponent+0-20
src/components/shared/global-rail-item.tsxComponent+1-0
src/components/shared/global-rail.tsxComponent+10-0
src/lib/surface-registry/page-card/catalog.tsLibrary+4-4
src/lib/surface-registry/route-registry.tsLibrary+21-21

Story-3273 — Agents cast pages

The agent team becomes a first-class workspace surface: counsel meets the India cast (Vani · Kabir · Zoya · Neel, Amira coming) and tells each agent how they work. Colleague vocabulary throughout — the button is the status; no "personalised" software copy.

What shipped

SurfaceRouteBehavior
Cast grid/agentsSettingsPageHeader chrome (Clients pattern), symmetric bento of four agents, Amira SOON band. CTA carries state: crimson "Tell X how you work" (not personalised) vs outline "Update X's instructions" (personalised). Vani carries the single green WhatsApp button (existing --green-solid token + shared WhatsAppGlyph).
Agent profile/agents/[agent]Meet-the-agent hero (static poster until welcome videos ship), first-person intro, WHAT/HOW story blocks. Vani's page hosts the live personalisation editor (same gateway, /me/personalisation/mira); agents without a backend show an honest "will take your instructions here soon" line — no welded-shut editor.
Global Rail—New Agents item (icon Contact, placeholder pending founder pick from the Agents/RailIconAudition Storybook story; never a robot glyph), gated on matters:read like other firm-data items.
Settings/settings/personalisation/*REMOVED (pages, sidebar section, surface entries). The editor components are reused by the new profile route. Onboarding hello-bar personalisation ask now lands on /agents/vani.

Click-through

  1. Global Rail → Agents → cast grid renders with four tiles + Amira band.
  2. Vani tile → green Chat on WhatsApp (→ WhatsApp settings) and her profile CTA.
  3. Any CTA → /agents/<name> profile (surface-key navigation via buildSurfacePath).
  4. On /agents/vani: type instructions → Save → optimistic cache update via the existing personalisation mutation handlers; relative "Saved … ago" stamp.
  5. /agents/kabir|zoya|neel: story blocks + honest coming-soon editor line.
  6. Settings sidebar no longer shows a PERSONALISATION section.

Doctrine notes