iOS: remove redundant Switch Computer settings screen - #9490
Conversation
The workspace list's computer picker already switches Macs, pairing lives in the Connection Method section and onboarding, and hiding a computer lives in the Hidden Computers list. Settings > Switch Computer duplicated all three, so drop MobileHostPickerView, its Settings entry, and the 15 mobile.hostPicker.*/switchMac localization keys (en+ja) it alone used. The Connection section now renders only when it has a live connection row, so its header never sits empty. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
📝 WalkthroughWalkthrough
ChangesMobile settings cleanup
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ Finishing Touches📝 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 |
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
`@Packages/iOS/CmuxMobileShellUI/Sources/CmuxMobileShellUI/MobileSettingsView.swift`:
- Around line 92-96: Update the hasConnectionRows computation used by
MobileSettingsView so visibility depends solely on store?.liveMacConnections
containing live connection rows. Remove the connectedHostName-only fallback and
ensure the Connection section and any fallback row remain hidden when live
connection data is unavailable.
🪄 Autofix (Beta)
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: d66c9bd7-b910-4a7a-adf0-a1fa057e80f2
📒 Files selected for processing (3)
Packages/iOS/CmuxMobileShellUI/Sources/CmuxMobileShellUI/MobileHostPickerView.swiftPackages/iOS/CmuxMobileShellUI/Sources/CmuxMobileShellUI/MobileSettingsView.swiftios/cmux/Resources/Localizable.xcstrings
💤 Files with no reviewable changes (2)
- Packages/iOS/CmuxMobileShellUI/Sources/CmuxMobileShellUI/MobileHostPickerView.swift
- ios/cmux/Resources/Localizable.xcstrings
Settings > Switch Computer (
MobileHostPickerView) duplicated three surfaces that already exist: the workspace list's computer picker switches Macs, the Connection Method section and onboarding handle pairing, and the Hidden Computers list handles hiding. This removes the sheet, its Settings row, and the 15mobile.hostPicker.*/mobile.settings.switchMaclocalization keys (en+ja) only it used.The Settings Connection section now renders only when it has a live connection row (
hasConnectionRows), since the Switch Computer button was previously the only guaranteed row; without this the header would sit empty. The Set Up Computer / View Introduction Again entries keep their existing visibility gate.The
pairingVersionWarningalert this view attached is also handled at root level inCMUXMobileRootView, so QR-pairing version warnings still surface.No tests referenced the removed identifiers (
MobileSettingsSwitchMac,MobileHostPicker*).🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Removed the redundant Switch Computer screen from iOS Settings and cleaned up related code and strings. The Connection section now shows only when there’s a live connection to avoid an empty header.
MobileHostPickerView.mobile.hostPicker.*andmobile.settings.switchMac(en + ja).hasConnectionRows; switching Macs remains in the workspace list’s computer picker.CMUXMobileRootView; no tests referenced removed identifiers.Written for commit a3cf901. Summary will update on new commits.