PR: #689: feat(documents): show Blake card in insights [Story-2702]
by @pramaan-board-bot[bot]
View PR →
Story-2702 ยท parent Epic-2639
Blake's card is visible before the Deep Read
The Insights page now shows the production card already returned with the Record bootstrap. No second request and no fixture enter the live path.
What counsel sees
Identity
Blake's cited document type and date appear as returned.
Whole-document account
The full summary is shown without rewriting or truncation.
Extracted facts
Parties with roles, amounts as written, and tags preserve Blake's order and wording.
Honest absence
A document without a production card says it has not been enriched yet.
Real data path
GET /app/matters/{matter_id}/record/bootstrap โ DocumentListItem.card โ Insights route โ Blake card. The same cached bootstrap row already gates this document page.
Review path
| Storybook state | Expected proof |
|---|---|
| Documents / Viewer / BlakeCard / Default | Type, date, full summary, both parties and roles, amount, and all tags are visible. |
| Documents / Viewer / BlakeCard / Not Enriched Yet | The honest empty state appears with no fabricated values. |
| Documents / Viewer / InsightsDossier / Default | The Blake card sits above the Deep Read in the single Insights scroll. |
Files changed
13 file(s), +359 / -36 lines
| Path | Role | + | - |
|---|---|---|---|
| messages/en.json | Config | +16 | -0 |
| messages/hi.json | Config | +16 | -0 |
| src/app/[locale]/(workspace)/matters/[matterId]/record/doc/[documentId]/insights/page.tsx | App route | +5 | -2 |
| src/components/documents/viewer/blake-card.fixtures.ts | Component | +51 | -0 |
| src/components/documents/viewer/blake-card.stories.tsx | Component | +42 | -0 |
| src/components/documents/viewer/blake-card.test.tsx | Component | +42 | -0 |
| src/components/documents/viewer/blake-card.tsx | Component | +123 | -0 |
| src/components/documents/viewer/document-insights-dossier.stories.tsx | Component | +7 | -0 |
| src/components/documents/viewer/document-insights-dossier.tsx | Component | +47 | -32 |
| src/components/documents/viewer/document-insights-live.tsx | Component | +4 | -0 |
| src/components/documents/viewer/document-viewer-state.stories.tsx | Component | +1 | -0 |
| src/components/documents/viewer/document-viewer-state.tsx | Component | +3 | -0 |
| src/lib/surface-registry/route-registry.ts | Library | +2 | -2 |