feat: redesign command palette IA and session navigation#522
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (18)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces a unified command palette system, refactoring the previous file selection dialog into a comprehensive interface for commands, files, and sessions. The changes include new UI components for the palette dialog and rows, logic for grouping default commands, and enhanced session navigation that supports cross-project movement and automatic expansion of collapsed project groups. Comprehensive E2E and unit tests have been added to verify the new functionality. Feedback for this PR focuses on optimizing the session search performance by refining the caching mechanism to avoid redundant network requests on every keystroke and removing duplicate sorting logic that is already managed by the UI components.
Summary
/openand right-panel Open file.Listsort path.Why
#501 is about reducing default command palette noise and making the palette behave like a stable command map. The same slice also fixes the current previous/next session mismatch: sidebar order is global and time-oriented, but navigation commands could still behave like they were scoped to the current project.
Related Issue
Closes #501.
Human Review Status
Pending. A human should make the final merge decision after reviewing the final diff and verification evidence.
Review Focus
/openand right-panel Open file.dialog-select-file.tsxsplit: this should stay a [Feature] Redesign command palette default view and content IA #501-local cleanup, not a broader layout or command registry rewrite.Risk Notes
DialogSelectFileis shared by Cmd+K, slash/open, and right-panel Open file, so entry-source separation is the main regression risk.server ready, and CI desktop smoke is green. Direct local Electron clicking was avoided because another dev singleton window from a different worktree was already active; the changed visible UI paths were manually checked in the local E2E-backed renderer and covered by Playwright E2E.How To Verify
Screenshots or Recordings
Manual visible UI screenshots were captured and inspected locally for the five changed paths: Cmd+K default, typed Cmd+K search, Cmd+K Open file handoff, slash
/open, and right-panel Open file. They are not attached because they are transient test-workspace screenshots; the same paths are covered by focused E2E assertions above.Checklist
dev, and my PR title and commit messages use Conventional Commits in English