Place 'Also matches in other modes' panel after primary results#749
Place 'Also matches in other modes' panel after primary results#749BigSimmo wants to merge 7 commits into
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Warning Review limit reached
Next review available in: 35 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. 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 Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughChangesUniversal matches placement
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
CI triageCI failed on this PR. Automated classification of the 3 failed job(s):
Compared with main CI run #2920 (success). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
Head branch was pushed to by a user without write access
The placement test navigated to /services?q=acamprosate&run=1. Since 'acamprosate' matches no service fixtures, displayedMatches is empty and the empty-state renders instead of the service-search-results div, causing expect(results).toBeVisible() to time out. Fix: route the test through an inline mock that echoes the request query back as the universal-search response query (so universal-also-matches renders), and navigate to q=13YARN which matches the demo service fixture records so service-search-results is present. Also fixes pre-existing TS2532: add ?? 0 fallback before the bitwise & to resolve the 'Object is possibly undefined' error from optional chaining.
…ions-placement-bug
Motivation
Description
UniversalSearchAlsoMatchescomponent to render after primary results across the following mode pages:documents,services,forms,prescribing(medications),differentials,favourites, andformulation. Files updated:src/components/clinical-dashboard/document-search-results.tsx,src/components/services/services-navigator-page.tsx,src/components/forms/forms-search-results-page.tsx,src/components/clinical-dashboard/medication-prescribing-workspace.tsx,src/components/clinical-dashboard/differentials-home.tsx,src/components/clinical-dashboard/favourites-command-library-page.tsx, andsrc/components/formulation/formulation-home-page.tsx.universal-also-matchespanel appears after the owning mode results in the DOM for the services page:tests/ui-universal-search.spec.ts(new test:places submitted cross-mode matches after the owning mode results).Testing
npm cito install dependencies; install completed successfully.npm run typecheckand a focused ESLint invocation against changed files; bothtscandeslintpassed with no errors.npm run verify:pr-local -- --dry-run --files ...) and the dry-run succeeded.npm run test:e2efor the new assertion), but the isolated Next.js build failed to fetch Google Geist font files fromfonts.gstatic.com, causing the browser-based verification to be blocked; the regression assertion was added but could not be validated under the build environment due to remote font fetch errors.gitbranch/worktree: changes were made on branchcodex/fix-related-options-placementand the worktree is clean; diffs include the files listed above.Remaining risk: the Playwright UI run could not complete due to external font fetches during Next build; re-run
npm run test:e2e(ornpm run verify:ui) in an environment with outbound access tofonts.gstatic.comor with fonts cached/available to Next to fully validate the end-to-end UI behavior.Codex Task
Summary by CodeRabbit
Improvements
Tests