forms: expand disclosure content into continuous answer (avoid duplicated preview) - #1869
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 1 minute 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 (3)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthrough
ChangesExtended disclosure behavior
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant FormDetailPage
participant Disclosure
participant DisclosurePanel
participant BrowserTests
FormDetailPage->>Disclosure: Configure extendDescription=true
Disclosure->>DisclosurePanel: Render extended content when expanded
Disclosure->>DisclosurePanel: Apply continuous panel and print visibility styles
BrowserTests->>Disclosure: Expand disclosure and inspect screen or print output
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6cdd58c09d
ℹ️ 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".
CI triageCI failed on this PR. Automated classification of the 2 failed job(s):
Compared with main CI run #10109 (success). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
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 `@docs/design-system/adoption-manifest.json`:
- Around line 534-538: Update the DisclosureGroup entry in the adoption manifest
to include the form DOM and browser test files covering
DisclosureGroup.items[].extendDescription, alongside its existing testFiles.
Keep the Disclosure entry unchanged and register the tests under
DisclosureGroup’s public API coverage.
🪄 Autofix
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
Run ID: 0982fd90-73d0-44b3-ae9d-bbd5bd8447e7
📒 Files selected for processing (7)
.design-sync/config.jsondocs/design-system/adoption-manifest.jsonsrc/components/forms/form-detail-page.tsxsrc/components/ui/disclosure.tsxtests/forms-information-disclosure.dom.test.tsxtests/ui-forms-section-nav.spec.tstests/ui-v2-components.dom.test.tsx
|
Addressed the actionable design-system feedback on the current branch. |
Final review-and-fix summaryFinal state
Issues fixed and dispositioned
Review and comments
Exact-head required CIAll required checks passed on
Advisory and scoped checks
Ledger and residual risk
PR #1869 is merged into |
Motivation
Description
extendDescriptionprop to theDisclosurecomponent and passed it throughDisclosureGroupso callers can request the new presentation mode. (modifiedsrc/components/ui/disclosure.tsx).extendDescriptionis enabled the trigger’s collapsed preview is hidden while the panel is open and the panel omits the top divider so the text reads as one continuous answer (adjusted trigger rendering and panel classes). (modifiedsrc/components/ui/disclosure.tsx).extendDescription: trueinsideformInformationItems(...), so form information rows replace the preview with the full wrapped content when expanded. (modifiedsrc/components/forms/form-detail-page.tsx).tests/forms-information-disclosure.dom.test.tsx, added test snippet intests/ui-forms-section-nav.spec.ts).Testing
workflow:design-sweep) andnpm run ensureto confirm the local app; both completed and the local app reported as running at the repository URL.npm run test) and formatting (npm run format), and the updated focused DOM test asserting the preview is removed when expanded passed.Codex Task
Summary by CodeRabbit
New Features
Bug Fixes
Tests