improvement(search): prioritize workspaces in command palette - #6054
improvement(search): prioritize workspaces in command palette#6054BillLeoutsakosvl346 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
@cursor @greptile-apps Please review this Command-K ordering improvement and its regression coverage. Flag any correctness, keyboard-navigation, search-ranking, or scoped-palette issues before merge. |
|
You need to increase your spend limit or enable usage-based billing to run background agents. Go to Cursor |
Greptile SummaryReorders Command-K so Workspaces sit directly under Actions, with matching canonical section order and regression tests.
Confidence Score: 5/5The PR appears safe to merge; no blocking failures remain from prior or current review scope. No blocking failure remains; the change only reorders an existing palette section and adds tests without altering visibility or selection behavior.
|
| Filename | Overview |
|---|---|
| apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/search-modal.tsx | Renders Workspaces immediately after Actions; visibility and handlers unchanged. |
| apps/sim/stores/modals/search/types.ts | Aligns SEARCH_SECTIONS so workspaces follows actions in the canonical order. |
| apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/search-modal.test.tsx | Adds section-order regression tests for default, search, and canvas-restricted palettes. |
Reviews (2): Last reviewed commit: "improvement(search): prioritize workspac..." | Re-trigger Greptile
PR SummaryLow Risk Overview
Adds Vitest regression tests for default heading order, searched order (workspace before chat for the same query), and workflow canvas palettes that omit Workspaces. Reviewed by Cursor Bugbot for commit 081b385. Bugbot is set up for automated code reviews on this repo. Configure here. |

Summary
Why
Command-K fuzzy-ranks items within each group, but the groups themselves use a fixed order. Chats rendered before Workspaces, so a user with many similarly named chats could have to scroll through chat results before reaching a workspace match.
Before / after
Actions → … → Chats → Workflows → … → WorkspacesActions → Workspaces → … → Chats → Workflows → …Workspace fuzzy ranking and existing recent-workspace ordering are unchanged.
Validation
cd apps/sim && bun run type-check— passedgit diff --check— passedThe app-wide local Biome command also scanned pre-existing untracked Playwright run artifacts, which are intentionally excluded from this PR and left untouched.