refactor(viewer): Phase 1 DocumentViewer shell extraction - #1665
Conversation
Move signed-URL helpers, PDF reader dynamic imports, route sync, PDF mode preference, and summarize stream into focused document-viewer modules without changing preview/chrome behaviour. Clarify that document-viewer-lazy is a re-export; pdf-readers-lazy owns the split. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in:33 minutes Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
Comment |
This pull request has been ignored for the connected project Preview Branches by Supabase. |
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Empty commit to re-fire pull_request synchronize for the current tip after stale/queued runs were cancelled during the Actions major outage. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Empty commit to fire pull_request synchronize after head had no Actions runs. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Summary
DocumentViewershell (~1677 → ~1470 LOC).src/components/document-viewer/:signed-url-request.ts— shared signed-URL GET +rowsByIdpdf-readers-lazy.tsx— realnext/dynamicboundary for canvas/native PDF readersuse-document-viewer-route.ts— page/chunk URL sync without remountuse-pdf-viewer-preference.ts— canvas vs native localStorage preferenceuse-document-summarize.ts—/api/answer/streamsummaryMode controllerdocument-viewer-lazy.tsxas an RSC compatibility re-export (not code-splitting); PDF split lives inpdf-readers-lazy.tsx.Verification
npm run test— 5447 passed | 1 skipped (515 files)npm run verify:pr-local -- --files <phase1 paths>— exit 0 (format, docs guards, lint, typecheck, full unit suite, build, client-bundle scan, RAG fixtures)design-system-adoptionhosted-Linux provenance; isolated re-run passed; subsequent fullverify:pr-localwas greenverify:phone-chromenot required for this phase.Risk and rollout
Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)summaryMode: trueto/api/answer/streamwith the same abort/auth-epoch semantics.Notes
DocumentViewer.tsxfor a follow-up extraction if needed..local/workflow-evidence/2026-08-06T18-02-00-331Z-flightplan.json