18 file(s), +723 / -75 lines
| Path | Role | + | - |
|---|---|---|---|
| messages/en.json | Config | +11 | -0 |
| messages/hi.json | Config | +11 | -0 |
| src/app/[locale]/(workspace)/matters/[matterId]/record/doc/[documentId]/page.tsx | App route | +1 | -0 |
| src/app/[locale]/(workspace)/matters/[matterId]/record/doc/[documentId]/text/page.tsx | App route | +8 | -4 |
| src/components/documents/viewer/document-insights-dossier.tsx | Component | +8 | -16 |
| src/components/documents/viewer/document-machine-copy-view.stories.tsx | Component | +35 | -9 |
| src/components/documents/viewer/document-machine-copy-view.test.tsx | Component | +124 | -0 |
| src/components/documents/viewer/document-machine-copy-view.tsx | Component | +74 | -27 |
| src/components/documents/viewer/document-original-pane.stories.tsx | Component | +87 | -0 |
| src/components/documents/viewer/document-original-pane.test.tsx | Component | +95 | -0 |
| src/components/documents/viewer/document-original-pane.tsx | Component | +57 | -13 |
| src/components/documents/viewer/document-permalink-shell.test.tsx | Component | +29 | -2 |
| src/components/documents/viewer/document-permalink-shell.tsx | Component | +3 | -3 |
| src/components/documents/viewer/document-viewer-state.stories.tsx | Component | +48 | -0 |
| src/components/documents/viewer/document-viewer-state.test.tsx | Component | +39 | -0 |
| src/components/documents/viewer/document-viewer-state.tsx | Component | +56 | -0 |
| src/components/documents/viewer/strip-presentation.test.ts | Component | +21 | -1 |
| src/components/documents/viewer/strip-presentation.ts | Component | +16 | -0 |
A document still moving through extraction now asks for patience instead of claiming failure. Terminal failures remain visually distinct.
registered / queued / extracting → neutral “Still extracting” card → current document status shown in the explanation → no text-view request while pages do not exist indexed → Text and Anchor views load → ready machine copy renders failed / unreadable / needs review → error-toned “Extraction failed” card → never presented as ordinary loading
| State | Text lens | Original lens |
|---|---|---|
| Extraction in progress | Shows Still extracting and explains that text appears when the machine finishes reading. The status remains visible. | Uses the same neutral readiness pattern while the original is being prepared. No indefinite error-like loading panel is shown. |
| Terminal failure | Shows the error-toned extraction failure card with the terminal status. This is the only error-toned readiness branch. | |
| Ready | The existing structured machine copy renders. |
The PDF renders and supplies its real page total. The strip does not
show a pager or / 1 before that total is known.
|
The neutral card used by Insights for Not yet read is now
the shared DocumentViewerState. Insights, Text, and Original
therefore use the same viewer canvas, reading measure, card shape, type,
and token-backed tones.
MachineCopyView / ExtractingMachineCopyView / FailedMachineCopyView / ReadyDocumentViewerState / ExtractingDocumentViewerState / Failedpnpm lint pnpm test pnpm build pnpm check:routes pnpm storybook:build pnpm typecheck git diff --check