Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
Spaces onboarding: visible Skip for now pill, no duplicate account copy (CUA-2311) (#5975)
cua-agents[bot]434e1c0235a4
diff --git a/apps/cua-spaces-web/src/__tests__/first-run.test.tsx b/apps/cua-spaces-web/src/__tests__/first-run.test.tsxindex a656b10aa7..8ceeaef411 100644--- a/apps/cua-spaces-web/src/__tests__/first-run.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/first-run.test.tsx@@ -330,6 +330,18 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {host: (h) => ({ ...h, configured: true, shareDesktop: true, appName: "Cua Spaces Local", permissions: missing }),});await waitFor(() => expect(heading()).toBe("This Mac is in your account."));+ // The check row adds to the headline instead of repeating it, and no jargon.+ const body = document.body.textContent ?? "";+ expect(body.match(/in your account/g)?.length).toBe(1); // the headline only+ expect(body).toMatch(/Ready to share/);+ expect(body).not.toMatch(/\bpool\b/i);+ // "Skip for now" is a visible ghost pill (border, readable text, hover), not a faint link.+ const skip = document.querySelector<HTMLElement>("[data-onboarding-later]")!;+ expect(skip.className).toMatch(/\brounded-full\b/);+ expect(skip.className).toMatch(/\bborder\b/);+ expect(skip.className).toMatch(/text-foreground\/90/);+ expect(skip.className).toMatch(/hover:bg-foreground\/10/);+ expect(skip.className).not.toMatch(/text-muted-foreground/);click('[data-first-run-devices-primary="continue"]');await waitFor(() => expect(heading()).toBe("Share this Mac's screen."));expect(document.body.textContent).toMatch(/To let your team and agents see and use this Mac, allow two permissions\./);diff --git a/apps/cua-spaces-web/src/routes/onboarding/index.tsx b/apps/cua-spaces-web/src/routes/onboarding/index.tsxindex 4f7f25fc58..5a327d4323 100644--- a/apps/cua-spaces-web/src/routes/onboarding/index.tsx+++ b/apps/cua-spaces-web/src/routes/onboarding/index.tsx@@ -84,7 +84,7 @@ function OnboardingPage() {<Art art={view.art} step={view.step} /><header className="relative z-30 flex shrink-0 items-center justify-between px-10 pt-[calc(var(--titlebar-height)+12px)] pb-2"><CuaWordmark />- <button type="button" onClick={leave} className={cn(QUIET_LINK, "text-[13px]")} data-onboarding-later="">+ <button type="button" onClick={leave} className={SKIP_PILL} data-onboarding-later="">{view.later}</button></header>@@ -160,6 +160,9 @@ function Secondary({ label, onClick, describedBy, ...rest }: { label: string; on);}+/** "Skip for now": a ghost pill, readable on the starfield, quieter than Continue. */+const SKIP_PILL =+ "rounded-full border border-foreground/30 px-4 py-1.5 text-[13px] text-foreground/90 outline-none transition-colors hover:border-foreground/50 hover:bg-foreground/10 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/60";const QUIET_LINK = "-mx-1.5 rounded-md px-1.5 py-0.5 text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/60";/**diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/first-run.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/first-run.jsonindex e65d83644c..38d7efbe2b 100644--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/first-run.json+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/first-run.json@@ -126,7 +126,7 @@"note": "This Mac works without it.","primary": "sign-in:Sign in to connect","rows": [- "Your other computers — They join this Mac's pool",+ "Your other computers — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "not-now:Not now",@@ -143,7 +143,7 @@"note": "This Mac works without it.","primary": "sign-in:Sign in to connect","rows": [- "Your other computers — They join this Mac's pool",+ "Your other computers — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "not-now:Not now",@@ -156,11 +156,11 @@"art": "hermes on outline","case": "10 this Mac being added to the account","devices": {- "lede": "Sign in on your other computers, and they reach its Spaces.",+ "lede": "Sign in on your other computers to use its Spaces.","note": null,"primary": "continue:Continue","rows": [- "Your other computers — They join this Mac's pool",+ "Your other computers — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "",@@ -173,15 +173,15 @@"art": "hermes on outline","case": "11 this Mac in the account","devices": {- "lede": "Sign in on your other computers, and they reach its Spaces.",+ "lede": "Sign in on your other computers to use its Spaces.","note": null,"primary": "continue:Continue","rows": [- "Your other computers — They join this Mac's pool",+ "Your other computers — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "",- "status": "[ok] This Mac is in your account — Your other computers can reach its Spaces.",+ "status": "[ok] Ready to share — Its Spaces appear on every computer signed in to your account.","title": "This Mac is in your account."},"step": "devices"@@ -512,15 +512,15 @@"art": "hermes on outline","case": "19 this Mac in the account, Continue goes to permissions","devices": {- "lede": "Sign in on your other computers, and they reach its Spaces.",+ "lede": "Sign in on your other computers to use its Spaces.","note": null,"primary": "continue:Continue","rows": [- "Your other computers — They join this Mac's pool",+ "Your other computers — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "",- "status": "[ok] This Mac is in your account — Your other computers can reach its Spaces.",+ "status": "[ok] Ready to share — Its Spaces appear on every computer signed in to your account.","title": "This Mac is in your account."},"step": "devices",@@ -652,7 +652,7 @@"note": "This Mac works without it.","primary": "sign-in:Sign in to connect","rows": [- "Your other computers — They join this Mac's pool",+ "Your other computers — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "not-now:Not now",@@ -690,15 +690,15 @@"art": "hermes on outline","case": "27 a Windows PC: no permissions screen","devices": {- "lede": "Sign in on your other computers, and they reach its Spaces.",+ "lede": "Sign in on your other computers to use its Spaces.","note": null,"primary": "continue:Continue","rows": [- "Your other computers — They join this PC's pool",+ "Your other computers — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "",- "status": "[ok] This PC is in your account — Your other computers can reach its Spaces.",+ "status": "[ok] Ready to share — Its Spaces appear on every computer signed in to your account.","title": "This PC is in your account."},"step": "devices",diff --git a/libs/cua/crates/cua-spaces-app-core/src/first_run.rs b/libs/cua/crates/cua-spaces-app-core/src/first_run.rsindex 9989233ce0..271885d14e 100644--- a/libs/cua/crates/cua-spaces-app-core/src/first_run.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/first_run.rs@@ -1141,8 +1141,8 @@ fn account_row(input: &FirstRunInput) -> Option<CheckRow> {}Some(row(RowState::Ok,- format!("{} is in your account", cap(place)),- "Your other computers can reach its Spaces.".into(),+ "Ready to share".into(),+ "Its Spaces appear on every computer signed in to your account.".into(),None,))}@@ -1152,7 +1152,7 @@ fn devices_view(input: &FirstRunInput) -> DevicesView {let rows = vec![DeviceRow {title: "Your other computers".into(),- note: format!("They join {place}'s pool"),+ note: "Sign in with the same account".into(),},DeviceRow {title: "Your cloud".into(),@@ -1168,7 +1168,7 @@ fn devices_view(input: &FirstRunInput) -> DevicesView {} else {format!("Adding {place} to your account.")},- lede: "Sign in on your other computers, and they reach its Spaces.".into(),+ lede: "Sign in on your other computers to use its Spaces.".into(),rows,status,primary: button("continue", "Continue"),@@ -2221,7 +2221,7 @@ mod tests {let ok = d.status.unwrap();assert_eq!((ok.state, ok.title.as_str()),- (RowState::Ok, "This Mac is in your account")+ (RowState::Ok, "Ready to share"));// No permission is asked here, even when one is missing.