From fc85fa40b059a20b2533c26c2d25a7a76c7cb549 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 11 Nov 2026 03:11:14 -0800 Subject: [PATCH 1/4] feat(cloud): JA-30 cloud Home without clutter: filters from 5, a first-run invitation, no wordmark over the list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Filters (Team/Mine, owner, repo, Running, Archived) and refresh show only with 5+ workspaces, or while any filter is off its default so it can be undone. - Empty list: "Start your first cloud workspace" + the glossary line + one "New cloud workspace" button (composer on Run on = Orca Cloud). Mine on a team: "You don't have any cloud workspaces yet." with the same button. - Landing: while the cloud list shows, no ORCA wordmark or "Select a workspace…"; Add project / Create workspace stay as a top row aligned with the list. Upstream's plain home is unchanged. Fixtures: CloudWorkspacesHome emptyTeam, emptyMine, fewWorkspaces, teamList. --- src/renderer/src/components/Landing.tsx | 43 +++++++++------- .../CloudWorkspacesHome.fixture.tsx | 35 +++++++++++++ .../cloud-workspaces/CloudWorkspacesHome.tsx | 4 +- .../CloudWorkspacesStates.test.tsx | 46 ++++++++++++++++- .../CloudWorkspacesStates.tsx | 27 +++++----- .../CloudWorkspacesToolbar.tsx | 49 ++++++++++++++----- src/renderer/src/i18n/locales/en.json | 4 -- 7 files changed, 161 insertions(+), 47 deletions(-) diff --git a/src/renderer/src/components/Landing.tsx b/src/renderer/src/components/Landing.tsx index 0d2c1d9a2b1..c7b58538848 100644 --- a/src/renderer/src/components/Landing.tsx +++ b/src/renderer/src/components/Landing.tsx @@ -260,37 +260,42 @@ export default function Landing(): React.JSX.Element { return (
- {/* Centered when alone; with cloud workspaces below, a smaller brand block sits near the - top and the shortcut list steps aside so the list is the focus. */} + {/* Centered when alone. With the cloud list below, the list is the page (JA-30): no wordmark + or "select a workspace" line, just the primary actions as a top row aligned with it. */}
-
+
- + {!cloudListPresent && } {preflightIssues.length > 0 && ( )} -

- {hasProjects - ? t( - 'auto.components.Landing.9c00bd4adf', - 'Select a workspace from the sidebar to begin.' - ) - : t('auto.components.Landing.cd21242762', 'Add a project to get started.')} -

