Repository navigation
Expose main content focus to tab chrome - #242
lawrencecchen wants to merge 1 commit into
Conversation
|
Warning Review limit reachedNext included review available in 42 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughBonsplit adds an ChangesMain content focus control
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to The new option changes tab chrome when focus leaves the main content while preserving the selected tab. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
a708f09 to
de63f80
Compare
|
Superseded by #264, which combines this change with the other right sidebar Bonsplit change for manaflow-ai/cmux#15534. |
Problem
Hosts can move keyboard focus to an adjacent surface while keeping Bonsplit selection alive, but the tab chrome has no way to de-emphasize its selected indicator.
Change
Add an optional
isMainContentFocusedinput toBonsplitViewand thread it through nested pane containers. The selected tab remains selected, while focused tab chrome is desaturated when the host reports that another surface owns input.Validation
swift test --package-path vendor/bonsplitbuilds successfully. One existing translated geometry test was flaky in this run.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Adds an
isMainContentFocusedinput toBonsplitViewso hosts can desaturate the selected tab chrome when keyboard focus moves to an adjacent surface.isMainContentFocuseddefaults totrue, so existing callers are unaffected.Written for commit de63f80. Summary will update on new commits.
Summary by CodeRabbit
isMainContentFocusedoption to control whether the primary content receives keyboard focus while Bonsplit continues managing pane selection.BonsplitViewinitializers and defaults to enabled.