Repository navigation
Disambiguate sidebar project setup groups - #6430
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 58caa464625de6d149e65759e9af2aa784c58484 and 985aaa3. 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe sidebar worktree grouping logic now derives setup grouping from execution surfaces built from project, host, and WSL or Windows path classification. Repo grouping uses the resulting project-level flag to choose setup-scoped header keys when duplicate setups exist on the same surface. The tests now assert three separate setup headers for duplicate local and remote checkouts and keep the Windows/WSL grouping case afterward. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
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.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/renderer/src/components/sidebar/worktree-list-groups.ts (1)
190-192: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick winAdd a short rationale for collapsing to the project key.
This return encodes the PR’s non-obvious behavior change: setup-scoped headers are intentionally skipped when project lookup succeeds. A one-line comment would help prevent reintroducing the old split.
Proposed comment
+ // Keep same-project checkouts under one sidebar header, matching the create-worktree host picker. return { key: `project:${project.id}`, label: project.displayName,As per coding guidelines, “When writing or modifying code driven by a design doc or non-obvious constraint, add a comment explaining why the code behaves the way it does.”
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 6e1f70ee-5f78-4dd2-a43a-56850d3d72b8
📥 Commits
Reviewing files that changed from the base of the PR and between 14a742e and 0c8a6e7c8a3d372b089f0f448dd58e8c7b65e34c.
📒 Files selected for processing (2)
src/renderer/src/components/sidebar/worktree-list-groups.test.tssrc/renderer/src/components/sidebar/worktree-list-groups.ts
0c8a6e7 to
58caa46
Compare
Co-authored-by: Orca <[email protected]>
58caa46 to
985aaa3
Compare
Co-authored-by: Orca <[email protected]>
Summary
Behavior
C:\...\orcaplus\\wsl.localhost\Ubuntu\...\orcastill group as one projectTest
Note: test passed with the existing Node engine warning in this shell (repo wants Node 24, shell has Node v26.0.0).