Show one settings section at a time - #12993
austinywang wants to merge 1 commit into
Conversation
|
Note Pull Request opener @austinywang is not an author or co-author of any commit in this PR (commit identities: All contributors have signed the CLA ✍️ ✅ |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe settings window now renders only the selected section, updates its navigation title to that section, and keeps minimize and zoom controls visible but disabled. ChangesSettings pane behavior
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant SettingsWindowScene
participant SettingsSectionSlot
participant ScrollView
SettingsWindowScene->>SettingsSectionSlot: Pass isActive for selected section
SettingsSectionSlot-->>SettingsWindowScene: Render content or EmptyView
SettingsWindowScene->>ScrollView: Set navigationTitle to selectedSection.title
Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 1 warning)
✅ Passed checks (23 passed)
Full details: Cmux Architecture RethinkExplanation The new active-pane condition breaks the existing mount lifecycle and leaves invalid state representable. Resolution Make
✨ 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 |
|
Found 2 test failures on Blacksmith runners: Failures
|
Fixes #12959.
Settings now mounts only the selected section in the detail pane, so switching sidebar rows changes panes instead of building one long scrolling page. The detail title follows the selected section, and the Settings window keeps minimize and zoom controls visible but disabled per the macOS HIG.
Validation:
git diff --checkLocalization audit: no new user-facing strings were introduced; existing localized section titles are reused.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Settings now displays one section at a time in the detail pane, replacing the previous single long scrolling page with all sections. The navigation title follows the selected section, and the window's minimize and zoom controls stay visible but disabled per macOS HIG.
Inactive sections are no longer added to the view hierarchy, so their controls are not constructed until needed.
Written for commit 4a92714. Summary will update on new commits.
Summary by CodeRabbit