Skip to content

feat(app): name this device by its own name instead of "This Mac" - #549

Merged
linroid merged 1 commit into
mainfrom
feat/device-names
Oct 14, 2026
Merged

linroid merged 1 commit into
mainfrom
feat/device-names

Conversation

@linroid

@linroid linroid commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Summary

The embedded device was labeled "This Mac", "This phone", "This PC" and so on everywhere devices are listed. It now shows its own name: the one set in Settings, else the Mac's host name, the name under Android's About phone, or UIDevice.name on iOS. The kind noun moves to the device's secondary line, where remote devices show host:port, so this device still stands out.

  • InstanceEntry.displayName returns the embedded device's label, falling back to the noun when it is blank. That covers the sidebar, rail, device switcher, Devices page, Settings device picker, inspector, tray and row dialogs.
  • InstanceEntry.detail / DevicePresence.detail become UiText: "This Mac" for the embedded device, host:port for remotes.
  • The few places that called localDeviceNoun() for a name now use the device name: the "Switch to …" banner, the Remove dialog and the menu bar's speed mode error.
  • Sentences about the device in hand ("Control this Mac from your phone", "Share this Mac…") keep the noun.

Note: without Apple's device name entitlement, UIDevice.name is just "iPhone" or "iPad" on iOS 16+, so iOS shows that until the user names the device.

Snapshots

Before After

Testing

  • ./gradlew :app:shared:jvmTest :app:desktop:test passes.
  • DevicesPageSnapshots.devicesPage_failedCount_opensTheFailedTabOnTheNas (only run with -Psnapshots) fails on main as well; it's unrelated to this change.

The embedded device now shows its name (the one set in Settings, else the
host name or the phone's name) wherever devices are listed: the sidebar,
the device switcher, the Devices page, Settings, the tray and dialogs.
"This Mac", "This phone" and the like move to its secondary line, which
remote devices fill with their address, so this device still stands out.
Sentences about the device in hand ("Control this Mac from your phone")
keep the noun.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T02:44:25.737154Z 500222d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude

claude Bot commented Oct 14, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@linroid
linroid merged commit 0dcde23 into main Oct 14, 2026
12 checks passed
@linroid
linroid deleted the feat/device-names branch October 14, 2026 02:48
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