PR: #683: feat(register): wire real Blake card and family [Story-2682]
by @pramaan-board-bot[bot]
View PR →
Story-2682
The Record now reads Blake's real card and carve family
The existing founder-approved rows and tooltip are unchanged; only their data source moved from fixtures to the generated app API read model.
What changed
Card
SIDE disagreement, reason, matter significance, filing signal, and privilege candidate now come from DocumentListItem.card.
Family
Main Document and Annexure rows now use Blake's family id, role, label, parent, and source page range.
Null state
An uncarded document remains a normal top-level row with no warning or children.
Review path
| Storybook state | Expected proof |
|---|---|
| RegisterSideCell / Card present | Blake's warning uses the real suggested side and appends the real reason. |
| RegisterSideCell / No card yet | The declared side remains visible with no Blake warning. |
| RegisterTable / Turn 2 - expanded bundle | The real generated-shape family expands to Main and Annexure rows with 1-48 and 49-92 ranges. |
Live verification gate
Full staging visual confirmation requires a real carded and carved document. That depends on the Blake card runtime and broker invocation, which are outside this app-only Story; the issue remains in Review until that evidence exists.
Files changed
13 file(s), +363 / -127 lines
| Path | Role | + | - |
|---|---|---|---|
| messages/en.json | Config | +1 | -0 |
| messages/hi.json | Config | +1 | -0 |
| src/components/documents/register/register-document-row.stories.tsx | Component | +13 | -14 |
| src/components/documents/register/register-side-cell.stories.tsx | Component | +34 | -19 |
| src/components/documents/register/register-side-cell.tsx | Component | +12 | -10 |
| src/components/documents/register/register-table.stories.tsx | Component | +14 | -7 |
| src/components/documents/register/register-view.tsx | Component | +4 | -41 |
| src/components/matters/live-matter-documents-page.tsx | Component | +1 | -6 |
| src/lib/documents/register/adapter.test.ts | Library | +66 | -7 |
| src/lib/documents/register/adapter.ts | Library | +73 | -20 |
| src/lib/documents/register/filters.test.ts | Library | +4 | -0 |
| src/lib/documents/register/fixtures.ts | Library | +120 | -0 |
| src/lib/documents/register/types.ts | Library | +20 | -3 |