+ {/* With the cloud list showing, only the no-project hint stays: the list is what to pick. */} + {(!cloudListPresent || !hasProjects) && ( +

+ {hasProjects + ? t( + 'auto.components.Landing.9c00bd4adf', + 'Select a workspace from the sidebar to begin.' + ) + : t('auto.components.Landing.cd21242762', 'Add a project to get started.')} +

+ )} -
+
) : null} - + {showFilters ? ( + + ) : null}
-
+
{hasOrg && (
Date: Wed, 11 Nov 2026 03:13:25 -0800 Subject: [PATCH 2/4] chore(cloud): JA-30 copy in the English catalog --- src/renderer/src/i18n/locales/en.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/i18n/locales/en.json b/src/renderer/src/i18n/locales/en.json index 82f96c8befd..e6b1d1ca246 100644 --- a/src/renderer/src/i18n/locales/en.json +++ b/src/renderer/src/i18n/locales/en.json @@ -23706,7 +23706,10 @@ } }, "cloudWorkspaces": { - "newCloudWorkspace": "New cloud workspace" + "newCloudWorkspace": "New cloud workspace", + "emptyStartBody": "It runs in a sandbox, so your agents keep working even when this computer is off.", + "emptyMineYoursTitle": "You don’t have any cloud workspaces yet.", + "emptyFirstTitle": "Start your first cloud workspace" }, "worktreeCreation": { "pendingNativeChat": { From aec9fde90d8d7ec99a7f683014108b83a28343b1 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 11 Nov 2026 03:17:45 -0800 Subject: [PATCH 3/4] fix(cloud): JA-30 no '0 workspaces' next to the title on an empty list --- .../src/components/cloud-workspaces/CloudWorkspacesHome.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/cloud-workspaces/CloudWorkspacesHome.tsx b/src/renderer/src/components/cloud-workspaces/CloudWorkspacesHome.tsx index 61fbf91e067..7a6c51d8a52 100644 --- a/src/renderer/src/components/cloud-workspaces/CloudWorkspacesHome.tsx +++ b/src/renderer/src/components/cloud-workspaces/CloudWorkspacesHome.tsx @@ -259,8 +259,8 @@ export function CloudWorkspacesHome({ selfId={selfId} metaStale={stale} meta={ - state.status === 'ready' - ? // Why: no hours here. A sum over the listed workspaces isn't the team's month, and it + state.status === 'ready' && visible.length > 0 + ? // Why: no hours here. Empty: the empty card says so; no "0 workspaces" (JA-30). A sum over the listed workspaces isn't the team's month, and it // disagreed with Plan & billing and the account menu (JA-07). t('auto.components.cloudWorkspaces.listMetaCount', '{{count}} workspaces', { count: visible.length, From 5d3cdae41472b75375cc9992badafc0e33fb36de Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 11 Nov 2026 03:23:24 -0800 Subject: [PATCH 4/4] fix(cloud): JA-30 Home actions shrink to one row in a narrow centre column design-squad: at 900 wide with both side panels open, Add project / Create workspace stacked as two large buttons over the cloud list. The row is now LandingActions (landing-layout.tsx); over the cloud list its column is an @container and below 600px both buttons take small sizing on one row (wrapping only if they still can't fit). Fixtures: landing-layout actionsOverCloudList Wide/Narrow. --- src/renderer/src/components/Landing.tsx | 32 +++++--------- .../src/components/landing-layout.fixture.tsx | 27 ++++++++++++ .../src/components/landing-layout.tsx | 42 +++++++++++++++++++ 3 files changed, 79 insertions(+), 22 deletions(-) create mode 100644 src/renderer/src/components/landing-layout.fixture.tsx diff --git a/src/renderer/src/components/Landing.tsx b/src/renderer/src/components/Landing.tsx index c7b58538848..02fe5639671 100644 --- a/src/renderer/src/components/Landing.tsx +++ b/src/renderer/src/components/Landing.tsx @@ -5,7 +5,7 @@ import { } from './cloud-workspaces/CloudWorkspacesHome' import { useCloudWorkspaceHighlight } from './cloud-workspaces/cloud-workspace-links' import { useEffect, useEffectEvent, useMemo, useRef, useState } from 'react' -import { AlertTriangle, ExternalLink, FolderPlus, GitBranchPlus, Star, X } from 'lucide-react' +import { AlertTriangle, ExternalLink, Star, X } from 'lucide-react' import { cn } from '../lib/utils' import { useAppStore } from '../store' import { isGitRepoKind } from '../../../shared/repo-kind' @@ -23,7 +23,7 @@ import { useLandingPreflightRuntime } from './landing-preflight-runtime' import { useLandingOrcaStarState, type LandingStarState } from './landing-github-star-state' import { openAppHttpLink } from '@/lib/browser/navigation/app-http-link-open' import { - LANDING_ACTION_BUTTON_CLASS, + LandingActions, LandingBrand, LandingShortcutList, type LandingShortcutItem @@ -265,7 +265,7 @@ export default function Landing(): React.JSX.Element {
-
+
)} -
- - - -
+ openModal('add-repo')} + onCreate={() => openModal('new-workspace-composer', { telemetrySource: 'unknown' })} + /> {hasProjects ? : null} diff --git a/src/renderer/src/components/landing-layout.fixture.tsx b/src/renderer/src/components/landing-layout.fixture.tsx new file mode 100644 index 00000000000..8ce7e2cb29f --- /dev/null +++ b/src/renderer/src/components/landing-layout.fixture.tsx @@ -0,0 +1,27 @@ +import { defineFixture } from '../component-fixtures/component-fixture' +import { LandingActions } from './landing-layout' + +const noop = (): void => {} + +function row(width: number): React.JSX.Element { + return ( +
+
+ +
+
+
+ ) +} + +/** JA-30: over the cloud list in a wide centre column, the full-size top row. */ +export const actionsOverCloudListWide = defineFixture({ width: 800, render: () => row(768) }) + +/** JA-30: a narrow centre column (both side panels open): small buttons, still one row. */ +export const actionsOverCloudListNarrow = defineFixture({ width: 580, render: () => row(540) }) diff --git a/src/renderer/src/components/landing-layout.tsx b/src/renderer/src/components/landing-layout.tsx index 0efcf69ae2f..b46610c6cbd 100644 --- a/src/renderer/src/components/landing-layout.tsx +++ b/src/renderer/src/components/landing-layout.tsx @@ -1,3 +1,4 @@ +import { FolderPlus, GitBranchPlus } from 'lucide-react' import { cn } from '@/lib/utils' import { ShortcutKeyCombo } from './ShortcutKeyCombo' import type { ShortcutKeyComboDetails } from '@/hooks/useShortcutLabel' @@ -63,3 +64,44 @@ export function LandingShortcutList({
) } + +/** + * Home's two primary actions. Over the cloud list they sit as a top row aligned with it; in a + * narrow centre column (both side panels open) they shrink and stay on one row instead of + * stacking large buttons (JA-30). Needs an `@container` ancestor for the narrow case. + */ +export function LandingActions({ + overCloudList, + addProjectLabel, + createLabel, + onAddProject, + onCreate +}: { + overCloudList: boolean + addProjectLabel: string + createLabel: string + onAddProject: () => void + onCreate: () => void +}): React.JSX.Element { + const buttonClass = cn( + LANDING_ACTION_BUTTON_CLASS, + overCloudList && '@max-[600px]:px-2.5 @max-[600px]:py-1 @max-[600px]:text-xs' + ) + return ( +
+ + +
+ ) +}