Repository navigation
Conversation
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughWorkspace next and previous selection now follow visible sidebar rows. Collapsed groups act as single stops, expanded groups expose members, and hidden selected members resolve through their group anchor. Shared navigation and tests cover these cases. ChangesWorkspace group keyboard cycling
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (3 errors, 2 warnings)
✅ Passed checks (20 passed)
✨ 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 |
1affdda to
89218dc
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@cmuxTests/WorkspaceGroupKeyboardCycleTests.swift`:
- Around line 77-90: Extend previousDirectionMirrorsNextAcrossACollapsedGroup
using a fixture with at least three visible navigation stops, and assert
previous traversal reaches distinct stops in reverse order before wrapping to
the start. Keep the collapsed-group assertion, ensuring the test distinguishes
correct previous direction from an implementation that incorrectly uses the
next-step behavior.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: d1bdd183-c182-4da5-aa79-3f087215cd5b
📒 Files selected for processing (3)
Sources/TabManager.swiftcmux.xcodeproj/project.pbxprojcmuxTests/WorkspaceGroupKeyboardCycleTests.swift
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Cycling visits members hidden inside collapsed sidebar groups: crossing a closed folder costs one keystroke per hidden member and auto-expands it. App-target tests pin the sidebar-mirroring behavior; package tests cover the stop-resolution logic. They fail until the next commit.
Stop resolution lives in CmuxWorkspaces as WorkspaceAdjacentSelection; TabManager builds the stops from SidebarWorkspaceRenderItem and keeps the selection side effects. A collapsed group is one stop (its header); hidden members are skipped; wrap-around is unchanged. Expand and collapse stay on the existing toggle shortcut. The socket workspace next/previous commands share this path. Same-target selection still runs, keeping the notification-dismissal side effects.
89218dc to
1e9a0fb
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
@coderabbitai review @cubic-dev-ai review |
|
|
@krandder I can't start this review because your workspace has reached its free monthly review limit. cubic has reviewed 245,275 of the 240,000 allowed lines of code this month. Reviews resume on 1 September 2026 (in 25 days). Paid plans include much higher monthly review limits. Upgrade now to resume reviews. To help optimise your usage, you can tune cubic to get the most out of your usage limits:
|
|
Thank you for this, @krandder! Skipping hidden members of collapsed groups when cycling is exactly right. Since you opened it, #9352 moved workspace cycling into |
Keyboard workspace cycling visits every workspace in
tabsorder, including members hidden inside collapsed sidebar groups. Crossing a closed folder costs one keystroke per hidden member, and selecting a hidden member auto-expands the group — cycling past a folder destroys its collapse state.Now
selectNextTab/selectPreviousTabderive their stops fromSidebarWorkspaceRenderItem.renderItems— what the sidebar draws — so cycling mirrors the visible sidebar: a collapsed group is one stop (its header), hidden members are skipped, expanded groups traverse normally, wrap-around is unchanged. Expand/collapse stays on the existing toggle shortcut, which cycling can now reach for closed folders.Notes:
workspace next/previouscommands share this path and inherit the semantics.Red/green commits per the regression-test policy:
WorkspaceGroupKeyboardCycleTests, same shape asWorkspaceGroupTests, pbxproj-wired (lint-pbxproj-test-wiringclean).🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
Bug Fixes
Tests