Repository navigation
fix(mobile): cut the Edit host screen down to name, address, version and remove - #45003
Conversation
Name and Address are one grouped list, the intro and address help are gone, the resolved URL only shows when it adds to what was typed, and the update step for a server is one short line under the version row.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
The phone's Edit host screen read like a manual. Now it's a short settings list: Name, Address, the host's Orca version, and Remove host. Text only shows up when you need it: an address the phone will change, an address it can't use, or a step to update a server.
What Changed
Copied from: the phone's settings screens.
settings-screen-frameprovidesSettingsSectionandSettingsNote, the About screen sets the group layout, andAppUpdateSettingsRowssets the version row with its value on the right. The Name and Address rows use the same padding, height and text size asListRow.Why
Kelvin said this screen had too many words: keep what's useful and what the user can act on, and cut the rest. This follows #44898, which added the version row.
Linked Issue
No issue. Follow-up to #44898 from Kelvin's UI review.
Visual Proof
These are the real
EditHostScreenand settings components rendered at phone width (390 pt) with react-native-web. Gates and schema are real; the router and host list are stubbed. Each pair is before, then after.Reference: the existing About screen and app-update rows that the layout copies. In light mode, groups are white on white with hairlines between rows, the same as every other settings screen.
Testing
Rendered every case above in dark and light: server, .deb server, desktop, a changed bare IP and an invalid port.
Mobile typecheck,
verify-mobile-localization, changed-file oxlint/oxfmt andpnpm check:changedall pass.No new tests: this changes layout and copy, and the save and validation logic is untouched.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Risk
Low. Edit host is native-only (
edit.web.tsxhands the route to native), so page bundles don't change. Saving, address validation and removing a host work the same way. The removed locale keys had no other readers. To back it out, revert the commit.Level: Low
AI Disclosure
Review
Held for Kelvin's UI review. Do not merge before he signs off.
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)