Fix document viewer sections to default closed - #683
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe document viewer now renders closed, mutually exclusive disclosure sections, opens sections through navigation links, expands printable content during print events, restores prior states, and adds UI coverage for these behaviors. ChangesDocument viewer disclosures
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant DocumentViewerAnchors
participant DetailsSections
participant PrintLifecycle
User->>DocumentViewerAnchors: Click viewer section link
DocumentViewerAnchors->>DetailsSections: Open target details element
PrintLifecycle->>DetailsSections: Expand printable sections
PrintLifecycle->>DetailsSections: Restore previous open states
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eec68d2ee7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex resolve actionable Codex review findings for this pull request and current head using the repository instructions. This is the pull request's single automatic repair pass: do not perform a fresh review, create new standalone findings, or request another review. Work only the existing unresolved Codex threads on the current head. Always fix P0 and P1 findings. For P2 and lower findings, fix only clear, scoped, low-risk issues; otherwise disposition them with a concise reason. After fixing or dispositioning a thread, reply in that thread with as the first line, followed by a concise summary; that marker authorizes the workflow to close that exact thread. If human input or new authorization is required, do not use the marker and leave the thread open with the blocker. Finish only after every actionable thread is fixed or dispositioned and closed, or explicitly left open for a human decision. Do not update the branch from main, address unrelated reviews, broaden scope, or create more than one scoped fix commit. Do not use external APIs, paid services, credentials, dependency changes, or broad refactors unless explicitly authorized. Add targeted tests where behavior changes and run the narrowest relevant validation. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/components/DocumentViewer.tsx`:
- Around line 1610-1622: Update the disclosure print handling around
expandPrintableDisclosures and restorePrintableDisclosures in
src/components/DocumentViewer.tsx#L1610-L1622 to snapshot all named group
members, close the group before restoration, and reopen the previously open
member; add the targeted Images pre-open/regression assertion in
tests/ui-smoke.spec.ts#L2978-L2985, then retain the preservation claim in
docs/branch-review-ledger.md#L560-L560 only after that test passes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 9a8eae15-2a3e-4982-a7bd-2c02e65904e4
📒 Files selected for processing (4)
docs/branch-review-ledger.mdsrc/app/globals.csssrc/components/DocumentViewer.tsxtests/ui-smoke.spec.ts
|
Summary
Testing
|
Summary
Verification
No Supabase, OpenAI, or other live-provider checks were run.
Summary by CodeRabbit
New Features
Bug Fixes
Tests