Repository navigation
feat(app): name this device by its own name instead of "This Mac" - #549
Merged
Merged
Conversation
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.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.nameon iOS. The kind noun moves to the device's secondary line, where remote devices showhost:port, so this device still stands out.InstanceEntry.displayNamereturns 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.detailbecomeUiText: "This Mac" for the embedded device,host:portfor remotes.localDeviceNoun()for a name now use the device name: the "Switch to …" banner, the Remove dialog and the menu bar's speed mode error.Note: without Apple's device name entitlement,
UIDevice.nameis just "iPhone" or "iPad" on iOS 16+, so iOS shows that until the user names the device.Snapshots
Testing
./gradlew :app:shared:jvmTest :app:desktop:testpasses.DevicesPageSnapshots.devicesPage_failedCount_opensTheFailedTabOnTheNas(only run with-Psnapshots) fails onmainas well; it's unrelated to this change.