redesign(forms): full-width search results with collapsible refine bar#476
Conversation
Fix the results table clipping behind the right rail at narrow widths: drop the fixed 320px sidebar (Refine / Next steps / Source snapshot), remove the Next steps and Source snapshot cards, and let Best matches span the full page with fluid minmax(0,...) columns. Refine becomes a collapsible bar beside the tabs with an active-filter count, replacing the disabled mobile Filters stub. Also fix the tab strip forcing the content column wider than the viewport at tablet widths (min-w-0), and polish the mobile result cards. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
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: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe forms search results page replaces the desktop refine rail with an expandable top refine panel. It adds refine filter configuration and accessible toggle state, updates desktop result rows and links, and revises mobile cards, pathways, spacing, and responsive layout placement. ChangesForms Search Results UI
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant FormsSearchResultsPageContent
participant RefineBar
participant RefinePanel
FormsSearchResultsPageContent->>RefineBar: render refine toggle
RefineBar->>FormsSearchResultsPageContent: update refineOpen
FormsSearchResultsPageContent->>RefinePanel: render panel by refineOpen
RefinePanel->>RefinePanel: display refine filters and Reset state
🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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/forms/forms-search-results-page.tsx`:
- Around line 53-64: The refineFilters entries for “Official forms” and “Pathway
linked” are marked enabled without affecting results, causing an inaccurate
active filter count. In the refineFilters and result-building logic around
matches/scopedMatches and ToggleSwitch, either implement each filter’s state and
apply it when constructing results before calculating activeCount, or mark these
preview filters disabled and keep activeCount at zero until implemented.
- Around line 674-680: Gate the VerifiedFooter rendering on registry readiness
so it cannot appear during loading, unauthorized, or failed registry states.
Locate the registry state branching in the component containing PathwayPanel and
MobilePathway, and move VerifiedFooter into the registryReady branch; otherwise
update its wording to be explicitly status-independent.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 9b1947ea-7a87-45df-b89f-91686f4642c5
📒 Files selected for processing (1)
src/components/forms/forms-search-results-page.tsx
…footer The Refine button no longer advertises an active-filter count while the filter toggles are still coming-soon stubs, and the Source verified footer only renders once the registry has loaded. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Summary
overflow-hiddenchopped the "Matched because"/"Open" columns).minmax(0,…)columns that cannot overflow, and the desktop table now starts atmd(768px) instead oflg.aria-expanded/aria-controls, responsive 1/2/4-column filter panel.min-w-0).Screenshot/overflow sweep at 390/768/1024/1280/1536px: 0px horizontal overflow at every width.
Verification
npm run verify:pr-local— exit 0: runtime check, format:check, lint, typecheck, full vitest (1440 passed / 1 skipped), production build (624 pages)npm run verify:ui— 117/124; 4 of the 7 failures passed on isolated rerun (load flakes), and the remaining 3 (document search mode lists matching documents,tools launcher is usable at mobile,mode home routes center the shared search on mobile) fail identically with pristine origin/main content swapped in — pre-existing on main / local-env, not caused by this diff. All 4 forms-search specs pass repeatedly.npm run verify:release— not run (not a release/handoff claim)npm run eval:retrieval:quality— N/A: no retrieval/ranking/selection/chunking/scoring changesnpm run eval:rag -- --limit 15— N/A: no answer-generation changesnpm run check:production-readiness— N/A: no clinical workflow/privacy/env/Supabase changesnpm run check:deployment-readiness— N/A: no deployment changesClinical Governance Preflight
Not applicable — single client component redesign of the Forms search results page; no ingestion, answer generation, search/ranking, source rendering, document access, privacy, production env, or clinical output changes.
Notes
src/components/forms/forms-search-results-page.tsx.Open <title>aria-labels preserved.🤖 Generated with Claude Code