Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(spaces-macos): notch tiles show the OS logo and where the Space runs (#4432)

ddupontec8fe1a32416
diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Notch/NotchContentView.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Notch/NotchContentView.swift
index 38dfa10168..f21259d53e 100644
--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Notch/NotchContentView.swift
+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Notch/NotchContentView.swift
@@ -390,7 +390,7 @@ struct NotchContentView: View {
.font(.system(size: 12))
.foregroundStyle(.white.opacity(0.6))
.lineLimit(1)
- .frame(maxWidth: .infinity, minHeight: 102, maxHeight: 102, alignment: .topLeading)
+ .frame(maxWidth: .infinity, minHeight: TileView.height, maxHeight: TileView.height, alignment: .topLeading)
} else {
tiles(v)
}
@@ -521,16 +521,18 @@ struct NotchContentView: View {
}
// Left to right from the content inset (the drag hit test assumes it).
if v.tiles.count > 4 {
- ScrollView(.horizontal, showsIndicators: false) { row }.frame(height: 102)
+ ScrollView(.horizontal, showsIndicators: false) { row }.frame(height: TileView.height)
} else {
- row.frame(maxWidth: .infinity, minHeight: 102, maxHeight: 102, alignment: .topLeading)
+ row.frame(maxWidth: .infinity, minHeight: TileView.height, maxHeight: TileView.height, alignment: .topLeading)
}
}
}
-/// A Space tile: its live thumbnail (or a plain frame until one arrives),
-/// then one line with the OS symbol, the status dot and the name. Dimmed
-/// when not live; outlined, with the dragged window's ghost, under a drag.
+/// A Space tile: a header line with the OS logo and, in secondary grey,
+/// where it runs ("This Mac", "Mac mini"); its live thumbnail (or a plain
+/// frame until one arrives); then one line with the status dot and the
+/// name. Dimmed when not live; outlined, with the dragged window's ghost,
+/// under a drag.
struct TileView: View {
let tile: AppNotchTile
var thumbnail: NSImage?
@@ -539,73 +541,19 @@ struct TileView: View {
/// hairline brightens.
@Environment(\.notchTileHovered) private var hovered
+ /// The header line's height (the core's `TILE_HEADER_HEIGHT`).
+ static let headerHeight: CGFloat = 14
+ /// The whole tile's height (the core's `TILE_ROW_HEIGHT`): the header,
+ /// 5 pt, the 80 pt thumbnail, 6 pt and the 16 pt caption.
+ static let height: CGFloat = headerHeight + 5 + 80 + 6 + 16
+
var body: some View {
- VStack(alignment: .leading, spacing: 6) {
- ZStack {
- RoundedRectangle(cornerRadius: 8, style: .continuous).fill(Color(white: 0.13))
- if let thumbnail {
- Image(nsImage: thumbnail)
- .resizable()
- .aspectRatio(contentMode: .fill)
- .frame(width: 128, height: 80)
- .clipped()
- .transition(.opacity)
- }
- if let progress = tile.progress {
- // Being created: the core's progress and phase.
- VStack(spacing: 6) {
- NotchActivityGlyph(activity: AppNotchActivity(
- kind: .provisioning, label: tile.label, symbol: nil, permille: progress,
- startedAt: nil, estimateMs: 0), size: 22)
- if let label = tile.progressLabel {
- Text(label)
- .font(.system(size: 10, weight: .medium))
- .foregroundStyle(.white.opacity(0.6))
- .lineLimit(1)
- }
- }
- } else if thumbnail == nil, let label = tile.progressLabel {
- Text(label)
- .font(.system(size: 10, weight: .medium))
- .foregroundStyle(.white.opacity(0.6))
- }
- if tile.signedIn {
- SignedInKey()
- .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topTrailing)
- .padding(5)
- }
- if let ghost {
- Image(nsImage: ghost)
- .resizable()
- .aspectRatio(contentMode: .fit)
- .clipShape(.rect(cornerRadius: 4))
- .shadow(color: .black.opacity(0.6), radius: 5, y: 2)
- .padding(8)
- .transition(.scale(scale: 1.06).combined(with: .opacity))
- }
- }
- .frame(width: 128, height: 80)
- .clipShape(.rect(cornerRadius: 8, style: .continuous))
- .overlay {
- RoundedRectangle(cornerRadius: 8, style: .continuous)
- .strokeBorder(tile.targeted ? Color.accentColor : .white.opacity(hovered ? 0.32 : 0.1),
- lineWidth: tile.targeted ? 2 : 1)
+ VStack(alignment: .leading, spacing: 5) {
+ header
+ VStack(alignment: .leading, spacing: 6) {
+ thumbnailFrame
+ caption
}
- .shadow(color: .black.opacity(hovered ? 0.5 : 0), radius: 6, y: 3)
- .offset(y: hovered ? -NotchPress.tileLift : 0)
- .animation(.easeOut(duration: 0.15), value: tile.targeted)
- .animation(NotchPress.spring, value: hovered)
- HStack(spacing: 5) {
- OsIconImage(id: tile.symbol, size: 11)
- .foregroundStyle(.white.opacity(0.6))
- Circle().fill(dot).frame(width: 6, height: 6)
- Text(tile.name)
- .font(.system(size: 11, weight: .medium))
- .foregroundStyle(.white)
- .lineLimit(1)
- .truncationMode(.tail)
- }
- .frame(width: 128, height: 16, alignment: .leading)
}
.opacity(tile.dim ? 0.5 : 1)
.contentShape(.rect)
@@ -614,6 +562,90 @@ struct TileView: View {
.accessibilityAddTraits(.isButton)
}
+ /// The OS logo, then where the Space runs in secondary grey; a long
+ /// machine name keeps both ends ("Dillon's Mac…Rack 3").
+ private var header: some View {
+ HStack(spacing: 5) {
+ OsIconImage(id: tile.symbol, size: 11)
+ .foregroundStyle(.white.opacity(0.85))
+ Text(tile.location)
+ .font(.system(size: 10, weight: .medium))
+ .foregroundStyle(.secondary)
+ .lineLimit(1)
+ .truncationMode(.middle)
+ }
+ .frame(width: 128, height: Self.headerHeight, alignment: .leading)
+ }
+
+ private var caption: some View {
+ HStack(spacing: 5) {
+ Circle().fill(dot).frame(width: 6, height: 6)
+ Text(tile.name)
+ .font(.system(size: 11, weight: .medium))
+ .foregroundStyle(.white)
+ .lineLimit(1)
+ .truncationMode(.tail)
+ }
+ .frame(width: 128, height: 16, alignment: .leading)
+ }
+
+ private var thumbnailFrame: some View {
+ ZStack {
+ RoundedRectangle(cornerRadius: 8, style: .continuous).fill(Color(white: 0.13))
+ if let thumbnail {
+ Image(nsImage: thumbnail)
+ .resizable()
+ .aspectRatio(contentMode: .fill)
+ .frame(width: 128, height: 80)
+ .clipped()
+ .transition(.opacity)
+ }
+ if let progress = tile.progress {
+ // Being created: the core's progress and phase.
+ VStack(spacing: 6) {
+ NotchActivityGlyph(activity: AppNotchActivity(
+ kind: .provisioning, label: tile.label, symbol: nil, permille: progress,
+ startedAt: nil, estimateMs: 0), size: 22)
+ if let label = tile.progressLabel {
+ Text(label)
+ .font(.system(size: 10, weight: .medium))
+ .foregroundStyle(.white.opacity(0.6))
+ .lineLimit(1)
+ }
+ }
+ } else if thumbnail == nil, let label = tile.progressLabel {
+ Text(label)
+ .font(.system(size: 10, weight: .medium))
+ .foregroundStyle(.white.opacity(0.6))
+ }
+ if tile.signedIn {
+ SignedInKey()
+ .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topTrailing)
+ .padding(5)
+ }
+ if let ghost {
+ Image(nsImage: ghost)
+ .resizable()
+ .aspectRatio(contentMode: .fit)
+ .clipShape(.rect(cornerRadius: 4))
+ .shadow(color: .black.opacity(0.6), radius: 5, y: 2)
+ .padding(8)
+ .transition(.scale(scale: 1.06).combined(with: .opacity))
+ }
+ }
+ .frame(width: 128, height: 80)
+ .clipShape(.rect(cornerRadius: 8, style: .continuous))
+ .overlay {
+ RoundedRectangle(cornerRadius: 8, style: .continuous)
+ .strokeBorder(tile.targeted ? Color.accentColor : .white.opacity(hovered ? 0.32 : 0.1),
+ lineWidth: tile.targeted ? 2 : 1)
+ }
+ .shadow(color: .black.opacity(hovered ? 0.5 : 0), radius: 6, y: 3)
+ .offset(y: hovered ? -NotchPress.tileLift : 0)
+ .animation(.easeOut(duration: 0.15), value: tile.targeted)
+ .animation(NotchPress.spring, value: hovered)
+ }
+
private var dot: Color {
switch tile.status {
case .running, .local: return .green
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/SnapshotTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/SnapshotTests.swift
index 300df10a50..66e0527260 100644
--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/SnapshotTests.swift
+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/SnapshotTests.swift
@@ -493,6 +493,40 @@ struct SnapshotTests {
}
}
+ /// Each tile's header: the OS logo, then where the Space runs in grey.
+ /// A Space on this Mac, one on another of your machines, and one on a
+ /// machine with a long name (truncated in the middle).
+ @Test func notchTileLocations() async throws {
+ func row(_ id: String, _ name: String, _ os: AppSpaceOs, _ osName: String, provider: String,
+ host: String? = nil, hostName: String? = nil) -> AppSpaceRow {
+ AppSpaceRow(id: id, name: name, provider: provider, spacesdVersion: "0.4.0",
+ features: ["desktop_stream"], addedAt: "2026-09-25T08:00:00Z",
+ os: os, osName: osName, osPrettyName: nil, image: nil, imageDigest: nil,
+ kind: nil, arch: "arm64", reachable: true, error: nil, host: host, hostName: hostName,
+ power: nil, powerState: nil, cloud: nil, cloudPlace: nil, cloudDelete: nil)
+ }
+ let backend = FixtureSpacesBackend(rows: [
+ row("local:dev", "Dev box", .linux, "Ubuntu", provider: "local"),
+ row("relay:m1/studio", "Studio", .macos, "macOS", provider: "relay", host: "m1", hostName: "Mac mini"),
+ row("relay:m2/ci", "CI runner", .windows, "Windows", provider: "relay", host: "m2",
+ hostName: "Dillon's Mac Studio in the Back Office Rack 3"),
+ ])
+ let m = ViewModelTests().makeModel(backend, kv: FakeKeyvault(try fixtureOverview()),
+ host: FixtureHost(), account: FixtureAccount(),
+ agents: FixtureAgentSetup())
+ m.onboarding.finish()
+ await m.refresh()
+ m.notch.send(.click)
+ let places = Dictionary(uniqueKeysWithValues: m.notch.view.tiles.map { ($0.id, $0.location) })
+ #expect(places["local:dev"] == "This Mac")
+ #expect(places["relay:m1/studio"] == "Mac mini")
+ #expect(places["relay:m2/ci"] == "Dillon's Mac Studio in the Back Office Rack 3")
+ let c = NotchController(model: m.notch)
+ c.apply(appNotchLayout(screen: NotchGeometry.fallbackScreen, prompt: NotchController.needsRow(m.notch.view)))
+ try assertSnapshot(NotchContentView(model: m.notch, controller: c).background(Color(white: 0.85)),
+ "notch-tile-locations", size: c.geometry.stage)
+ }
+
@Test func notchButtonPressed() async throws {
try await assertNotch("notch-button-pressed") {
$0.send(.click)
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-access.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-access.png
index 083dddefcc..2e6145ded1 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-access.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-access.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-hotspot.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-hotspot.png
index 42cc72e394..a472fcffeb 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-hotspot.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-hotspot.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-keyvault.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-keyvault.png
index 1ffdfbccda..a472fcffeb 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-keyvault.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-keyvault.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-provisioning.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-provisioning.png
index 5348410f2d..4927f7393d 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-provisioning.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-provisioning.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-transfer.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-transfer.png
index f047cc6450..339e8ec88a 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-transfer.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-activity-transfer.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-button-hover.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-button-hover.png
index 272549b399..0c5512ca27 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-button-hover.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-button-hover.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-button-pressed.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-button-pressed.png
index 5a0d4ac7ad..a5bbba7190 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-button-pressed.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-button-pressed.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-closed.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-closed.png
index ec54fba638..a472fcffeb 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-closed.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-closed.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-drag-target.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-drag-target.png
index cc0485babb..8cbf3193d2 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-drag-target.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-drag-target.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-drop.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-drop.png
index 7fee66342d..57222881f7 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-drop.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-drop.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-hover.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-hover.png
index 9ae2942838..c8d0ea91a5 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-hover.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-hover.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-permission.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-permission.png
index b508061961..84997b11be 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-permission.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-permission.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-search-hover.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-search-hover.png
index a56126edf2..b6b57ed6c9 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-search-hover.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-search-hover.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-search.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-search.png
index eef3a7a5f4..2be84a90b4 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-search.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-search.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tab-hover.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tab-hover.png
index 902deb989b..e4d321d662 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tab-hover.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tab-hover.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tab-pressed.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tab-pressed.png
index 8a8b1ebc40..7271bdfd53 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tab-pressed.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tab-pressed.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tile-hover.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tile-hover.png
index 60bfe5f750..889d6714ed 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tile-hover.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tile-hover.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tile-locations.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tile-locations.png
new file mode 100644
index 0000000000..dee8d9b925
Binary files /dev/null and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tile-locations.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tile-pressed.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tile-pressed.png
index d9126acfb0..e53f4d57cc 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tile-pressed.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tile-pressed.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tiles.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tiles.png
index df86f72e7f..387ff632e3 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tiles.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/notch-tiles.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-presentation.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-presentation.png
index f23c5c73b7..45df61cd6f 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-presentation.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-presentation.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-dwell.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-dwell.png
index b22e770532..d4dc9a94d0 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-dwell.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-dwell.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-glide.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-glide.png
index 1ac9cacfaa..6438d2c47e 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-glide.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-glide.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-open.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-open.png
index 2f2bf355a0..0e07aa89c7 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-open.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-open.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-opening.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-opening.png
index 16b5badb06..cff7e8503c 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-opening.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-opening.png differ
diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-still.png b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-still.png
index ea9de29046..94a2cb98ce 100644
Binary files a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-still.png and b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/Snapshots/onboarding-preview-still.png differ
diff --git a/docs/content/docs/cua-sdk/reference/spaces/app-core/notch.mdx b/docs/content/docs/cua-sdk/reference/spaces/app-core/notch.mdx
index 25c237c39f..759447c16f 100644
--- a/docs/content/docs/cua-sdk/reference/spaces/app-core/notch.mdx
+++ b/docs/content/docs/cua-sdk/reference/spaces/app-core/notch.mdx
@@ -303,7 +303,8 @@ Returned by [`app_notch_initial`](#app_notch_initial).
| `drop_target` / `dropTarget` | `bool` | | Accepts a teleport drop (reachable). |
| `targeted` | `bool` | | Under the dragged window. |
| `symbol` | `String` | | The Space's OS icon id (`os_icon`: `os-macos`, `os-windows`, `os-ubuntu`, ..., `os-linux`); the artwork is `os_icon_svg`, or on macOS the system symbol `os_icon_system_symbol` names. |
-| `label` | `String` | | Accessibility label: name, OS and status. |
+| `label` | `String` | | Accessibility label: name, OS, where it runs and status. |
+| `location` | `String` | | Where it runs, in words, on the tile's header line next to the OS logo: "This Mac", the machine that provides it ("Mac mini"), the address of one added by address, or the cloud's place (`location`). |
| `progress` | `Option<u32>` | | While it is being created: overall progress in thousandths (a ring over the tile). |
| `progress_label` / `progressLabel` | `Option<String>` | | While it is being created: the phase in words ("Starting…"), or "Failed"; while it is being deleted, "Deleting…". |
| `signed_in` / `signedIn` | `bool` | | Signed in through the Keyvault (and not dismissed): the key badge. |
diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/create-cancel.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/create-cancel.json
index ea89cc5560..9caa134a89 100644
--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/create-cancel.json
+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/create-cancel.json
@@ -54,7 +54,7 @@
"os-macos Mac [Starting] 10 1%"
],
"tiles": [
- "os-macos Mac, macOS, Starting 10 Starting…"
+ "os-macos Mac, macOS, This Mac, Starting 10 Starting…"
]
}
},
@@ -96,7 +96,7 @@
"os-macos Mac [Starting] 160 16%"
],
"tiles": [
- "os-macos Mac, macOS, Starting 160 Downloading image…"
+ "os-macos Mac, macOS, This Mac, Starting 160 Downloading image…"
]
}
},
@@ -138,7 +138,7 @@
"os-macos Mac [Starting] 187 18%"
],
"tiles": [
- "os-macos Mac, macOS, Starting 187 Downloading image…"
+ "os-macos Mac, macOS, This Mac, Starting 187 Downloading image…"
]
}
},
@@ -180,7 +180,7 @@
"os-macos Mac [Cancelling…] 187 18%"
],
"tiles": [
- "os-macos Mac, macOS, Cancelling… 187 Cancelling…"
+ "os-macos Mac, macOS, This Mac, Cancelling… 187 Cancelling…"
]
}
},
@@ -222,7 +222,7 @@
"os-macos Mac [Cancelling…] 187 18%"
],
"tiles": [
- "os-macos Mac, macOS, Cancelling… 187 Cancelling…"
+ "os-macos Mac, macOS, This Mac, Cancelling… 187 Cancelling…"
]
}
},
@@ -264,7 +264,7 @@
"os-macos Mac [Cancelling…] 187 18%"
],
"tiles": [
- "os-macos Mac, macOS, Cancelling… 187 Cancelling…"
+ "os-macos Mac, macOS, This Mac, Cancelling… 187 Cancelling…"
]
}
},
@@ -320,7 +320,7 @@
"os-linux Box [Starting] 10 1%"
],
"tiles": [
- "os-linux Box, Linux, Starting 10 Starting…"
+ "os-linux Box, Linux, This Mac, Starting 10 Starting…"
]
}
},
@@ -361,7 +361,7 @@
"os-linux Box [Starting] 425 42%"
],
"tiles": [
- "os-linux Box, Linux, Starting 425 Downloading image…"
+ "os-linux Box, Linux, This Mac, Starting 425 Downloading image…"
]
}
},
@@ -402,7 +402,7 @@
"os-linux Box [Cancelling…] 425 42%"
],
"tiles": [
- "os-linux Box, Linux, Cancelling… 425 Cancelling…"
+ "os-linux Box, Linux, This Mac, Cancelling… 425 Cancelling…"
]
}
},
@@ -443,7 +443,7 @@
"os-linux Box [Failed] - timed out: the cua daemon did not answer"
],
"tiles": [
- "os-linux Box, Linux, Failed - Failed"
+ "os-linux Box, Linux, This Mac, Failed - Failed"
]
}
},
diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/create-progress.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/create-progress.json
index 2634120a77..3b17c1df82 100644
--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/create-progress.json
+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/create-progress.json
@@ -56,7 +56,7 @@
"os-omarchy New Space [Starting] 10 1%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 10 Starting…"
+ "os-omarchy New Space, Linux, This Mac, Starting 10 Starting…"
]
}
},
@@ -100,7 +100,7 @@
"os-omarchy New Space [Starting] 11 1%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 11 Starting…"
+ "os-omarchy New Space, Linux, This Mac, Starting 11 Starting…"
]
}
},
@@ -144,7 +144,7 @@
"os-omarchy New Space [Starting] 11 1%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 11 Starting…"
+ "os-omarchy New Space, Linux, This Mac, Starting 11 Starting…"
]
}
},
@@ -188,7 +188,7 @@
"os-omarchy New Space [Starting] 15 1%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 15 Starting…"
+ "os-omarchy New Space, Linux, This Mac, Starting 15 Starting…"
]
}
},
@@ -232,7 +232,7 @@
"os-omarchy New Space [Starting] 18 1%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 18 Downloading image…"
+ "os-omarchy New Space, Linux, This Mac, Starting 18 Downloading image…"
]
}
},
@@ -276,7 +276,7 @@
"os-omarchy New Space [Starting] 104 10%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 104 Downloading image…"
+ "os-omarchy New Space, Linux, This Mac, Starting 104 Downloading image…"
]
}
},
@@ -320,7 +320,7 @@
"os-omarchy New Space [Starting] 360 36%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 360 Downloading image…"
+ "os-omarchy New Space, Linux, This Mac, Starting 360 Downloading image…"
]
}
},
@@ -364,7 +364,7 @@
"os-omarchy New Space [Starting] 360 36%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 360 Booting…"
+ "os-omarchy New Space, Linux, This Mac, Starting 360 Booting…"
]
}
},
@@ -408,7 +408,7 @@
"os-omarchy New Space [Starting] 361 36%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 361 Booting…"
+ "os-omarchy New Space, Linux, This Mac, Starting 361 Booting…"
]
}
},
@@ -452,7 +452,7 @@
"os-omarchy New Space [Starting] 362 36%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 362 Starting services…"
+ "os-omarchy New Space, Linux, This Mac, Starting 362 Starting services…"
]
}
},
@@ -496,7 +496,7 @@
"os-omarchy New Space [Starting] 525 52%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 525 Starting services…"
+ "os-omarchy New Space, Linux, This Mac, Starting 525 Starting services…"
]
}
},
@@ -540,7 +540,7 @@
"os-omarchy New Space [Starting] 851 85%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 851 Starting services…"
+ "os-omarchy New Space, Linux, This Mac, Starting 851 Starting services…"
]
}
},
@@ -584,7 +584,7 @@
"os-omarchy New Space [Starting] 963 96%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 963 Starting services…"
+ "os-omarchy New Space, Linux, This Mac, Starting 963 Starting services…"
]
}
},
@@ -628,7 +628,7 @@
"os-omarchy New Space [Starting] 968 96%"
],
"tiles": [
- "os-omarchy New Space, Linux, Starting 968 Starting services…"
+ "os-omarchy New Space, Linux, This Mac, Starting 968 Starting services…"
]
}
},
@@ -696,8 +696,8 @@
"os-omarchy New Space [Starting] 968 96%"
],
"tiles": [
- "os-ubuntu New Space, Linux, Starting 10 Starting…",
- "os-omarchy New Space, Linux, Starting 968 Starting services…"
+ "os-ubuntu New Space, Linux, This Mac, Starting 10 Starting…",
+ "os-omarchy New Space, Linux, This Mac, Starting 968 Starting services…"
]
}
},
@@ -765,8 +765,8 @@
"os-omarchy New Space [Starting] 968 96%"
],
"tiles": [
- "os-ubuntu New Space, Linux, Starting 59 Creating…",
- "os-omarchy New Space, Linux, Starting 968 Starting services…"
+ "os-ubuntu New Space, Linux, This Mac, Starting 59 Creating…",
+ "os-omarchy New Space, Linux, This Mac, Starting 968 Starting services…"
]
}
},
@@ -834,8 +834,8 @@
"os-omarchy New Space [Starting] 968 96%"
],
"tiles": [
- "os-ubuntu New Space, Linux, Starting 124 Creating…",
- "os-omarchy New Space, Linux, Starting 968 Starting services…"
+ "os-ubuntu New Space, Linux, This Mac, Starting 124 Creating…",
+ "os-omarchy New Space, Linux, This Mac, Starting 968 Starting services…"
]
}
},
@@ -903,8 +903,8 @@
"os-omarchy New Space [Starting] 987 98%"
],
"tiles": [
- "os-ubuntu New Space, Linux, Starting 124 Creating…",
- "os-omarchy New Space, Linux, Starting 987 Connecting…"
+ "os-ubuntu New Space, Linux, This Mac, Starting 124 Creating…",
+ "os-omarchy New Space, Linux, This Mac, Starting 987 Connecting…"
]
}
},
@@ -972,8 +972,8 @@
"os-omarchy New Space [Starting] 987 98%"
],
"tiles": [
- "os-ubuntu New Space, Linux, Starting 172 Starting services…",
- "os-omarchy New Space, Linux, Starting 987 Connecting…"
+ "os-ubuntu New Space, Linux, This Mac, Starting 172 Starting services…",
+ "os-omarchy New Space, Linux, This Mac, Starting 987 Connecting…"
]
}
},
@@ -1041,8 +1041,8 @@
"os-omarchy New Space [Starting] 989 98%"
],
"tiles": [
- "os-ubuntu New Space, Linux, Starting 831 Starting services…",
- "os-omarchy New Space, Linux, Starting 989 Connecting…"
+ "os-ubuntu New Space, Linux, This Mac, Starting 831 Starting services…",
+ "os-omarchy New Space, Linux, This Mac, Starting 989 Connecting…"
]
}
},
@@ -1110,8 +1110,8 @@
"os-omarchy New Space [Starting] 989 98%"
],
"tiles": [
- "os-ubuntu New Space, Linux, Starting 831 Starting services…",
- "os-omarchy New Space, Linux, Starting 989 Downloading image…"
+ "os-ubuntu New Space, Linux, This Mac, Starting 831 Starting services…",
+ "os-omarchy New Space, Linux, This Mac, Starting 989 Downloading image…"
]
}
},
@@ -1179,8 +1179,8 @@
"os-omarchy New Space [Starting] 1000 100%"
],
"tiles": [
- "os-ubuntu New Space, Linux, Starting 831 Starting services…",
- "os-omarchy New Space, Linux, Starting 1000 Ready"
+ "os-ubuntu New Space, Linux, This Mac, Starting 831 Starting services…",
+ "os-omarchy New Space, Linux, This Mac, Starting 1000 Ready"
]
}
},
@@ -1248,8 +1248,8 @@
"os-omarchy New Space [Starting] 1000 100%"
],
"tiles": [
- "os-ubuntu New Space, Linux, Starting 900 Starting services…",
- "os-omarchy New Space, Linux, Starting 1000 Ready"
+ "os-ubuntu New Space, Linux, This Mac, Starting 900 Starting services…",
+ "os-omarchy New Space, Linux, This Mac, Starting 1000 Ready"
]
}
},
@@ -1318,8 +1318,8 @@
"os-omarchy Omarchy [Running] - -"
],
"tiles": [
- "os-ubuntu New Space, Linux, Starting 900 Starting services…",
- "os-omarchy Omarchy, Linux, Running - -"
+ "os-ubuntu New Space, Linux, This Mac, Starting 900 Starting services…",
+ "os-omarchy Omarchy, Linux, This Mac, Running - -"
]
}
}
diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/delete-space.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/delete-space.json
index c8d59c83b8..97e97ce5bb 100644
--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/delete-space.json
+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/delete-space.json
@@ -64,8 +64,8 @@
"os-linux Keep [Running] - -"
],
"tiles": [
- "os-linux Demo, Linux, Deleting… - Deleting…",
- "os-linux Keep, Linux, Running - -"
+ "os-linux Demo, Linux, This Mac, Deleting… - Deleting…",
+ "os-linux Keep, Linux, This Mac, Running - -"
]
},
"isDeleting": true,
@@ -134,8 +134,8 @@
"os-linux Keep [Running] - -"
],
"tiles": [
- "os-linux Demo, Linux, Deleting… - Deleting…",
- "os-linux Keep, Linux, Running - -"
+ "os-linux Demo, Linux, This Mac, Deleting… - Deleting…",
+ "os-linux Keep, Linux, This Mac, Running - -"
]
},
"isDeleting": null,
@@ -204,8 +204,8 @@
"os-linux Keep [Running] - -"
],
"tiles": [
- "os-linux Demo, Linux, Deleting… - Deleting…",
- "os-linux Keep, Linux, Running - -"
+ "os-linux Demo, Linux, This Mac, Deleting… - Deleting…",
+ "os-linux Keep, Linux, This Mac, Running - -"
]
},
"isDeleting": null,
@@ -274,8 +274,8 @@
"os-linux Keep [Running] - -"
],
"tiles": [
- "os-linux Demo, Linux, Deleting… - Deleting…",
- "os-linux Keep, Linux, Running - -"
+ "os-linux Demo, Linux, This Mac, Deleting… - Deleting…",
+ "os-linux Keep, Linux, This Mac, Running - -"
]
},
"isDeleting": true,
@@ -322,7 +322,7 @@
"os-linux Keep [Running] - -"
],
"tiles": [
- "os-linux Keep, Linux, Running - -"
+ "os-linux Keep, Linux, This Mac, Running - -"
]
},
"isDeleting": true,
@@ -369,7 +369,7 @@
"os-linux Keep [Running] - -"
],
"tiles": [
- "os-linux Keep, Linux, Running - -"
+ "os-linux Keep, Linux, This Mac, Running - -"
]
},
"isDeleting": null,
@@ -414,7 +414,7 @@
"os-linux Keep [Running] - -"
],
"tiles": [
- "os-linux Keep, Linux, Running - -"
+ "os-linux Keep, Linux, This Mac, Running - -"
]
},
"isDeleting": null,
@@ -461,7 +461,7 @@
"os-linux Keep [Deleting…] - -"
],
"tiles": [
- "os-linux Keep, Linux, Deleting… - Deleting…"
+ "os-linux Keep, Linux, This Mac, Deleting… - Deleting…"
]
},
"isDeleting": true,
@@ -506,7 +506,7 @@
"os-linux Keep [Running] - -"
],
"tiles": [
- "os-linux Keep, Linux, Running - -"
+ "os-linux Keep, Linux, This Mac, Running - -"
]
},
"isDeleting": false,
diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/main-window.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/main-window.json
index e4e05a5cfd..c20f15dbaf 100644
--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/main-window.json
+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/main-window.json
@@ -1167,16 +1167,16 @@
{
"presentationPreviews": [
[
- "notch: tiles macos-qa,ubuntu-ci,windows-11; tab 3 Spaces; 232x82 loop 4000",
- "0: pointer 1717,656 open 0 content 0 tab 1000 hover 0 pressed false active false highlighted -",
- "850: pointer 1458,368 open 0 content 0 tab 1000 hover 0 pressed false active false highlighted -",
+ "notch: tiles macos-qa,ubuntu-ci,windows-11; tab 3 Spaces; 232x91 loop 4000",
+ "0: pointer 1717,728 open 0 content 0 tab 1000 hover 0 pressed false active false highlighted -",
+ "850: pointer 1458,404 open 0 content 0 tab 1000 hover 0 pressed false active false highlighted -",
"1350: pointer 1200,79 open 0 content 0 tab 1000 hover 336 pressed false active false highlighted -",
"1550: pointer 1200,79 open 0 content 0 tab 1000 hover 1043 pressed false active false highlighted -",
"1700: pointer 1200,79 open 497 content 0 tab 503 hover 501 pressed false active false highlighted -",
"2400: pointer 1200,79 open 1000 content 1000 tab 0 hover 0 pressed false active false highlighted -",
"2750: pointer 1201,80 open 1000 content 1000 tab 0 hover 0 pressed false active false highlighted -",
- "3150: pointer 1544,463 open 1000 content 500 tab 0 hover 0 pressed false active false highlighted -",
- "3900: pointer 1717,656 open 0 content 0 tab 1000 hover 0 pressed false active false highlighted -",
+ "3150: pointer 1544,511 open 1000 content 500 tab 0 hover 0 pressed false active false highlighted -",
+ "3900: pointer 1717,728 open 0 content 0 tab 1000 hover 0 pressed false active false highlighted -",
"still: pointer 1200,79 open 1000 content 1000 tab 0 hover 0 pressed false active false highlighted -"
],
[
diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/notch-drag-trigger.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/notch-drag-trigger.json
index 7c4a1fba75..10371708c9 100644
--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/notch-drag-trigger.json
+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/notch-drag-trigger.json
@@ -7,7 +7,7 @@
436.0,
0.0,
640.0,
- 200.0
+ 219.0
],
"frame": [
0.0,
@@ -40,7 +40,7 @@
2152.0,
0.0,
640.0,
- 193.0
+ 212.0
],
"frame": [
1512.0,
diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/notch.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/notch.json
index f533432012..94831fbf75 100644
--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/notch.json
+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/notch.json
@@ -19,9 +19,9 @@
"notchStyle": true,
"open": [
436.0,
- 818.0,
+ 799.0,
640.0,
- 164.0
+ 183.0
],
"prompt": [
641.0,
@@ -31,9 +31,9 @@
],
"stage": [
412.0,
- 794.0,
+ 775.0,
688.0,
- 188.0
+ 207.0
],
"tab": [
852.0,
@@ -62,9 +62,9 @@
"notchStyle": true,
"open": [
436.0,
- 782.0,
+ 763.0,
640.0,
- 200.0
+ 219.0
],
"prompt": [
641.0,
@@ -74,9 +74,9 @@
],
"stage": [
412.0,
- 758.0,
+ 739.0,
688.0,
- 224.0
+ 243.0
],
"tab": [
852.0,
@@ -105,9 +105,9 @@
"notchStyle": false,
"open": [
2152.0,
- 923.0,
+ 904.0,
640.0,
- 157.0
+ 176.0
],
"prompt": [
2333.0,
@@ -117,9 +117,9 @@
],
"stage": [
2128.0,
- 899.0,
+ 880.0,
688.0,
- 181.0
+ 200.0
],
"tab": [
2592.0,
@@ -148,9 +148,9 @@
"notchStyle": false,
"open": [
2152.0,
- 887.0,
+ 868.0,
640.0,
- 193.0
+ 212.0
],
"prompt": [
2333.0,
@@ -160,9 +160,9 @@
],
"stage": [
2128.0,
- 863.0,
+ 844.0,
688.0,
- 217.0
+ 236.0
],
"tab": [
2592.0,
diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/provisioning.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/provisioning.json
index 7c525c040d..75e9d1b974 100644
--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/provisioning.json
+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/provisioning.json
@@ -39,7 +39,7 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-linux Demo, Linux, Running - -"
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -102,8 +102,8 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-linux New Space, Linux, Starting 10 Starting…",
- "os-linux Demo, Linux, Running - -"
+ "os-linux New Space, Linux, This Mac, Starting 10 Starting…",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -166,8 +166,8 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-linux New Space, Linux, Starting 10 Starting…",
- "os-linux Demo, Linux, Running - -"
+ "os-linux New Space, Linux, This Mac, Starting 10 Starting…",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -230,8 +230,8 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-linux New Space, Linux, Starting 425 Downloading image…",
- "os-linux Demo, Linux, Running - -"
+ "os-linux New Space, Linux, This Mac, Starting 425 Downloading image…",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -316,9 +316,9 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-macos Mac, macOS, Starting 10 Starting…",
- "os-linux New Space, Linux, Starting 425 Downloading image…",
- "os-linux Demo, Linux, Running - -"
+ "os-macos Mac, macOS, This Mac, Starting 10 Starting…",
+ "os-linux New Space, Linux, This Mac, Starting 425 Downloading image…",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -403,9 +403,9 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-macos Mac, macOS, Starting 13 Creating…",
- "os-linux New Space, Linux, Starting 425 Downloading image…",
- "os-linux Demo, Linux, Running - -"
+ "os-macos Mac, macOS, This Mac, Starting 13 Creating…",
+ "os-linux New Space, Linux, This Mac, Starting 425 Downloading image…",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -490,9 +490,9 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-macos Mac, macOS, Starting 13 Creating…",
- "os-linux New Space, Linux, Starting 805 Booting…",
- "os-linux Demo, Linux, Running - -"
+ "os-macos Mac, macOS, This Mac, Starting 13 Creating…",
+ "os-linux New Space, Linux, This Mac, Starting 805 Booting…",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -577,9 +577,9 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-macos Mac, macOS, Failed - Failed",
- "os-linux New Space, Linux, Starting 805 Booting…",
- "os-linux Demo, Linux, Running - -"
+ "os-macos Mac, macOS, This Mac, Failed - Failed",
+ "os-linux New Space, Linux, This Mac, Starting 805 Booting…",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -664,9 +664,9 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-macos Mac, macOS, Failed - Failed",
- "os-linux New Space, Linux, Starting 985 Connecting…",
- "os-linux Demo, Linux, Running - -"
+ "os-macos Mac, macOS, This Mac, Failed - Failed",
+ "os-linux New Space, Linux, This Mac, Starting 985 Connecting…",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -751,9 +751,9 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-macos Mac, macOS, Failed - Failed",
- "os-linux New Space, Linux, Starting 1000 Ready",
- "os-linux Demo, Linux, Running - -"
+ "os-macos Mac, macOS, This Mac, Failed - Failed",
+ "os-linux New Space, Linux, This Mac, Starting 1000 Ready",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -816,8 +816,8 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-linux New Space, Linux, Starting 1000 Ready",
- "os-linux Demo, Linux, Running - -"
+ "os-linux New Space, Linux, This Mac, Starting 1000 Ready",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -901,9 +901,9 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-linux Omarchy, Linux, Starting 10 Starting…",
- "os-linux New Space, Linux, Starting 1000 Ready",
- "os-linux Demo, Linux, Running - -"
+ "os-linux Omarchy, Linux, Cua Cloud, Starting 10 Starting…",
+ "os-linux New Space, Linux, This Mac, Starting 1000 Ready",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -987,9 +987,9 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-linux Omarchy, Linux, Failed - Failed",
- "os-linux New Space, Linux, Starting 1000 Ready",
- "os-linux Demo, Linux, Running - -"
+ "os-linux Omarchy, Linux, Cua Cloud, Failed - Failed",
+ "os-linux New Space, Linux, This Mac, Starting 1000 Ready",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -1052,8 +1052,8 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-linux New Space, Linux, Starting 1000 Ready",
- "os-linux Demo, Linux, Running - -"
+ "os-linux New Space, Linux, This Mac, Starting 1000 Ready",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -1137,9 +1137,9 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-linux Cloud, Linux, Starting 10 Starting…",
- "os-linux New Space, Linux, Starting 1000 Ready",
- "os-linux Demo, Linux, Running - -"
+ "os-linux Cloud, Linux, Cua Cloud, Starting 10 Starting…",
+ "os-linux New Space, Linux, This Mac, Starting 1000 Ready",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -1223,9 +1223,9 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-linux Cloud, Linux, Failed - Failed",
- "os-linux New Space, Linux, Starting 1000 Ready",
- "os-linux Demo, Linux, Running - -"
+ "os-linux Cloud, Linux, Cua Cloud, Failed - Failed",
+ "os-linux New Space, Linux, This Mac, Starting 1000 Ready",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -1288,8 +1288,8 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-linux New Space, Linux, Starting 1000 Ready",
- "os-linux Demo, Linux, Running - -"
+ "os-linux New Space, Linux, This Mac, Starting 1000 Ready",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
},
@@ -1353,8 +1353,8 @@
"os-linux Demo [Running] - -"
],
"tiles": [
- "os-linux Fresh, Linux, Running - -",
- "os-linux Demo, Linux, Running - -"
+ "os-linux Fresh, Linux, This Mac, Running - -",
+ "os-linux Demo, Linux, This Mac, Running - -"
]
}
}
diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/space-power.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/space-power.json
index e2e41c7f07..63d3ba5119 100644
--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/space-power.json
+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/space-power.json
@@ -109,10 +109,10 @@
"os-linux Studio [Running] - - <power Turn off>"
],
"tiles": [
- "os-linux Box, Linux, Running - -",
- "os-macos Mac, macOS, Running - -",
- "os-linux Studio, Linux, Running - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Running - -",
+ "os-macos Mac, macOS, This Mac, Running - -",
+ "os-linux Studio, Linux, Mac mini, Running - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [],
@@ -226,10 +226,10 @@
"os-linux Studio [Running] - - <power Turn off>"
],
"tiles": [
- "os-linux Box, Linux, Suspending… - -",
- "os-macos Mac, macOS, Running - -",
- "os-linux Studio, Linux, Running - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspending… - -",
+ "os-macos Mac, macOS, This Mac, Running - -",
+ "os-linux Studio, Linux, Mac mini, Running - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -345,10 +345,10 @@
"os-linux Studio [Running] - - <power Turn off>"
],
"tiles": [
- "os-linux Box, Linux, Suspending… - -",
- "os-macos Mac, macOS, Running - -",
- "os-linux Studio, Linux, Running - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspending… - -",
+ "os-macos Mac, macOS, This Mac, Running - -",
+ "os-linux Studio, Linux, Mac mini, Running - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -464,10 +464,10 @@
"os-linux Studio [Running] - - <power Turn off>"
],
"tiles": [
- "os-linux Box, Linux, Suspending… - -",
- "os-macos Mac, macOS, Running - -",
- "os-linux Studio, Linux, Running - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspending… - -",
+ "os-macos Mac, macOS, This Mac, Running - -",
+ "os-linux Studio, Linux, Mac mini, Running - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -583,10 +583,10 @@
"os-linux Studio [Running] - - <power Turn off>"
],
"tiles": [
- "os-linux Box, Linux, Suspending… - -",
- "os-macos Mac, macOS, Running - -",
- "os-linux Studio, Linux, Running - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspending… - -",
+ "os-macos Mac, macOS, This Mac, Running - -",
+ "os-linux Studio, Linux, Mac mini, Running - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -702,10 +702,10 @@
"os-linux Studio [Running] - - <power Turn off>"
],
"tiles": [
- "os-linux Box, Linux, Suspended - -",
- "os-macos Mac, macOS, Running - -",
- "os-linux Studio, Linux, Running - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspended - -",
+ "os-macos Mac, macOS, This Mac, Running - -",
+ "os-linux Studio, Linux, Mac mini, Running - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [],
@@ -819,10 +819,10 @@
"os-linux Studio [Running] - - <power Turn off>"
],
"tiles": [
- "os-linux Box, Linux, Resuming… - -",
- "os-macos Mac, macOS, Running - -",
- "os-linux Studio, Linux, Running - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Resuming… - -",
+ "os-macos Mac, macOS, This Mac, Running - -",
+ "os-linux Studio, Linux, Mac mini, Running - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -939,10 +939,10 @@
"os-linux Studio [Running] - - <power Turn off>"
],
"tiles": [
- "os-linux Box, Linux, Suspended - -",
- "os-macos Mac, macOS, Running - -",
- "os-linux Studio, Linux, Running - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspended - -",
+ "os-macos Mac, macOS, This Mac, Running - -",
+ "os-linux Studio, Linux, Mac mini, Running - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -1059,10 +1059,10 @@
"os-linux Studio [Running] - - <power Turn off>"
],
"tiles": [
- "os-linux Box, Linux, Suspended - -",
- "os-macos Mac, macOS, Turning off… - -",
- "os-linux Studio, Linux, Running - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspended - -",
+ "os-macos Mac, macOS, This Mac, Turning off… - -",
+ "os-linux Studio, Linux, Mac mini, Running - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -1180,10 +1180,10 @@
"os-linux Studio [Running] - - <power Turn off>"
],
"tiles": [
- "os-linux Box, Linux, Suspended - -",
- "os-macos Mac, macOS, Turning off… - -",
- "os-linux Studio, Linux, Running - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspended - -",
+ "os-macos Mac, macOS, This Mac, Turning off… - -",
+ "os-linux Studio, Linux, Mac mini, Running - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -1301,10 +1301,10 @@
"os-linux Studio [Running] - - <power Turn off>"
],
"tiles": [
- "os-linux Box, Linux, Suspended - -",
- "os-macos Mac, macOS, Off - -",
- "os-linux Studio, Linux, Running - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspended - -",
+ "os-macos Mac, macOS, This Mac, Off - -",
+ "os-linux Studio, Linux, Mac mini, Running - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -1421,10 +1421,10 @@
"os-linux Studio [Turning off…] - - <power Turning off… busy>"
],
"tiles": [
- "os-linux Box, Linux, Suspended - -",
- "os-macos Mac, macOS, Off - -",
- "os-linux Studio, Linux, Turning off… - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspended - -",
+ "os-macos Mac, macOS, This Mac, Off - -",
+ "os-linux Studio, Linux, Mac mini, Turning off… - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -1542,10 +1542,10 @@
"os-linux Studio [Turning off…] - - <power Turning off… busy>"
],
"tiles": [
- "os-linux Box, Linux, Suspended - -",
- "os-macos Mac, macOS, Off - -",
- "os-linux Studio, Linux, Turning off… - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspended - -",
+ "os-macos Mac, macOS, This Mac, Off - -",
+ "os-linux Studio, Linux, Mac mini, Turning off… - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -1663,10 +1663,10 @@
"os-linux Studio [Off] - - <power Turn on on>"
],
"tiles": [
- "os-linux Box, Linux, Suspended - -",
- "os-macos Mac, macOS, Off - -",
- "os-linux Studio, Linux, Off - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspended - -",
+ "os-macos Mac, macOS, This Mac, Off - -",
+ "os-linux Studio, Linux, Mac mini, Off - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -1783,10 +1783,10 @@
"os-linux Studio [Off] - - <power Turn on on>"
],
"tiles": [
- "os-linux Box, Linux, Suspended - -",
- "os-macos Mac, macOS, Turning on… - -",
- "os-linux Studio, Linux, Off - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspended - -",
+ "os-macos Mac, macOS, This Mac, Turning on… - -",
+ "os-linux Studio, Linux, Mac mini, Off - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -1903,10 +1903,10 @@
"os-linux Studio [Off] - - <power Turn on on>"
],
"tiles": [
- "os-linux Box, Linux, Suspended - -",
- "os-macos Mac, macOS, Deleting… - Deleting…",
- "os-linux Studio, Linux, Off - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspended - -",
+ "os-macos Mac, macOS, This Mac, Deleting… - Deleting…",
+ "os-linux Studio, Linux, Mac mini, Off - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
@@ -2000,9 +2000,9 @@
"os-linux Studio [Off] - - <power Turn on on>"
],
"tiles": [
- "os-linux Box, Linux, Suspended - -",
- "os-linux Studio, Linux, Off - -",
- "os-linux Pool C, Linux, Running - -"
+ "os-linux Box, Linux, This Mac, Suspended - -",
+ "os-linux Studio, Linux, Mac mini, Off - -",
+ "os-linux Pool C, Linux, Cua Cloud, Running - -"
]
},
"powering": [
diff --git a/libs/cua/crates/cua-spaces-app-core/src/notch/mod.rs b/libs/cua/crates/cua-spaces-app-core/src/notch/mod.rs
index 76fff66330..572829db72 100644
--- a/libs/cua/crates/cua-spaces-app-core/src/notch/mod.rs
+++ b/libs/cua/crates/cua-spaces-app-core/src/notch/mod.rs
@@ -121,8 +121,11 @@ pub const TILE_WIDTH: f64 = 128.0;
pub const TILE_THUMB_HEIGHT: f64 = 80.0;
/// Space between tiles.
pub const TILE_GAP: f64 = 12.0;
-/// Tile row height: the thumbnail, a 6 pt gap and the one-line caption.
-pub const TILE_ROW_HEIGHT: f64 = TILE_THUMB_HEIGHT + 6.0 + 16.0;
+/// A tile's header line: the OS logo and where the Space runs.
+pub const TILE_HEADER_HEIGHT: f64 = 14.0;
+/// Tile row height: the header line, a 5 pt gap, the thumbnail, a 6 pt gap
+/// and the one-line caption.
+pub const TILE_ROW_HEIGHT: f64 = TILE_HEADER_HEIGHT + 5.0 + TILE_THUMB_HEIGHT + 6.0 + 16.0;
/// Teleport prompt (or permission line) height.
pub const PROMPT_HEIGHT: f64 = 36.0;
/// How much taller than the notch the "Teleport to Cua" box grows.
@@ -297,8 +300,13 @@ pub struct NotchTile {
/// `os-ubuntu`, ..., `os-linux`); the artwork is [`os_icon_svg`], or on
/// macOS the system symbol [`os_icon_system_symbol`] names.
pub symbol: String,
- /// Accessibility label: name, OS and status.
+ /// Accessibility label: name, OS, where it runs and status.
pub label: String,
+ /// Where it runs, in words, on the tile's header line next to the OS
+ /// logo: "This Mac", the machine that provides it ("Mac mini"), the
+ /// address of one added by address, or the cloud's place ([`location`]).
+ #[serde(default)]
+ pub location: String,
/// While it is being created: overall progress in thousandths (a ring
/// over the tile).
pub progress: Option<u32>,
@@ -395,6 +403,53 @@ pub fn os_icon_system_symbol(id: &str) -> Option<&'static str> {
(id == "os-macos").then_some("apple.logo")
}
+/// Where a Space runs, in words, for its tile: "This Mac" for one on this
+/// machine; for one your other machine provides, that machine's name (the
+/// relay's device name, else the machine's own row in `spaces`, else its
+/// relay id); for one added by address, its name for the machine, else the
+/// address; for one in your cloud, its place ("AWS \u{b7} us-west-2").
+pub fn location(space: &Space, spaces: &[Space]) -> String {
+ use crate::model::SpaceProvider;
+ let text = |v: &Option<String>| v.clone().filter(|v| !v.trim().is_empty());
+ if space.id == THIS_MACHINE_ID {
+ return "This Mac".into();
+ }
+ match space.provider.unwrap_or(SpaceProvider::Cloud) {
+ SpaceProvider::Local => "This Mac".into(),
+ SpaceProvider::Cloud => crate::spaces::sidebar::location_text(space).into(),
+ SpaceProvider::Direct => text(&space.host_name).unwrap_or_else(|| {
+ space
+ .id
+ .strip_prefix("space://direct/")
+ .or_else(|| space.id.strip_prefix("direct:"))
+ .unwrap_or(&space.id)
+ .to_string()
+ }),
+ SpaceProvider::Relay => {
+ if let Some(place) =
+ text(&space.cloud_place).filter(|_| crate::spaces::sidebar::in_your_cloud(space))
+ {
+ return place;
+ }
+ match text(&space.host) {
+ Some(host) => text(&space.host_name)
+ .or_else(|| {
+ spaces
+ .iter()
+ .find(|m| {
+ m.id.strip_prefix("relay:") == Some(host.as_str())
+ && text(&m.host).is_none()
+ })
+ .map(|m| m.name.clone())
+ })
+ .unwrap_or(host),
+ // The machine itself.
+ None => text(&space.host_name).unwrap_or_else(|| space.name.clone()),
+ }
+ }
+ }
+}
+
/// Whether `space` matches the header's search: every word of `query`
/// (case-insensitive) is in its name, OS, OS name, status, detail or
/// group. An empty query matches everything.
@@ -408,6 +463,8 @@ pub fn matches(space: &Space, query: &str) -> bool {
&format!("{:?}", space.status),
space.detail.as_str(),
space.fleet_id.as_deref().unwrap_or_default(),
+ crate::spaces::sidebar::location_text(space),
+ space.host_name.as_deref().unwrap_or_default(),
]
.join("\n")
.to_lowercase();
@@ -437,14 +494,16 @@ pub fn tiles_matching(spaces: &[Space], targeted: Option<&str>, query: &str) ->
.filter(|s| s.id != THIS_MACHINE_ID && matches(s, query))
.take(MAX_TILES)
.map(|s| NotchTile {
+ location: location(&s, spaces),
dim: !s.status.is_live(),
drop_target: accepts_drop(&s),
targeted: targeted == Some(s.id.as_str()),
symbol: os_icon(s.os, s.os_name.as_deref()).into(),
label: format!(
- "{}, {}, {}",
+ "{}, {}, {}, {}",
s.name,
s.os.label(),
+ location(&s, spaces),
crate::spaces::sidebar::status_text(&s)
),
progress: s
@@ -1329,10 +1388,58 @@ mod tests {
assert_eq!(by("b").symbol, "os-windows");
assert_eq!(by("c").symbol, "os-macos");
assert_eq!(by("d").symbol, "os-linux", "no distro reported: Tux");
- assert_eq!(by("b").label, "Lab PC, Windows, Suspended");
+ assert_eq!(by("b").label, "Lab PC, Windows, Cua Cloud, Suspended");
assert!(by("b").targeted && by("b").dim);
}
+ #[test]
+ fn tiles_say_where_each_space_runs() {
+ use crate::model::SpaceProvider;
+ let with = |id: &str, name: &str, p: SpaceProvider| {
+ let mut s = space(id, name, SpaceOs::Linux, SpaceStatus::Running);
+ s.provider = Some(p);
+ s
+ };
+ let local = with("local:dev", "Dev", SpaceProvider::Local);
+ let machine = with("relay:m1", "Mac mini", SpaceProvider::Relay);
+ let mut named = with("relay:m1/a", "Aurora", SpaceProvider::Relay);
+ named.host = Some("m1".into());
+ named.host_name = Some("Studio Mac mini".into());
+ let mut unnamed = named.clone();
+ unnamed.id = "relay:m1/b".into();
+ unnamed.host_name = None;
+ let mut stranger = unnamed.clone();
+ stranger.id = "relay:m9/c".into();
+ stranger.host = Some("m9".into());
+ let direct = with("direct:10.0.0.7:8000", "Box", SpaceProvider::Direct);
+ let mut aws = with("relay:aws/x", "Worker", SpaceProvider::Relay);
+ aws.cloud = Some("aws".into());
+ aws.cloud_place = Some("AWS \u{b7} us-west-2".into());
+ let all = vec![
+ local.clone(),
+ machine.clone(),
+ named.clone(),
+ unnamed.clone(),
+ stranger.clone(),
+ direct.clone(),
+ aws.clone(),
+ ];
+ for (s, want) in [
+ (&local, "This Mac"),
+ (&machine, "Mac mini"),
+ (&named, "Studio Mac mini"),
+ (&unnamed, "Mac mini"),
+ (&stranger, "m9"),
+ (&direct, "10.0.0.7:8000"),
+ (&aws, "AWS \u{b7} us-west-2"),
+ ] {
+ assert_eq!(location(s, &all), want, "{}", s.id);
+ }
+ let t = tiles(&[local], None);
+ assert_eq!(t[0].location, "This Mac");
+ assert_eq!(t[0].label, "Dev, Linux, This Mac, Running");
+ }
+
#[test]
fn the_tab_counts_remote_spaces_and_tucks_away_during_a_drag() {
let spaces = vec![
@@ -1769,7 +1876,7 @@ mod tests {
(t.progress, t.progress_label.as_deref()),
(None, Some("Deleting\u{2026}"))
);
- assert_eq!(t.label, "Gone, Linux, Deleting\u{2026}");
+ assert_eq!(t.label, "Gone, Linux, Cua Cloud, Deleting\u{2026}");
}
#[test]
diff --git a/libs/cua/crates/cua-spaces-app-core/src/onboarding_preview.rs b/libs/cua/crates/cua-spaces-app-core/src/onboarding_preview.rs
index e308d5f6a4..40d49f7bd7 100644
--- a/libs/cua/crates/cua-spaces-app-core/src/onboarding_preview.rs
+++ b/libs/cua/crates/cua-spaces-app-core/src/onboarding_preview.rs
@@ -210,7 +210,7 @@ fn scaled(r: NotchRadii, s: f64) -> NotchRadii {
fn sample_space(name: &str, os: SpaceOs, os_name: &str, scene: ThumbnailScene) -> Space {
Space {
- id: format!("cloud:{name}"),
+ id: format!("local:{name}"),
name: name.into(),
os,
status: SpaceStatus::Running,
@@ -221,7 +221,7 @@ fn sample_space(name: &str, os: SpaceOs, os_name: &str, scene: ThumbnailScene) -
fleet_id: None,
size: None,
region: None,
- provider: Some(SpaceProvider::Cloud),
+ provider: Some(SpaceProvider::Local),
sdk: None,
os_name: Some(os_name.into()),
os_pretty_name: None,
diff --git a/libs/cua/crates/cua-spaces-ffi/src/app_core_types.rs b/libs/cua/crates/cua-spaces-ffi/src/app_core_types.rs
index c63b0bc5d1..e866ebf41d 100644
--- a/libs/cua/crates/cua-spaces-ffi/src/app_core_types.rs
+++ b/libs/cua/crates/cua-spaces-ffi/src/app_core_types.rs
@@ -1446,8 +1446,12 @@ pub struct AppNotchTile {
/// `os-ubuntu`, ..., `os-linux`); the artwork is [`os_icon_svg`], or on
/// macOS the system symbol [`os_icon_system_symbol`] names.
pub symbol: String,
- /// Accessibility label: name, OS and status.
+ /// Accessibility label: name, OS, where it runs and status.
pub label: String,
+ /// Where it runs, in words, on the tile's header line next to the OS
+ /// logo: "This Mac", the machine that provides it ("Mac mini"), the
+ /// address of one added by address, or the cloud's place ([`location`]).
+ pub location: String,
/// While it is being created: overall progress in thousandths (a ring
/// over the tile).
pub progress: Option<u32>,
diff --git a/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift b/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift
index ad532faa37..b77495330c 100644
--- a/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift
+++ b/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift
@@ -18751,9 +18751,15 @@ public struct AppNotchTile: Equatable, Hashable {
*/
public var symbol: String
/**
- * Accessibility label: name, OS and status.
+ * Accessibility label: name, OS, where it runs and status.
*/
public var label: String
+ /**
+ * Where it runs, in words, on the tile's header line next to the OS
+ * logo: "This Mac", the machine that provides it ("Mac mini"), the
+ * address of one added by address, or the cloud's place ([`location`]).
+ */
+ public var location: String
/**
* While it is being created: overall progress in thousandths (a ring
* over the tile).
@@ -18799,8 +18805,13 @@ public struct AppNotchTile: Equatable, Hashable {
* macOS the system symbol [`os_icon_system_symbol`] names.
*/symbol: String,
/**
- * Accessibility label: name, OS and status.
+ * Accessibility label: name, OS, where it runs and status.
*/label: String,
+ /**
+ * Where it runs, in words, on the tile's header line next to the OS
+ * logo: "This Mac", the machine that provides it ("Mac mini"), the
+ * address of one added by address, or the cloud's place ([`location`]).
+ */location: String,
/**
* While it is being created: overall progress in thousandths (a ring
* over the tile).
@@ -18821,6 +18832,7 @@ public struct AppNotchTile: Equatable, Hashable {
self.targeted = targeted
self.symbol = symbol
self.label = label
+ self.location = location
self.progress = progress
self.progressLabel = progressLabel
self.signedIn = signedIn
@@ -18851,6 +18863,7 @@ public struct FfiConverterTypeAppNotchTile: FfiConverterRustBuffer {
targeted: FfiConverterBool.read(from: &buf),
symbol: FfiConverterString.read(from: &buf),
label: FfiConverterString.read(from: &buf),
+ location: FfiConverterString.read(from: &buf),
progress: FfiConverterOptionUInt32.read(from: &buf),
progressLabel: FfiConverterOptionString.read(from: &buf),
signedIn: FfiConverterBool.read(from: &buf)
@@ -18867,6 +18880,7 @@ public struct FfiConverterTypeAppNotchTile: FfiConverterRustBuffer {
FfiConverterBool.write(value.targeted, into: &buf)
FfiConverterString.write(value.symbol, into: &buf)
FfiConverterString.write(value.label, into: &buf)
+ FfiConverterString.write(value.location, into: &buf)
FfiConverterOptionUInt32.write(value.progress, into: &buf)
FfiConverterOptionString.write(value.progressLabel, into: &buf)
FfiConverterBool.write(value.signedIn, into: &buf)