From 01f07e8338ad1a4e951bf392a45b44b9d940e271 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Wed, 11 Nov 2026 22:19:40 -0800 Subject: [PATCH] feat(settings): Orca Cloud above Hosts on Agent accounts; CLI steps behind a disclosure (JA-04) (#501) * feat(settings): Orca Cloud above Hosts on Agent accounts; CLI steps behind 'Use from the command line' (JA-04 A1) * fix(settings): CLI disclosure spacing on a plain wrapper; refresh protected-copy keys --- .../ManagedDataAccountsSection.fixture.tsx | 25 +++++++++ .../providers/ManagedDataAccountsSection.tsx | 52 +++++++++++++------ ...rca-cloud-agent-accounts-sections.test.tsx | 30 +++++++++++ ...ngs-orca-cloud-agent-accounts-sections.tsx | 14 ++--- src/renderer/src/i18n/locales/en.json | 3 +- .../languages/protected-copy-keys.json | 1 + 6 files changed, 102 insertions(+), 23 deletions(-) create mode 100644 src/renderer/src/components/settings/accounts/providers/ManagedDataAccountsSection.fixture.tsx create mode 100644 src/renderer/src/components/settings/page/settings-orca-cloud-agent-accounts-sections.test.tsx diff --git a/src/renderer/src/components/settings/accounts/providers/ManagedDataAccountsSection.fixture.tsx b/src/renderer/src/components/settings/accounts/providers/ManagedDataAccountsSection.fixture.tsx new file mode 100644 index 00000000000..877c605dd39 --- /dev/null +++ b/src/renderer/src/components/settings/accounts/providers/ManagedDataAccountsSection.fixture.tsx @@ -0,0 +1,25 @@ +import { defineFixture } from '../../../../component-fixtures/component-fixture' +import { ManagedDataAccountsSection } from './ManagedDataAccountsSection' + +function Frame(): React.JSX.Element { + return ( +
+ +
+ ) +} + +/** The CLI steps start hidden behind "Use from the command line". */ +export const cliCollapsed = defineFixture({ width: 720, render: () => }) + +export const cliOpen = defineFixture({ + width: 720, + render: () => , + interact: async (frame) => { + const trigger = [...frame.querySelectorAll('button')].find((button) => + button.textContent?.includes('Use from the command line') + ) + trigger?.click() + await new Promise((resolve) => setTimeout(resolve, 200)) + } +}) diff --git a/src/renderer/src/components/settings/accounts/providers/ManagedDataAccountsSection.tsx b/src/renderer/src/components/settings/accounts/providers/ManagedDataAccountsSection.tsx index 51974b7dae4..28be119b9cc 100644 --- a/src/renderer/src/components/settings/accounts/providers/ManagedDataAccountsSection.tsx +++ b/src/renderer/src/components/settings/accounts/providers/ManagedDataAccountsSection.tsx @@ -6,7 +6,10 @@ import type { ManagedDataAccountProvider, ManagedDataAccountsState } from '../../../../../../shared/managed-account-types' +import { ChevronDown } from 'lucide-react' +import { cn } from '@/lib/utils' import { Button } from '../../../ui/button' +import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '../../../ui/collapsible' import { Badge } from '../../../ui/badge' import { Dialog, @@ -33,6 +36,7 @@ export function ManagedDataAccountsSection({ const [busy, setBusy] = useState(false) const [removeId, setRemoveId] = useState(null) const [copied, setCopied] = useState(false) + const [cliOpen, setCliOpen] = useState(false) const environmentId = target.kind === 'environment' ? target.environmentId : null useEffect(() => { @@ -100,22 +104,40 @@ export function ManagedDataAccountsSection({ )} >
- {command} + + + + + +
+ {command} + +
+
+
-