PR: #507: feat(matter): fat matter layout + Worknav-as-Link [Story-2019] by @ankitmaheshwari-com
View PR →

Files changed

17 file(s), +272 / -112 lines

Path Role + -
messages/en.jsonConfig+2-2
messages/hi.jsonConfig+2-2
src/app/[locale]/(workspace)/matters/[matterId]/filings/page.tsxApp route+20-22
src/app/[locale]/(workspace)/matters/[matterId]/hearings/page.tsxApp route+18-23
src/app/[locale]/(workspace)/matters/[matterId]/layout.tsxApp route+34-0
src/app/[locale]/(workspace)/matters/[matterId]/page.test.tsxApp route+3-2
src/app/[locale]/(workspace)/matters/[matterId]/page.tsxApp route+7-5
src/app/[locale]/(workspace)/matters/[matterId]/record/page.tsxApp route+2-2
src/components/matter-detail/matter-detail-header.tsxComponent+3-1
src/components/matter-detail/matter-worknav.tsxComponent+78-16
src/components/matters/live-matter-documents-page.tsxComponent+13-15
src/components/matters/matter-shell-chrome.tsxComponent+53-0
src/lib/agents/__tests__/client-tool-dispatcher.test.tsLibrary+4-4
src/lib/matters/get-matter.tsLibrary+15-0
src/lib/surface-registry/navigation.test.tsLibrary+3-3
src/lib/surface-registry/route-registry.test.tsLibrary+1-1
src/lib/surface-registry/route-registry.tsLibrary+14-14

Story-2019: Fat matter layout + Worknav-as-Link (route-per-mode keystone)

The matter shell chrome — the Matter Ribbon, the Worknav, and the Matter Action Rail — now lives once in a fat layout at matters/[matterId]/layout.tsx. Every mode route under it (Brief, Record, Filings, Hearings) renders only its body. Navigating between modes swaps the body while the single chrome stays put. This unblocks the remaining route-per-mode stories in EPIC-2018.

What moved

Surface-key migration

The durable surface keys move to the matter.* grammar: matter-detail → matter.brief and matter-detail.record → matter.record (joining the existing matter.filings / matter.hearings). The paired AgentSurfaces presence keys are renamed in both messages/en.json and messages/hi.json, and route-registry.ts was regenerated with pnpm gen:routes.

Deliberately deferred (not this story)

Verification

pnpm lint, pnpm build, pnpm gen:routes (no diff), pnpm check:routes, and the full pnpm test suite (incl. route-registry.test, navigation.test, and the matter page test) are green. The Worknav / MatterDetailHeader Storybook stories continue to render via the optional activeMode override.