Skip to content

feat(mobile): center the desktops list and let users name a desktop - #581

Merged
huichen merged 1 commit into
mainfrom
claude/mobile-desktop-name
Sep 13, 2026
Merged

huichen merged 1 commit into
mainfrom
claude/mobile-desktop-name

Conversation

@huichen

@huichen huichen commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

What

Follow-up polish for the paired-desktops screen.

  • The list now sits in one centered column with side padding, so cards stop stretching edge to edge on tablets and desktop-sized windows; title, description and error text are centered too.
  • Each desktop can be given a display name (pencil button, inline dialog). Unnamed desktops keep showing their id, and a named desktop shows the name with the id underneath.
  • The sessions header shows the chosen name instead of the raw id.

Notes

  • The name is a local label on this phone: it is stored in the existing paired-desktop registry, never sent to the platform or the desktop, and is deleted with the pairing. A credential refresh preserves it; clearing the field reverts to the id.
  • PairedDesktop moved from remote/storage.ts to remote/types.ts so the domain type lives with the other remote types; storage now imports it.
  • Unpair confirmation now names the desktop being removed.

Verification

  • npm run typecheck, npm run lint, npm test in mobile/: 54 suites / 784 tests pass.
  • New coverage: name round-trip, name kept across a credential refresh, name cleared with the pairing, blank name reverts to the id, rename of an unknown desktop is a no-op, rename/no-op-on-unchanged/failure flows in the screen, and a style assertion for the centered padded column.

Not verified

Visual result on a real device or emulator — the layout was not rendered on screen here, only asserted through the component tree.

@huichen
huichen enabled auto-merge (squash) September 13, 2026 03:11
@huichen
huichen merged commit f5e88a3 into main Sep 13, 2026
12 checks passed
@huichen
huichen deleted the claude/mobile-desktop-name branch September 13, 2026 03:13
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