fix: keep phone search results in page#717
Conversation
Gate the desktop command dropdown on both width and fine-pointer capability, with unit and touch-phone coverage.
…hone-refresh-20260717
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Warning Review limit reached
Next review available in: 2 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)
📝 WalkthroughWalkthroughThe universal search command surface now uses placement-aware width and pointer media-query gating, with a zero-touch desktop fallback. Dropdown fetching, opening, rendering, and navigation are suppressed when unavailable, and phone-focused tests cover the updated behavior. ChangesUniversal search gating
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant UniversalSearchCommandSurface
participant MatchMedia
participant UniversalSearch
User->>UniversalSearchCommandSurface: Focus or type in composer
UniversalSearchCommandSurface->>MatchMedia: Check placement and pointer queries
MatchMedia-->>UniversalSearchCommandSurface: Displayable or unavailable
UniversalSearchCommandSurface->>UniversalSearch: Enable fetching only when displayable
UniversalSearchCommandSurface-->>User: Render dropdown or keep it hidden
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
CI triageCI failed on this PR. Automated classification of the 2 failed job(s):
Compared with main CI run #2769 (success). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
Summary
main.Verification
npm run test -- tests/search-command-surface.test.ts— 7/7 passednpm run ensure— verified Clinical KB identity athttp://localhost:3751npm run format:changed -- --checkgit diff --checknpm run verify:uinpm run verify:pr-localUI verification not run: focused Playwright was attempted repeatedly, but other registered Database worktrees held the repository heavyweight lock for build, verify:cheap, critical UI, and accessibility runs. The hosted Production UI job is required before merge.
Verification not run:
npm run verify:pr-localwas deferred for the same cross-worktree lock contention; hosted static, safety, coverage, build, and UI jobs are the exact-head merge gates.Risk and rollout
bcaff007ato restore the prior phone dropdown behavior; the recovery PR can be closed without changing the old PR Codex/mobile search phone fix 20260717 #700 until this replacement is merged.Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)Notes
Summary by CodeRabbit
Bug Fixes
Tests