fix(cmdk): keep the first result focused and the top fog stable across re-ranks - #6635
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview When results re-rank after the deferred query commits, cmdk can keep a stale selection (mid-list or on a removed row), so Enter may do nothing. A The palette list fade mask switches from percentage stops to pixel stops ( Reviewed by Cursor Bugbot for commit a12d177. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThe PR fixes command-palette selection after deferred search re-ranking and stabilizes the palette fade as result counts change.
Confidence Score: 5/5The PR appears safe to merge with no concrete blocking or non-blocking issues identified. The deferred-query effect restores first-row selection after re-ranking, and the revised mask geometry remains valid for the palette’s minimum list sizes.
|
| Filename | Overview |
|---|---|
| apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/search-modal.tsx | Adds a post-commit effect that sends Home to cmdk after deferred search results re-rank; no actionable defect was established. |
| apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/search-modal.test.tsx | Adds regression coverage confirming that a narrowed, re-ranked result list selects its first row. |
| apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/components/command-chrome/command-chrome.tsx | Anchors the palette fade to fixed pixel offsets while retaining percentage stops for the fixed-height canvas variant. |
| apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/components/command-chrome/command-chrome.test.tsx | Updates the command-chrome assertion to pin the new pixel-based mask configuration. |
Reviews (1): Last reviewed commit: "fix(cmdk): keep the first result focused..." | Re-trigger Greptile
Summary
Type of Change
Testing
Checklist