Skip to content

fix(mobile): cut the Edit host screen down to name, address, version and remove - #45003

Merged
AmoabaKelvin merged 1 commit into
mainfrom
mobile-edit-host-fewer-words
Nov 20, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
mobile-edit-host-fewer-words

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Files Added Deleted Net
Test 0 0 0 0
Prod 14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​123 $\color{#cf222e}{\Huge{\mathbf{−}}}$​159 $\color{#cf222e}{\Huge{\mathbf{−}}}$​36

What Changed

  • Name and Address are now two editable rows in one grouped list, laid out like the other phone settings screens. The name placeholder still shows the name the host reports, so it's clear what an empty name means.
  • Removed the intro paragraph and the address help paragraph, along with their locale keys in all 11 locales.
  • "Connects to ws://…" only appears when the URL the phone will save differs from what you typed, for example the port it keeps for a bare IP. It no longer echoes an address you haven't changed.
  • Save errors and invalid-address errors now appear as a note under the group, styled like other settings notes.
  • The Orca version row uses the settings section frame. The update step is still shown only for servers that can't update themselves, now as one short line: "Update Orca on the server, then restart it.", "Update it with its package manager or service manager.", or "Update it from its source checkout." This copy is English only; the other locales never had these keys and still fall back to English.
  • Remove host is a destructive row in its own section, as before.
  • Save, validation and remove behaviour is unchanged.

Copied from: the phone's settings screens. settings-screen-frame provides SettingsSection and SettingsNote, the About screen sets the group layout, and AppUpdateSettingsRows sets the version row with its value on the right. The Name and Address rows use the same padding, height and text size as ListRow.

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 EditHostScreen and 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.

Before After
Server (orcad), dark (screenshot removed: contained real product data) (screenshot removed: contained real product data)
Server (orcad), light (screenshot removed: contained real product data) (screenshot removed: contained real product data)
Bare IP typed, dark (screenshot removed: contained real product data) (screenshot removed: contained real product data)
Bad port, light (screenshot removed: contained real product data) (screenshot removed: contained real product data)
.deb server, dark (screenshot removed: contained real product data) (screenshot removed: contained real product data)
Desktop, light (screenshot removed: contained real product data) (screenshot removed: contained real product data)

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.

Light Dark
(screenshot removed: contained real product data) (screenshot removed: contained real product data)

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 and pnpm check:changed all 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.tsx hands 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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

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.
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The host edit screen now uses shared settings components for editable fields and host removal. It displays save errors, invalid-address errors, and conditional endpoint previews in a section footer, and removes the prior explanatory text and address hint. The host version section places update instructions in a settings-section footer. Fallback update instructions are shortened, and host-edit guidance strings are removed from the listed locales.

Merge Risk: Minimal · up to 0c8a6

This change simplifies the Edit host screen and shortens the update instructions. Save, validation and remove behavior are unchanged, and no concrete defect was found. The PR is held for UI sign-off.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Description check Inconclusive The description follows the repository template closely: it has ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk with level, Review, Agent skill upstream boundary, Notes, and Checkli… 1) In Linked Issue, either link an existing issue (for example 'Fixes #NNN') or state explicitly that the author is a stablyai team member and no issue is needed. 2) In AI Disclosure, either state which AI model was used, if any, or confirm…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the main change: the Edit host screen is cut down to name, address, version, and remove rows. It follows the conventional fix(mobile) prefix and matches the objectives and file summari…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the Edit host screen is cut down to name, address, version, and remove rows. It follows the conventional fix(mobile) prefix and matches the objectives and file summaries, which show the screen restructured into those four elements, the intro and help text removed, and locale keys dropped.

Full details: Description check

Explanation

The description follows the repository template closely: it has ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk with level, Review, Agent skill upstream boundary, Notes, and Checklist sections, and most are filled in with specific detail. The Linked Issue section is the main gap: it says 'No issue' and the template states an outside contributor's PR will be ignored unless it links an actual issue. The author is a maintainer-style contributor (follow-up from a UI review), so the template's special-case rule may apply, but the section still does not contain a 'Fixes #' or an explicit maintainer justification. The AI Disclosure section is empty, which the template only excuses for stablyai team members; the author's status is not stated. The Visual Proof section is complete with before/after pairs. Testing lists manual checks, and the template checkboxes are ticked. The description also notes the PR is held for UI review, which is appropriate.

Resolution

  1. In Linked Issue, either link an existing issue (for example 'Fixes #NNN') or state explicitly that the author is a stablyai team member and no issue is needed. 2) In AI Disclosure, either state which AI model was used, if any, or confirm the author is a stablyai team member and the section does not apply. Once these are resolved, the description should meet the template.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 91d4442b-de78-4909-9363-5d9fb8a68b87
Commits

Reviewing files that changed from the base of the PR and between 7d41e82 and 0c8a682.

Files selected for processing: 14

  • mobile/app/h/[hostId]/edit.tsx
  • mobile/src/host-descriptors/host-manual-update-steps.ts
  • mobile/src/host-screen/identity/HostOrcaVersionSection.tsx
  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/fr.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh-Hant.json
  • mobile/src/i18n/locales/zh.json
Files with no reviewable changes: 10

  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/fr.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh-Hant.json
  • mobile/src/i18n/locales/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@AmoabaKelvin
AmoabaKelvin merged commit 81f7ded into main Nov 20, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant