fix(cloud): design-squad — one 'Create workspace' label, Run on menu inside the dialog, no right sidebar during setup

This commit is contained in:
Neil
2026-11-10 18:53:32 -08:00
parent b5c4d07bce
commit 466dddc3e0
7 changed files with 43 additions and 13 deletions
@@ -397,7 +397,7 @@ it('offers Reopen with the submitted target and picker and does not replace a ne
fireEvent.change(textarea(), { target: { value: '--verbose' } })
fireEvent.click(screen.getByRole('radio', { name: 'Low' }))
await useDraft()
const create = await screen.findByRole('button', { name: 'Create worktree' })
const create = await screen.findByRole('button', { name: 'Create workspace' })
await waitFor(() => expect(create.hasAttribute('disabled')).toBe(false))
fireEvent.click(create)
await waitFor(() => expect(evidence.submit).toHaveBeenCalledOnce())
@@ -318,12 +318,10 @@ function QuickTabBody({
const isFolderWorkspaceTarget =
cardProps.projectOptions.find((option) => option.id === cardProps.selectedProjectId)?.kind ===
'project-group'
// Run on never changes the button: Orca Cloud reads exactly like this computer.
// Run on never changes the button, and it matches the title for every target (design-squad).
const primaryActionLabel = isFolderWorkspaceTarget
? getFolderWorkspacePrimaryActionLabel(t)
: cardProps.selectedRepoIsGit
? t('auto.components.NewWorkspaceComposerModal.createWorktree', 'Create worktree')
: t('auto.components.NewWorkspaceComposerModal.createWorkspace', 'Create workspace')
: t('auto.components.NewWorkspaceComposerModal.createWorkspace', 'Create workspace')
// Let Radix own Escape for the topmost layer. This dialog auto-focuses input, so page-style blur-first handling swallowed its first Escape.
const nestedDialogOpen = agentSettingsOpen || addProjectOpen || setLocationOpen
@@ -327,7 +327,9 @@ export default function RunTargetCombobox({
onKeyDown={handleKeyDown}
/>
<PopoverContent
align="start"
// Right column of the composer: grow leftwards from the trigger so the menu stays inside
// the dialog.
align="end"
sideOffset={4}
className={cn(
'flex w-[var(--radix-popover-trigger-width)] min-w-[18rem] flex-col p-0',
@@ -89,6 +89,24 @@ export function CloudSetupPageLayer(): React.JSX.Element | null {
closeCloudSetupPage()
}
}, [activeWorktreeId, request])
// The right sidebar (files, source control) is noise during setup: hide it while the page shows,
// and put it back as it was when the page closes or another page takes over.
const showing = request !== null && onWorkspaceView
useEffect(() => {
if (!showing) {
return
}
const store = useAppStore.getState()
const wasOpen = store.rightSidebarOpen
if (wasOpen) {
store.setRightSidebarOpen(false)
}
return () => {
if (wasOpen && !useAppStore.getState().rightSidebarOpen) {
useAppStore.getState().setRightSidebarOpen(true)
}
}
}, [showing])
if (!request) {
return null
}
+7
View File
@@ -1560,6 +1560,13 @@
"save_one": "Save secret",
"save_other": "Save {{count}} secrets"
},
"cloudSetupPage": {
"trial": {
"lead": "{{hours}} sandbox hours to try Orca Cloud. No card needed.",
"lead_one": "{{hours}} sandbox hour to try Orca Cloud. No card needed.",
"lead_other": "{{hours}} sandbox hours to try Orca Cloud. No card needed."
}
},
"codeHost": {
"bitbucketConnect": {
"accessTokenRequired": "Enter an access token.",
+5 -2
View File
@@ -28014,7 +28014,8 @@
"hoursLead": "Turn on overage to start this workspace.",
"hoursTitle": "Out of sandbox hours",
"paymentLead": "The last payment failed. Update the card to keep going.",
"paymentTitle": "Update your payment method"
"paymentTitle": "Update your payment method",
"openSettings": "Open billing settings"
},
"checkAgain": "Check again",
"checking": {
@@ -28076,7 +28077,9 @@
"leadNoHours": "Try Orca Cloud on your team. No card needed.",
"note": "Nothing is charged until you choose a plan.",
"start": "Start free trial",
"title": "Start your free trial"
"title": "Start your free trial",
"lead_one": "{{hours}} sandbox hour to try Orca Cloud. No card needed.",
"lead_other": "{{hours}} sandbox hours to try Orca Cloud. No card needed."
},
"untitled": "New cloud workspace",
"waitingBrowser": "Waiting for your browser…"
@@ -88,9 +88,11 @@ export function rememberCloudSetupAgentSkipped(agent: string | null): void {
// Dev and e2e: drive the page from the console or CDP (as `__store` is), e.g. to walk the trial step.
if ((import.meta.env.DEV || e2eConfig.exposeStore) && typeof window !== 'undefined') {
;(window as unknown as Record<string, unknown>).__cloudSetupPage = {
open: openCloudSetupPage,
close: closeCloudSetupPage,
get: getCloudSetupPageRequest
}
Object.assign(window, {
__cloudSetupPage: {
open: openCloudSetupPage,
close: closeCloudSetupPage,
get: getCloudSetupPageRequest
}
})
}