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: simplify the Welcome page and focus its one action (CUA-1959) (#5648)
Francesco Bonaccid0031e5461f5
diff --git a/apps/cua-spaces-web/src/bridge/onboarding.ts b/apps/cua-spaces-web/src/bridge/onboarding.tsindex 767131fadc..92e2e67071 100644--- a/apps/cua-spaces-web/src/bridge/onboarding.ts+++ b/apps/cua-spaces-web/src/bridge/onboarding.ts@@ -266,7 +266,7 @@ function thisComputer(os: HostOs): string {function fallbackView(s: OnboardingFlowState, os: HostOs): OnboardingView {const pages: Partial<Record<OnboardingStep, [string, string, string]>> = {- welcome: ["Welcome to Cua Spaces", "Computers for you and your agents.", "Get started"],+ welcome: ["Welcome to Cua Spaces", "Computers for you and your AI agents. Setup takes about a minute.", "Get started"],signin: ["Sign in", "Sign in to reach your computers and Spaces from any of your devices. You can skip this and sign in later.", "Continue"],presentation: ["Where should Cua Spaces show up?", "You can change this in Settings.", "Continue"],mode: [`How do you want to use ${thisComputer(os)}?`, "Use it only to open your other computers, or let your other devices reach it too. You can change this later.", "Continue"],diff --git a/apps/cua-spaces/src/components/InstallerFlow.test.tsx b/apps/cua-spaces/src/components/InstallerFlow.test.tsxindex c733e272ea..b58b9bcf59 100644--- a/apps/cua-spaces/src/components/InstallerFlow.test.tsx+++ b/apps/cua-spaces/src/components/InstallerFlow.test.tsx@@ -120,6 +120,15 @@ describe("InstallerFlow", () => {expect(document.querySelector(".ob-footer")).toBeNull();});+ it("Welcome has one clear action: a plain line, and Get started has focus so Enter works (CUA-1959)", () => {+ render(<InstallerFlow installer={createFakeInstallerBridge()} host={createFakeHostBridge()} onDone={vi.fn()} />);+ expect(screen.getByText("Computers for you and your AI agents. Setup takes about a minute.")).toBeInTheDocument();+ const start = screen.getByRole("button", { name: "Get started" });+ expect(start).toHaveFocus();+ // The only button on the page; the usage switch never blocks it.+ expect(screen.getAllByRole("button")).toHaveLength(1);+ });+it("walks welcome → sign in → agents → where it shows up → Cua Volume → mode → done, installing cua silently", async () => {const installer = createFakeInstallerBridge();const host = createFakeHostBridge();diff --git a/apps/cua-spaces/src/components/InstallerFlow.tsx b/apps/cua-spaces/src/components/InstallerFlow.tsxindex 0c27d7d861..ec6e4d6aa4 100644--- a/apps/cua-spaces/src/components/InstallerFlow.tsx+++ b/apps/cua-spaces/src/components/InstallerFlow.tsx@@ -324,7 +324,13 @@ export function InstallerFlow({<h2 className="onboarding-title">{view.title}</h2><p className="host-setup-lede">{view.lede}</p><footer className="shelf-footer create-cloud-actions">- <button type="button" className="primary-button" data-owns-enter onClick={() => send({ type: "start" })}>+ <button+ type="button"+ className="primary-button"+ data-owns-enter+ autoFocus+ onClick={() => send({ type: "start" })}+ >{view.primaryLabel}</button></footer>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.jsonindex 35820e6325..cc0c54978b 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@@ -755,7 +755,7 @@"dots": "*Welcome,Sign in,AI agents,Menu bar,This computer,Done","drive": null,"driveStorage": null,- "lede": "Computers for you and your agents.",+ "lede": "Computers for you and your AI agents. Setup takes about a minute.","notice": "Cua collects usage data, like which features you use and when something goes wrong. When you're signed in, it's linked to your account through a random ID. Never your files, what you type or your screen. Change this here or in Settings, Privacy.","noticeLink": "What is collected https://cua.ai/docs/cua-sdk/concepts/telemetry","presentations": [],@@ -778,7 +778,7 @@"dots": "*Welcome,Sign in,AI agents,Menu bar,This computer,Done","drive": null,"driveStorage": null,- "lede": "Computers for you and your agents.",+ "lede": "Computers for you and your AI agents. Setup takes about a minute.","notice": "Cua collects usage data, like which features you use and when something goes wrong. When you're signed in, it's linked to your account through a random ID. Never your files, what you type or your screen. Change this here or in Settings, Privacy.","noticeLink": "What is collected https://cua.ai/docs/cua-sdk/concepts/telemetry","presentations": [],diff --git a/libs/cua/crates/cua-spaces-app-core/src/onboarding.rs b/libs/cua/crates/cua-spaces-app-core/src/onboarding.rsindex e4497d6023..f58d84f6a2 100644--- a/libs/cua/crates/cua-spaces-app-core/src/onboarding.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/onboarding.rs@@ -1271,7 +1271,7 @@ pub fn view_for(s: &OnboardingState, os: SpaceOs, cli_page: bool) -> OnboardingVlet (title, lede, primary) = match s.step {Welcome => ("Welcome to Cua Spaces",- "Computers for you and your agents.",+ "Computers for you and your AI agents. Setup takes about a minute.","Get started",),Cli => (