mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 10:58:10 +00:00
Merge pull request #268 from nwparker/cloud/w6-ds-settings
feat(settings): Orca Cloud settings group + cloud secrets a11y (DS-20, DS-21, DS-37)
This commit is contained in:
@@ -35,7 +35,7 @@ export async function resolveCloudEnvironment(
|
||||
throw new HostedEnvironmentUserError(
|
||||
'not_found',
|
||||
'no_environments',
|
||||
'This org has no environment yet. Create one in Settings > Orca Cloud.'
|
||||
'This org has no environment yet. Create one in Settings > Orca Cloud > Cloud environments.'
|
||||
)
|
||||
}
|
||||
if (!selector) {
|
||||
|
||||
@@ -148,7 +148,7 @@ export const suspendedAdmin = defineFixture({
|
||||
)
|
||||
})
|
||||
|
||||
/** First open of Settings › Orca account: the section holds its shape while billing answers. */
|
||||
/** First open of Settings › Orca Cloud › Plan & billing: the section holds its shape while billing answers. */
|
||||
export const loading = defineFixture({
|
||||
width: 600,
|
||||
render: () => <PlanBillingView {...handlers} loading result={null} />
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { useState } from 'react'
|
||||
import { SettingsGroupHeader } from '@/components/settings/section-layout/SettingsGroup'
|
||||
import { CreditCard, ExternalLink, RefreshCw } from 'lucide-react'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { InlineError } from '@/components/ui/inline-error'
|
||||
@@ -134,37 +133,41 @@ export function PlanBillingView({
|
||||
}: PlanBillingViewProps): React.JSX.Element | null {
|
||||
const t = useTranslate()
|
||||
const locale = useIntlLocale()
|
||||
if (!result && loading) {
|
||||
return <PlanBillingSkeleton />
|
||||
if (!result) {
|
||||
return loading ? <PlanBillingSkeleton /> : null
|
||||
}
|
||||
if (!result || result.status === 'unconfigured' || result.status === 'signed-out') {
|
||||
// The pane above already handles sign-in; billing stays out of builds without a service.
|
||||
if (result.status === 'unconfigured') {
|
||||
return (
|
||||
<p className="text-sm text-muted-foreground">
|
||||
{t(
|
||||
'auto.components.billing.unconfigured',
|
||||
'Billing isn’t available in this build of Orca.'
|
||||
)}
|
||||
</p>
|
||||
)
|
||||
}
|
||||
if (result.status === 'signed-out') {
|
||||
// The Orca Cloud panes show the sign-in prompt before this renders.
|
||||
return null
|
||||
}
|
||||
|
||||
const header = (
|
||||
<SettingsGroupHeader
|
||||
className="px-0"
|
||||
title={t('auto.components.billing.title', 'Plan & billing')}
|
||||
action={
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
size="icon-xs"
|
||||
aria-disabled={refreshing || undefined}
|
||||
onClick={refreshing ? undefined : onRefresh}
|
||||
aria-label={t('auto.components.billing.refresh', 'Refresh plan')}
|
||||
>
|
||||
<RefreshCw className={cn(refreshing && 'motion-safe:animate-spin')} />
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
// Settings › Orca Cloud › Plan & billing owns the title; the refresh sits with the plan it reloads.
|
||||
const refreshButton = (
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
size="icon-xs"
|
||||
aria-disabled={refreshing || undefined}
|
||||
onClick={refreshing ? undefined : onRefresh}
|
||||
aria-label={t('auto.components.billing.refresh', 'Refresh plan')}
|
||||
>
|
||||
<RefreshCw className={cn(refreshing && 'motion-safe:animate-spin')} />
|
||||
</Button>
|
||||
)
|
||||
|
||||
if (result.status === 'failed') {
|
||||
return (
|
||||
<div className="space-y-3 border-t border-border/60 pt-5">
|
||||
{header}
|
||||
<div className="space-y-3">
|
||||
<InlineError
|
||||
title={t('auto.components.billing.loadFailedTitle', 'Couldn’t load your plan')}
|
||||
retryLabel={t('auto.components.billing.plans.retry', 'Try again')}
|
||||
@@ -184,8 +187,7 @@ export function PlanBillingView({
|
||||
const teamPrice = monthlyCents === null ? null : formatCents(monthlyCents, locale)
|
||||
|
||||
return (
|
||||
<div className="space-y-4 border-t border-border/60 pt-5">
|
||||
{header}
|
||||
<div className="space-y-4">
|
||||
<PaymentIssueNotice entitlement={entitlement} busy={busy} onUpdatePayment={onPortal} />
|
||||
{hasPlan ? (
|
||||
<div className="space-y-4">
|
||||
@@ -204,6 +206,7 @@ export function PlanBillingView({
|
||||
})}
|
||||
</span>
|
||||
<PlanStatusBadge entitlement={entitlement} />
|
||||
<span className="ml-auto">{refreshButton}</span>
|
||||
</div>
|
||||
<UsageSummary entitlement={entitlement} />
|
||||
{/* Overage is moot while sandboxes are suspended for a failed payment. */}
|
||||
@@ -273,7 +276,9 @@ export function PlanBillingView({
|
||||
<Button type="button" variant="ghost" size="sm" onClick={onSeePlans}>
|
||||
{t('auto.components.billing.comparePlans', 'Compare plans')}
|
||||
</Button>
|
||||
) : null}
|
||||
) : (
|
||||
<span className="ml-auto">{refreshButton}</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* The payment alert already says who to ask; don't ask twice. */}
|
||||
@@ -301,15 +306,11 @@ function PlanBillingSkeleton(): React.JSX.Element {
|
||||
const t = useTranslate()
|
||||
return (
|
||||
<div
|
||||
className="space-y-4 border-t border-border/60 pt-5"
|
||||
className="space-y-4"
|
||||
role="status"
|
||||
aria-busy
|
||||
aria-label={t('auto.components.billing.loadingPlan', 'Loading your plan…')}
|
||||
>
|
||||
<SettingsGroupHeader
|
||||
className="px-0"
|
||||
title={t('auto.components.billing.title', 'Plan & billing')}
|
||||
/>
|
||||
<div className="flex items-center gap-2">
|
||||
<Skeleton shape="circle" className="size-4" />
|
||||
<Skeleton shape="small" className="h-4 w-16" />
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import { ChevronRight } from 'lucide-react'
|
||||
import { SettingsGroupHeader } from '@/components/settings/section-layout/SettingsGroup'
|
||||
import { useTranslate } from '@/i18n/use-translate'
|
||||
import { TeamMark } from './TeamAvatar'
|
||||
import { memberCountLabel } from './team-copy'
|
||||
import { openTeamPage } from './team-page-store'
|
||||
import { useOrgRoster } from './use-org-roster'
|
||||
|
||||
/** Settings → Orca account: one row that opens the Team page (members, invites, seats). */
|
||||
/** Settings › Orca Cloud › Team: one row that opens the Team page (members, invites, seats). */
|
||||
export function TeamSettingsLink({
|
||||
orgId,
|
||||
orgName
|
||||
@@ -18,11 +17,7 @@ export function TeamSettingsLink({
|
||||
const roster = useOrgRoster(orgId)
|
||||
const members = roster.result?.status === 'ok' ? roster.result.roster.members.length : null
|
||||
return (
|
||||
<div className="space-y-3 border-t border-border/60 pt-5">
|
||||
<SettingsGroupHeader
|
||||
className="px-0"
|
||||
title={t('auto.components.billing.team.title', 'Team')}
|
||||
/>
|
||||
<div>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => openTeamPage()}
|
||||
|
||||
@@ -215,8 +215,8 @@ export function CloudAgentSetupFields({
|
||||
{...ids('model')}
|
||||
label={t('cloudAgentSetup.claudeModel', 'Claude model (optional)')}
|
||||
help={t(
|
||||
'cloudAgentSetup.gatewayModelHint',
|
||||
'Free gateway accounts can’t use anthropic/* models; try moonshotai/kimi-k2.'
|
||||
'cloudAgentSetup.gatewayModelDefaultHint',
|
||||
'Leave empty to use the gateway’s default model.'
|
||||
)}
|
||||
error={errorFor('model')}
|
||||
>
|
||||
|
||||
@@ -146,8 +146,8 @@ export function VmBuildCloudAgentStepView({
|
||||
icon={KEY_ICON}
|
||||
title={t('cloudAgentSetup.skippedTitle', 'Agent setup skipped')}
|
||||
detail={t(
|
||||
'cloudAgentSetup.skippedDetail',
|
||||
'Set it up any time from Settings › Orca Account › Cloud secrets.'
|
||||
'cloudAgentSetup.skippedDetailCloudGroup',
|
||||
'Set it up any time from Settings → Orca Cloud → Cloud secrets.'
|
||||
)}
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { useEffect, useMemo, useState } from 'react'
|
||||
import { useConfirmationDialog } from '@/components/confirmation-dialog-context'
|
||||
import { InlineError } from '@/components/ui/inline-error'
|
||||
import { SettingsGroupHeader } from '@/components/settings/section-layout/SettingsGroup'
|
||||
import { useTranslate } from '@/i18n/use-translate'
|
||||
import {
|
||||
githubSlugForRepo,
|
||||
@@ -30,9 +29,9 @@ import { useCloudEnvironment } from './use-cloud-environment'
|
||||
|
||||
const LOG_TAIL_LINES = 80
|
||||
|
||||
/** Hidden unless this build talks to an Orca Cloud control plane. */
|
||||
export function useOrcaCloudEnvironmentsConfigured(): boolean {
|
||||
const [configured, setConfigured] = useState(false)
|
||||
/** Null until main answers, so a pane can show a placeholder instead of flashing "unavailable". */
|
||||
export function useOrcaCloudEnvironmentsAvailability(): boolean | null {
|
||||
const [configured, setConfigured] = useState<boolean | null>(null)
|
||||
useEffect(() => {
|
||||
let disposed = false
|
||||
void window.api.orcaCloudEnvironments
|
||||
@@ -42,7 +41,10 @@ export function useOrcaCloudEnvironmentsConfigured(): boolean {
|
||||
setConfigured(value)
|
||||
}
|
||||
})
|
||||
.catch(() => undefined)
|
||||
.catch(() => !disposed && setConfigured(false))
|
||||
if (!window.api.orcaCloudEnvironments) {
|
||||
setConfigured(false)
|
||||
}
|
||||
return () => {
|
||||
disposed = true
|
||||
}
|
||||
@@ -70,42 +72,22 @@ function useLocalRepoSuggestions(): {
|
||||
}, [repos])
|
||||
}
|
||||
|
||||
/** Settings block: Orca Cloud environment (repos + install script → snapshot builds). */
|
||||
/** Settings block: Orca Cloud environment (repos + install script → snapshot builds).
|
||||
* The caller checks useOrcaCloudEnvironmentsAvailability first, so this never re-probes. */
|
||||
export function CloudEnvironmentSection({
|
||||
orgId,
|
||||
viewerUserId
|
||||
}: {
|
||||
orgId: string | null
|
||||
viewerUserId: string | null
|
||||
}): React.JSX.Element | null {
|
||||
const t = useTranslate()
|
||||
const configured = useOrcaCloudEnvironmentsConfigured()
|
||||
if (!configured) {
|
||||
return null
|
||||
}
|
||||
}): React.JSX.Element {
|
||||
// Settings › Orca Cloud › Cloud environments owns the title and description.
|
||||
return (
|
||||
<section
|
||||
className="space-y-4 border-t border-border/60 pt-5"
|
||||
aria-labelledby="cloud-environment-title"
|
||||
>
|
||||
<SettingsGroupHeader
|
||||
className="px-0"
|
||||
title={
|
||||
<span id="cloud-environment-title">
|
||||
{t('cloudEnvironment.title', 'Cloud environment')}
|
||||
</span>
|
||||
}
|
||||
description={t(
|
||||
'cloudEnvironment.descriptionTeam',
|
||||
'Your team’s repos and install script, built once into a snapshot so every cloud workspace starts with dependencies installed.'
|
||||
)}
|
||||
/>
|
||||
<CloudEnvironmentController
|
||||
api={window.api.orcaCloudEnvironments}
|
||||
orgId={orgId}
|
||||
viewerUserId={viewerUserId}
|
||||
/>
|
||||
</section>
|
||||
<CloudEnvironmentController
|
||||
api={window.api.orcaCloudEnvironments}
|
||||
orgId={orgId}
|
||||
viewerUserId={viewerUserId}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -119,13 +119,13 @@ export function getOrcaCloudPick(access: OrcaCloudRunTargetAccess): OrcaCloudPic
|
||||
}
|
||||
}
|
||||
|
||||
/** Section id on the overage controls in Settings › Orca account, where the switch and cap live. */
|
||||
/** Section id on the overage controls in Settings › Orca Cloud › Plan & billing (switch and cap). */
|
||||
export const ORCA_BILLING_OVERAGE_SECTION_ID = 'orca-billing-overage'
|
||||
|
||||
function openOverageSettings(): void {
|
||||
const state = useAppStore.getState()
|
||||
state.openSettingsTarget({
|
||||
pane: 'orca-account',
|
||||
pane: 'cloud-billing',
|
||||
repoId: null,
|
||||
sectionId: ORCA_BILLING_OVERAGE_SECTION_ID
|
||||
})
|
||||
|
||||
@@ -4,18 +4,14 @@ import { BookOpen, Check, CircleUserRound, Files, Smartphone } from 'lucide-reac
|
||||
import { Badge } from '@/components/ui/badge'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { useOrcaProfileAuthStatusRefresh } from '@/hooks/use-orca-profile-auth-status-refresh'
|
||||
import { useOrcaAccountKey } from '@/hooks/use-orca-account-key'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { translate } from '@/i18n/i18n'
|
||||
import { useTranslate, type Translate } from '@/i18n/use-translate'
|
||||
import { useAppStore } from '@/store/index'
|
||||
import { OrcaProfileSignOutConfirmDialog } from '../../../orca-profiles/OrcaProfileSignOutConfirmDialog'
|
||||
import { OrcaSignInButton, OrcaSignInWaitNotice } from '../../../OrcaSignInProgress'
|
||||
import { PlanBillingSection } from '../../../billing/PlanBillingSection'
|
||||
import { TeamSettingsLink } from '../../../billing/team/TeamSettingsLink'
|
||||
import { CloudSecretsSection } from '../../cloud-secrets/CloudSecretsSection'
|
||||
import { CloudPredictiveWakeSetting } from '../../orca-cloud/CloudPredictiveWakeSetting'
|
||||
import { CloudEnvironmentSection } from '../../../cloud-environment/CloudEnvironmentSection'
|
||||
import { OrcaCloudSettingsLinks } from '../../orca-cloud/OrcaCloudSettingsLinks'
|
||||
import { useOrcaCloudApiAvailable } from '@/hooks/useOrcaCloudApiAvailability'
|
||||
|
||||
function accountStatusCopy(
|
||||
state: 'local' | 'unconfigured' | 'connected' | 'reconnect-required' | undefined,
|
||||
@@ -72,12 +68,12 @@ export function OrcaAccountSettingsPane(): React.JSX.Element {
|
||||
const t = useTranslate()
|
||||
const authStatus = useAppStore((state) => state.orcaProfileAuthStatus)
|
||||
const signOut = useAppStore((state) => state.signOutCurrentOrcaProfile)
|
||||
const openSettingsTarget = useAppStore((state) => state.openSettingsTarget)
|
||||
const cloudAvailable = useOrcaCloudApiAvailable()
|
||||
const [signOutOpen, setSignOutOpen] = useState(false)
|
||||
const [signingOut, setSigningOut] = useState(false)
|
||||
const connected = authStatus?.state === 'connected'
|
||||
const canConnect = authStatus?.configured === true
|
||||
// Team-scoped sections remount on a team switch so none of them shows the previous team's data.
|
||||
const accountKey = useOrcaAccountKey()
|
||||
|
||||
useOrcaProfileAuthStatusRefresh()
|
||||
|
||||
@@ -137,25 +133,8 @@ export function OrcaAccountSettingsPane(): React.JSX.Element {
|
||||
{connected ? null : <OrcaSignInWaitNotice className="basis-full" />}
|
||||
</div>
|
||||
|
||||
{connected ? <PlanBillingSection key={accountKey} /> : null}
|
||||
{connected && authStatus?.capabilities?.flags?.billing ? (
|
||||
<TeamSettingsLink
|
||||
orgId={authStatus.cloud?.activeOrgId ?? null}
|
||||
orgName={authStatus.cloud?.activeOrgName ?? null}
|
||||
/>
|
||||
) : null}
|
||||
{connected ? (
|
||||
<CloudSecretsSection key={accountKey} orgId={authStatus?.cloud?.activeOrgId ?? null} />
|
||||
) : null}
|
||||
{connected && authStatus?.capabilities?.flags?.sandbox ? (
|
||||
<CloudPredictiveWakeSetting />
|
||||
) : null}
|
||||
{connected ? (
|
||||
<CloudEnvironmentSection
|
||||
key={accountKey}
|
||||
orgId={authStatus?.cloud?.activeOrgId ?? null}
|
||||
viewerUserId={authStatus?.cloud?.userId ?? null}
|
||||
/>
|
||||
{connected && cloudAvailable ? (
|
||||
<OrcaCloudSettingsLinks onOpen={(pane) => openSettingsTarget({ pane, repoId: null })} />
|
||||
) : null}
|
||||
|
||||
<div className="space-y-4 border-t border-border/60 pt-5">
|
||||
|
||||
@@ -18,19 +18,5 @@ export const getOrcaAccountSettingsSearchEntries = createLocalizedCatalog(() =>
|
||||
...translateSearchKeyword('auto.components.settings.orcaAccount.keywordRelay', 'relay'),
|
||||
...translateSearchKeyword('auto.components.settings.orcaAccount.keywordCloud', 'cloud')
|
||||
]
|
||||
},
|
||||
{
|
||||
title: translate('cloudSecrets.title', 'Cloud secrets'),
|
||||
description: translate(
|
||||
'cloudSecrets.searchDescription',
|
||||
'Environment variables and agent keys for Orca Cloud workspaces: personal, shared with your team, or per repository.'
|
||||
),
|
||||
keywords: [
|
||||
...translateSearchKeyword('cloudSecrets.keywordSecret', 'secret'),
|
||||
...translateSearchKeyword('cloudSecrets.keywordEnv', 'environment variable'),
|
||||
...translateSearchKeyword('cloudSecrets.keywordDotenv', '.env'),
|
||||
...translateSearchKeyword('cloudSecrets.keywordApiKey', 'api key'),
|
||||
...translateSearchKeyword('cloudSecrets.keywordGateway', 'ai gateway')
|
||||
]
|
||||
}
|
||||
])
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// @vitest-environment happy-dom
|
||||
import { cleanup, fireEvent, render, screen } from '@testing-library/react'
|
||||
import { afterEach, describe, expect, it, vi } from 'vitest'
|
||||
import { AgentApiKeysCloudDescription } from './AgentApiKeysCloudDescription'
|
||||
|
||||
describe('AgentApiKeysCloudDescription', () => {
|
||||
afterEach(cleanup)
|
||||
|
||||
it('says the keys are not for Orca Cloud and links to Cloud secrets', () => {
|
||||
const open = vi.fn()
|
||||
const { container } = render(<AgentApiKeysCloudDescription onOpenCloudSecrets={open} />)
|
||||
expect(container.textContent).toBe(
|
||||
'Keys here work on this computer and your SSH and paired hosts. To use a key in cloud workspaces, save it to your Orca account in Cloud secrets.'
|
||||
)
|
||||
fireEvent.click(screen.getByRole('button', { name: 'Cloud secrets' }))
|
||||
expect(open).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,31 @@
|
||||
import { Trans } from 'react-i18next'
|
||||
import { i18n } from '@/i18n/i18n'
|
||||
import { useTranslate } from '@/i18n/use-translate'
|
||||
|
||||
/** Agent API keys never reach Orca Cloud hosts; the pane says so and points at Cloud secrets. */
|
||||
export function AgentApiKeysCloudDescription({
|
||||
onOpenCloudSecrets
|
||||
}: {
|
||||
onOpenCloudSecrets: () => void
|
||||
}): React.JSX.Element {
|
||||
const t = useTranslate()
|
||||
return (
|
||||
<Trans
|
||||
i18n={i18n}
|
||||
defaults={t(
|
||||
'settings.agentApiKeys.descriptionCloudSecretsLink',
|
||||
'Keys here work on this computer and your SSH and paired hosts. To use a key in cloud workspaces, save it to your Orca account in <secrets>Cloud secrets</secrets>.'
|
||||
)}
|
||||
components={{
|
||||
// Not <link>: the Trans parser treats HTML void tag names as self-closing.
|
||||
secrets: (
|
||||
<button
|
||||
type="button"
|
||||
className="cursor-pointer rounded-sm text-foreground underline underline-offset-2 hover:text-foreground/80 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-solid focus-visible:outline-focus-ring"
|
||||
onClick={onOpenCloudSecrets}
|
||||
/>
|
||||
)
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import { translateSearchKeyword } from '../search/settings-search-keywords'
|
||||
|
||||
export const getAgentApiKeysSearchEntries = createLocalizedCatalog(() => [
|
||||
{
|
||||
title: translate('auto.components.settings.agentApiKeys.search.title', 'Agent API Keys'),
|
||||
title: translate('settings.agentApiKeys.searchTitle', 'Agent API keys'),
|
||||
description: translate(
|
||||
'auto.components.settings.agentApiKeys.search.description',
|
||||
'Give agents an API key on every host or only some, without signing in on each machine.'
|
||||
|
||||
@@ -311,7 +311,8 @@ export function CloudSecretList({
|
||||
<div ref={rootRef} className="space-y-3">
|
||||
<div className="flex min-h-8 items-center justify-between gap-3">
|
||||
{description ? (
|
||||
<p className="text-xs leading-5 text-muted-foreground">{description}</p>
|
||||
// Inset like the rows below so the text lines up with their content.
|
||||
<p className="pl-3 text-xs leading-5 text-muted-foreground">{description}</p>
|
||||
) : (
|
||||
<span />
|
||||
)}
|
||||
|
||||
@@ -132,7 +132,7 @@ export const effectiveEmpty = defineFixture({
|
||||
render: () => (
|
||||
<Frame>
|
||||
<CloudSecretsPane
|
||||
api={fixtureCloudSecretsApi({ caller: FIXTURE_SOLO, secrets: {} })}
|
||||
api={fixtureCloudSecretsApi({ caller: FIXTURE_SOLO, secrets: {}, effective: [] })}
|
||||
repos={REPOS}
|
||||
people={people}
|
||||
onSetUpAgent={noop}
|
||||
@@ -310,3 +310,23 @@ export const pastePreview = defineFixture({
|
||||
</Frame>
|
||||
)
|
||||
})
|
||||
|
||||
/** Keyboard focus on the tab panel (Radix makes it a tab stop): the focus-ring outline shows. */
|
||||
export const tabPanelFocused = defineFixture({
|
||||
width: 760,
|
||||
render: () => (
|
||||
<Frame>
|
||||
<CloudSecretsPane
|
||||
api={fixtureCloudSecretsApi({})}
|
||||
repos={REPOS}
|
||||
people={people}
|
||||
onSetUpAgent={noop}
|
||||
/>
|
||||
</Frame>
|
||||
),
|
||||
interact: async (frame) => {
|
||||
await new Promise((resolve) => setTimeout(resolve, 50))
|
||||
frame.querySelector<HTMLElement>('[role="tabpanel"][data-state="active"]')?.focus()
|
||||
await new Promise((resolve) => setTimeout(resolve, 30))
|
||||
}
|
||||
})
|
||||
|
||||
@@ -7,7 +7,6 @@ import { Label } from '../../ui/label'
|
||||
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../../ui/select'
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '../../ui/tabs'
|
||||
import { CloudApiEmptyState } from '../cloud-api/cloud-api-parts'
|
||||
import { SettingsGroupHeader } from '../section-layout/SettingsGroup'
|
||||
import { cloudSecretScopeLabel } from './cloud-secrets-copy'
|
||||
import { CloudSecretList, type CloudSecretPeople } from './CloudSecretList'
|
||||
import { CloudSecretsEffectiveView } from './CloudSecretsEffectiveView'
|
||||
@@ -165,16 +164,8 @@ export function CloudSecretsPane({
|
||||
)
|
||||
|
||||
return (
|
||||
<div className="space-y-4 border-t border-border/60 pt-5" data-settings-section="cloud-secrets">
|
||||
<SettingsGroupHeader
|
||||
className="px-0"
|
||||
title={t('cloudSecrets.title', 'Cloud secrets')}
|
||||
description={t(
|
||||
'cloudSecrets.description',
|
||||
'API keys you add to Orca are never written to the sandbox. Agents and terminals get them as environment variables.'
|
||||
)}
|
||||
/>
|
||||
|
||||
// Settings › Orca Cloud › Cloud secrets owns the title and the "never written to the sandbox" line.
|
||||
<div className="space-y-4">
|
||||
<Tabs
|
||||
value={tab}
|
||||
onValueChange={(next) => {
|
||||
|
||||
@@ -92,6 +92,14 @@ describe('CloudSecretsPasteEnv', () => {
|
||||
expect(nameInputs().map((input) => input.value)).toEqual(['C'])
|
||||
})
|
||||
|
||||
it('names every value field after its row, or its line while the name is empty', () => {
|
||||
renderPaste('DATABASE_URL=postgres://db\nAPI_TOKEN=abc')
|
||||
expect(screen.getByLabelText('Value for DATABASE_URL')).toBeTruthy()
|
||||
expect(screen.getByLabelText('Value for API_TOKEN')).toBeTruthy()
|
||||
fireEvent.change(nameInputs()[0], { target: { value: '' } })
|
||||
expect(screen.getByLabelText('Value, line 1')).toBeTruthy()
|
||||
})
|
||||
|
||||
it('tells the user the paste field is paste only', () => {
|
||||
renderPaste('')
|
||||
expect(screen.getByRole('textbox').getAttribute('aria-describedby')).toContain('-hint')
|
||||
|
||||
@@ -172,6 +172,13 @@ export function PasteRowEditor({
|
||||
onChange={(value) => onChange({ value, parseIssue: null, serverError: null })}
|
||||
invalid={blocking}
|
||||
describedBy={issue ? `${id}-issue` : undefined}
|
||||
ariaLabel={
|
||||
row.name
|
||||
? t('cloudSecrets.paste.valueLabel', 'Value for {{name}}', { name: row.name })
|
||||
: t('cloudSecrets.paste.valueLabelLine', 'Value, line {{line}}', {
|
||||
line: String(row.line)
|
||||
})
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
{row.name && cloudSecretKind(row.name) === 'agent_key' ? (
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import { useCallback, useEffect, useMemo, useState } from 'react'
|
||||
import { InlineError } from '@/components/ui/inline-error'
|
||||
import { Skeleton } from '@/components/ui/skeleton'
|
||||
import { useTranslate } from '@/i18n/use-translate'
|
||||
import { useAppStore } from '@/store'
|
||||
import { useOrgRoster } from '../../billing/team/use-org-roster'
|
||||
import { CloudAgentSetupDialog } from '../../cloud-agent-setup/CloudAgentSetupDialog'
|
||||
@@ -27,9 +30,11 @@ function TeamCloudSecretsPane({
|
||||
}
|
||||
|
||||
/** Shown only where Orca Cloud is offered to this account. */
|
||||
export function CloudSecretsSection({ orgId }: { orgId: string | null }): React.JSX.Element | null {
|
||||
export function CloudSecretsSection({ orgId }: { orgId: string | null }): React.JSX.Element {
|
||||
const t = useTranslate()
|
||||
const api: CloudSecretsApi | undefined = window.api.cloudSecrets
|
||||
const [available, setAvailable] = useState(false)
|
||||
// Null while main answers; the pane shows a placeholder rather than an empty page.
|
||||
const [available, setAvailable] = useState<boolean | null>(null)
|
||||
const [setupOpen, setSetupOpen] = useState(false)
|
||||
const [revision, setRevision] = useState(0)
|
||||
const repos = useAppStore((s) => s.repos)
|
||||
@@ -50,8 +55,25 @@ export function CloudSecretsSection({ orgId }: { orgId: string | null }): React.
|
||||
}
|
||||
}, [api])
|
||||
|
||||
if (api && available === null) {
|
||||
return (
|
||||
<div className="space-y-3" aria-busy>
|
||||
<span className="sr-only">{t('cloudSecrets.loading', 'Loading cloud secrets…')}</span>
|
||||
<Skeleton className="h-8 w-72" />
|
||||
<Skeleton className="h-24 w-full" />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
if (!api || !available) {
|
||||
return null
|
||||
return (
|
||||
<InlineError
|
||||
tone="neutral"
|
||||
title={t(
|
||||
'cloudSecrets.unavailable',
|
||||
'Cloud secrets aren’t available for this account yet.'
|
||||
)}
|
||||
/>
|
||||
)
|
||||
}
|
||||
const common = {
|
||||
api,
|
||||
|
||||
@@ -18,7 +18,8 @@ export function SecretValueInput({
|
||||
invalid = false,
|
||||
autoFocus = false,
|
||||
disabled = false,
|
||||
describedBy
|
||||
describedBy,
|
||||
ariaLabel
|
||||
}: {
|
||||
id: string
|
||||
value: string
|
||||
@@ -28,6 +29,8 @@ export function SecretValueInput({
|
||||
autoFocus?: boolean
|
||||
disabled?: boolean
|
||||
describedBy?: string
|
||||
/** For fields with no visible <label>, such as a row in the .env paste preview. */
|
||||
ariaLabel?: string
|
||||
}): React.JSX.Element {
|
||||
const t = useTranslate()
|
||||
const [revealed, setRevealed] = useState(false)
|
||||
@@ -72,6 +75,7 @@ export function SecretValueInput({
|
||||
onChange={(event) => onChange(event.target.value)}
|
||||
aria-invalid={invalid || undefined}
|
||||
aria-describedby={describedBy}
|
||||
aria-label={ariaLabel}
|
||||
disabled={disabled}
|
||||
spellCheck={false}
|
||||
autoComplete="off"
|
||||
@@ -91,6 +95,7 @@ export function SecretValueInput({
|
||||
})}
|
||||
aria-invalid={invalid || undefined}
|
||||
aria-describedby={describedBy}
|
||||
aria-label={ariaLabel}
|
||||
disabled={disabled}
|
||||
className="h-8"
|
||||
/>
|
||||
@@ -134,6 +139,7 @@ export function SecretValueInput({
|
||||
placeholder={placeholder}
|
||||
aria-invalid={invalid || undefined}
|
||||
aria-describedby={describedBy}
|
||||
aria-label={ariaLabel}
|
||||
autoFocus={autoFocus}
|
||||
disabled={disabled}
|
||||
spellCheck={false}
|
||||
|
||||
@@ -14,6 +14,11 @@ export const SETTINGS_NAV_GROUPS = [
|
||||
titleDefault: 'AI Capabilities'
|
||||
},
|
||||
{ id: 'setup', titleKey: 'auto.components.settings.Settings.9abb9be3bc', titleDefault: 'Set Up' },
|
||||
{
|
||||
id: 'orca-cloud',
|
||||
titleKey: 'settings.groups.orcaCloud',
|
||||
titleDefault: 'Orca Cloud'
|
||||
},
|
||||
{
|
||||
id: 'workflows',
|
||||
titleKey: 'auto.components.settings.Settings.e1578cd4bc',
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
import { useCallback, useEffect, useState } from 'react'
|
||||
import { Plug } from 'lucide-react'
|
||||
import { InlineError } from '@/components/ui/inline-error'
|
||||
import { Skeleton } from '@/components/ui/skeleton'
|
||||
import { useTranslate } from '@/i18n/use-translate'
|
||||
import { useAppStore } from '@/store'
|
||||
import type { EphemeralVmRuntimeRecord } from '../../../../../shared/ephemeral-vm-runtimes'
|
||||
import { CloudApiEmptyState } from '../cloud-api/cloud-api-parts'
|
||||
import { CloudMcpSyncSection } from '../runtime-environments/cloud-mcp/CloudMcpSyncSection'
|
||||
import { SettingsGroup } from '../section-layout/SettingsGroup'
|
||||
|
||||
/** `name` is null when the workspace record has none; the view shows a generic label. */
|
||||
export type OrcaCloudMcpWorkspace = {
|
||||
runtimeId: string
|
||||
name: string | null
|
||||
environmentId: string
|
||||
}
|
||||
|
||||
/** Running Orca Cloud workspaces, newest first: MCP sync only reaches a sandbox that is awake. */
|
||||
export function runningOrcaCloudMcpWorkspaces(
|
||||
records: readonly EphemeralVmRuntimeRecord[]
|
||||
): OrcaCloudMcpWorkspace[] {
|
||||
return records
|
||||
.filter((record) => record.recipe?.provider === 'orca-cloud' && record.status === 'running')
|
||||
.sort((a, b) => b.createdAt - a.createdAt || a.id.localeCompare(b.id))
|
||||
.flatMap((record) =>
|
||||
record.runtimeEnvironmentId
|
||||
? [
|
||||
{
|
||||
runtimeId: record.id,
|
||||
name: record.workspaceName || null,
|
||||
environmentId: record.runtimeEnvironmentId
|
||||
}
|
||||
]
|
||||
: []
|
||||
)
|
||||
}
|
||||
|
||||
export function OrcaCloudMcpServersView({
|
||||
workspaces,
|
||||
renderSync,
|
||||
onRetry
|
||||
}: {
|
||||
/** Null while the runtime list loads; 'failed' when main could not list them. */
|
||||
workspaces: OrcaCloudMcpWorkspace[] | null | 'failed'
|
||||
renderSync: (workspace: OrcaCloudMcpWorkspace, onlyOne: boolean) => React.ReactNode
|
||||
onRetry: () => void
|
||||
}): React.JSX.Element {
|
||||
const t = useTranslate()
|
||||
if (workspaces === 'failed') {
|
||||
return (
|
||||
<InlineError
|
||||
title={t('settings.orcaCloud.mcp.loadFailed', 'Couldn’t list your cloud workspaces')}
|
||||
retryLabel={t('cloudEnvironment.retry', 'Try again')}
|
||||
onRetry={onRetry}
|
||||
/>
|
||||
)
|
||||
}
|
||||
if (workspaces === null) {
|
||||
return (
|
||||
<div className="space-y-3" aria-busy>
|
||||
<span className="sr-only">{t('cloudMcpSync.loading', 'Loading MCP servers…')}</span>
|
||||
<Skeleton className="h-20 w-full" />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
if (workspaces.length === 0) {
|
||||
return (
|
||||
<SettingsGroup>
|
||||
<CloudApiEmptyState
|
||||
icon={Plug}
|
||||
title={t('settings.orcaCloud.mcp.emptyTitle', 'No cloud workspace is running')}
|
||||
description={t(
|
||||
'settings.orcaCloud.mcp.emptyBody',
|
||||
'MCP servers sync to a cloud workspace while it runs. Start or wake one to choose which servers it gets.'
|
||||
)}
|
||||
/>
|
||||
</SettingsGroup>
|
||||
)
|
||||
}
|
||||
return (
|
||||
<div className="space-y-3">
|
||||
{workspaces.map((workspace) => {
|
||||
const name = workspace.name ?? t('settings.orcaCloud.mcp.unnamed', 'Cloud workspace')
|
||||
return (
|
||||
<SettingsGroup key={workspace.runtimeId}>
|
||||
<section
|
||||
className="py-3"
|
||||
aria-label={t('settings.orcaCloud.mcp.workspaceLabel', 'MCP servers in {{name}}', {
|
||||
name
|
||||
})}
|
||||
>
|
||||
<p className="truncate text-sm font-medium">{name}</p>
|
||||
{renderSync(workspace, workspaces.length === 1)}
|
||||
</section>
|
||||
</SettingsGroup>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export function OrcaCloudMcpServersPane(): React.JSX.Element {
|
||||
const [workspaces, setWorkspaces] = useState<OrcaCloudMcpWorkspace[] | null | 'failed'>(null)
|
||||
const [attempt, setAttempt] = useState(0)
|
||||
// The store mirrors every lifecycle broadcast, so a change there means the list moved.
|
||||
const lifecycle = useAppStore((s) => s.ephemeralVmRuntimesByWorkspaceId)
|
||||
useEffect(() => {
|
||||
const listRuntimes = window.api.ephemeralVm?.listRuntimes
|
||||
if (!listRuntimes) {
|
||||
setWorkspaces([])
|
||||
return
|
||||
}
|
||||
let disposed = false
|
||||
void listRuntimes()
|
||||
.then((records) => !disposed && setWorkspaces(runningOrcaCloudMcpWorkspaces(records)))
|
||||
.catch(() => !disposed && setWorkspaces('failed'))
|
||||
return () => {
|
||||
disposed = true
|
||||
}
|
||||
}, [lifecycle, attempt])
|
||||
const retry = useCallback(() => {
|
||||
setWorkspaces(null)
|
||||
setAttempt((value) => value + 1)
|
||||
}, [])
|
||||
return (
|
||||
<OrcaCloudMcpServersView
|
||||
workspaces={workspaces}
|
||||
onRetry={retry}
|
||||
renderSync={(workspace, onlyOne) => (
|
||||
<CloudMcpSyncSection environmentId={workspace.environmentId} defaultExpanded={onlyOne} />
|
||||
)}
|
||||
/>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,220 @@
|
||||
import type { McpSyncStatus } from '../../../../../shared/agent-mcp-sync/mcp-sync-contract'
|
||||
import type { OrcaProfileAuthStatus } from '../../../../../shared/orca-profiles'
|
||||
import { defineFixture } from '../../../component-fixtures/component-fixture'
|
||||
import { PlanBillingView } from '../../billing/PlanBillingSection'
|
||||
import { sampleTeam } from '../../billing/plan-billing-fixtures'
|
||||
import { AgentApiKeysCloudDescription } from '../agent-api-keys/AgentApiKeysCloudDescription'
|
||||
import { CloudSecretsPane } from '../cloud-secrets/CloudSecretsPane'
|
||||
import { FIXTURE_NAMES, fixtureCloudSecretsApi } from '../cloud-secrets/cloud-secrets-fixture-data'
|
||||
import { CloudMcpSyncPanel } from '../runtime-environments/cloud-mcp/CloudMcpSyncPanel'
|
||||
import { SettingsSection } from '../section-layout/SettingsSection'
|
||||
import { OrcaCloudMcpServersView, type OrcaCloudMcpWorkspace } from './OrcaCloudMcpServersPane'
|
||||
import { OrcaCloudSettingsLinks } from './OrcaCloudSettingsLinks'
|
||||
import { OrcaCloudSignedOutNotice } from './OrcaCloudSettingsPanes'
|
||||
|
||||
const noop = (): void => {}
|
||||
const BARE_BODY = 'rounded-none border-0 bg-transparent p-0 shadow-none'
|
||||
|
||||
/** The pane as Settings draws it: page title and description over the bare body. */
|
||||
function Page({
|
||||
id,
|
||||
title,
|
||||
description,
|
||||
children,
|
||||
bare = true
|
||||
}: {
|
||||
id: string
|
||||
title: string
|
||||
description: React.ReactNode
|
||||
children?: React.ReactNode
|
||||
bare?: boolean
|
||||
}): React.JSX.Element {
|
||||
return (
|
||||
<div className="bg-background px-8 py-6">
|
||||
<SettingsSection
|
||||
id={id}
|
||||
title={title}
|
||||
description={description}
|
||||
forceVisible
|
||||
bodyClassName={bare ? BARE_BODY : undefined}
|
||||
>
|
||||
{children}
|
||||
</SettingsSection>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
const MCP_STATUS: McpSyncStatus = {
|
||||
environmentId: 'env-1',
|
||||
autoSync: true,
|
||||
running: false,
|
||||
lastSyncedAt: Date.UTC(2026, 10, 9, 16, 42),
|
||||
error: null,
|
||||
rows: [
|
||||
{
|
||||
key: 'claude:linear',
|
||||
agent: 'claude',
|
||||
name: 'linear',
|
||||
source: 'claude-user',
|
||||
transport: 'http',
|
||||
target: 'https://mcp.linear.app',
|
||||
included: true,
|
||||
state: 'synced',
|
||||
outcome: 'added'
|
||||
},
|
||||
{
|
||||
key: 'claude:figma-desktop',
|
||||
agent: 'claude',
|
||||
name: 'figma-desktop',
|
||||
source: 'claude-user',
|
||||
transport: 'stdio',
|
||||
target: 'figma-mcp',
|
||||
included: true,
|
||||
state: 'skipped',
|
||||
skipReason: 'local-command'
|
||||
},
|
||||
{
|
||||
key: 'codex:memory',
|
||||
agent: 'codex',
|
||||
name: 'memory',
|
||||
source: 'codex',
|
||||
transport: 'stdio',
|
||||
target: 'npx',
|
||||
included: true,
|
||||
state: 'synced',
|
||||
outcome: 'added'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
const ONE: OrcaCloudMcpWorkspace[] = [
|
||||
{ runtimeId: 'rt-1', name: 'acme/web · fix-login', environmentId: 'env-1' }
|
||||
]
|
||||
const TWO: OrcaCloudMcpWorkspace[] = [
|
||||
...ONE,
|
||||
{ runtimeId: 'rt-2', name: 'acme/api · billing-webhooks', environmentId: 'env-2' }
|
||||
]
|
||||
|
||||
function mcpPage(workspaces: OrcaCloudMcpWorkspace[] | null | 'failed'): React.JSX.Element {
|
||||
return (
|
||||
<Page
|
||||
id="cloud-mcp"
|
||||
title="MCP servers"
|
||||
description="MCP servers from Claude Code and Codex on this computer, synced to your cloud workspaces."
|
||||
>
|
||||
<OrcaCloudMcpServersView
|
||||
workspaces={workspaces}
|
||||
onRetry={noop}
|
||||
renderSync={(workspace, onlyOne) => (
|
||||
<CloudMcpSyncPanel
|
||||
status={{ ...MCP_STATUS, environmentId: workspace.environmentId }}
|
||||
expanded={onlyOne}
|
||||
onToggleExpanded={noop}
|
||||
onSyncNow={noop}
|
||||
onToggleServer={noop}
|
||||
onToggleAutoSync={noop}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
</Page>
|
||||
)
|
||||
}
|
||||
|
||||
export const mcpOneWorkspace = defineFixture({ width: 784, render: () => mcpPage(ONE) })
|
||||
export const mcpTwoWorkspaces = defineFixture({ width: 784, render: () => mcpPage(TWO) })
|
||||
export const mcpNoneRunning = defineFixture({ width: 784, render: () => mcpPage([]) })
|
||||
export const mcpLoading = defineFixture({ width: 784, render: () => mcpPage(null) })
|
||||
export const mcpLoadFailed = defineFixture({ width: 784, render: () => mcpPage('failed') })
|
||||
|
||||
export const secretsPage = defineFixture({
|
||||
width: 784,
|
||||
render: () => (
|
||||
<Page
|
||||
id="cloud-secrets"
|
||||
title="Cloud secrets"
|
||||
description="API keys you add to Orca are never written to the sandbox. Agents and terminals get them as environment variables."
|
||||
>
|
||||
<CloudSecretsPane
|
||||
api={fixtureCloudSecretsApi({})}
|
||||
repos={[{ key: 'github.com/acme/web', label: 'acme/web' }]}
|
||||
people={{ nameFor: (userId: string) => FIXTURE_NAMES[userId] ?? null }}
|
||||
onSetUpAgent={noop}
|
||||
/>
|
||||
</Page>
|
||||
)
|
||||
})
|
||||
|
||||
export const billingPage = defineFixture({
|
||||
width: 784,
|
||||
render: () => (
|
||||
<Page
|
||||
id="cloud-billing"
|
||||
title="Plan & billing"
|
||||
description="Your Orca Cloud plan, sandbox hours and payment."
|
||||
>
|
||||
<PlanBillingView
|
||||
result={{ status: 'ok', entitlement: sampleTeam }}
|
||||
loading={false}
|
||||
busy={false}
|
||||
notice={null}
|
||||
onRefresh={noop}
|
||||
onPortal={noop}
|
||||
onSetOverage={noop}
|
||||
onSeePlans={noop}
|
||||
/>
|
||||
</Page>
|
||||
)
|
||||
})
|
||||
|
||||
const SIGNED_OUT: OrcaProfileAuthStatus = {
|
||||
activeProfileId: 'profile-1',
|
||||
configured: true,
|
||||
state: 'local',
|
||||
persistence: 'encrypted'
|
||||
}
|
||||
|
||||
export const signedOut = defineFixture({
|
||||
width: 784,
|
||||
store: { orcaProfileAuthStatus: SIGNED_OUT },
|
||||
render: () => (
|
||||
<Page id="cloud-team" title="Team" description="Share one Orca Cloud plan with your teammates.">
|
||||
<OrcaCloudSignedOutNotice />
|
||||
</Page>
|
||||
)
|
||||
})
|
||||
|
||||
export const sessionExpired = defineFixture({
|
||||
width: 784,
|
||||
store: { orcaProfileAuthStatus: { ...SIGNED_OUT, state: 'reconnect-required' } },
|
||||
render: () => (
|
||||
<Page
|
||||
id="cloud-secrets"
|
||||
title="Cloud secrets"
|
||||
description="API keys you add to Orca are never written to the sandbox. Agents and terminals get them as environment variables."
|
||||
>
|
||||
<OrcaCloudSignedOutNotice />
|
||||
</Page>
|
||||
)
|
||||
})
|
||||
|
||||
/** Settings › Orca account, signed in: the Orca Cloud panes are one click away. */
|
||||
export const accountLinks = defineFixture({
|
||||
width: 720,
|
||||
render: () => (
|
||||
<div className="bg-background p-6">
|
||||
<OrcaCloudSettingsLinks onOpen={noop} />
|
||||
</div>
|
||||
)
|
||||
})
|
||||
|
||||
/** Settings › Agent API keys header: desktop keys are not for Orca Cloud; link to Cloud secrets. */
|
||||
export const agentApiKeysHeader = defineFixture({
|
||||
width: 784,
|
||||
render: () => (
|
||||
<Page
|
||||
id="agent-api-keys"
|
||||
title="Agent API keys"
|
||||
description={<AgentApiKeysCloudDescription onOpenCloudSecrets={noop} />}
|
||||
/>
|
||||
)
|
||||
})
|
||||
@@ -0,0 +1,54 @@
|
||||
import { Boxes, ChevronRight, CreditCard, LockKeyhole, Plug, Users } from 'lucide-react'
|
||||
import type { LucideIcon } from 'lucide-react'
|
||||
import { SettingsGroupHeader } from '@/components/settings/section-layout/SettingsGroup'
|
||||
import { useTranslate } from '@/i18n/use-translate'
|
||||
import type { SettingsNavTarget } from '@/lib/settings-navigation-types'
|
||||
|
||||
type OrcaCloudLink = { pane: SettingsNavTarget; icon: LucideIcon; label: string }
|
||||
|
||||
/** Settings › Orca account: the Orca Cloud panes live in their own group; this points at them. */
|
||||
export function OrcaCloudSettingsLinks({
|
||||
onOpen
|
||||
}: {
|
||||
onOpen: (pane: SettingsNavTarget) => void
|
||||
}): React.JSX.Element {
|
||||
const t = useTranslate()
|
||||
const links: OrcaCloudLink[] = [
|
||||
{
|
||||
pane: 'cloud-billing',
|
||||
icon: CreditCard,
|
||||
label: t('auto.components.billing.title', 'Plan & billing')
|
||||
},
|
||||
{ pane: 'cloud-team', icon: Users, label: t('auto.components.billing.team.title', 'Team') },
|
||||
{ pane: 'cloud-secrets', icon: LockKeyhole, label: t('cloudSecrets.title', 'Cloud secrets') },
|
||||
{
|
||||
pane: 'cloud-environments',
|
||||
icon: Boxes,
|
||||
label: t('settings.orcaCloud.environments.title', 'Cloud environments')
|
||||
},
|
||||
{ pane: 'cloud-mcp', icon: Plug, label: t('cloudMcpSync.title', 'MCP servers') }
|
||||
]
|
||||
return (
|
||||
<nav
|
||||
className="space-y-3 border-t border-border/60 pt-5"
|
||||
aria-label={t('settings.groups.orcaCloud', 'Orca Cloud')}
|
||||
>
|
||||
<SettingsGroupHeader className="px-0" title={t('settings.groups.orcaCloud', 'Orca Cloud')} />
|
||||
<ul className="divide-y divide-border/60 overflow-hidden rounded-lg border border-border bg-card shadow-xs">
|
||||
{links.map(({ pane, icon: Icon, label }) => (
|
||||
<li key={pane}>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => onOpen(pane)}
|
||||
className="flex w-full items-center gap-3 px-3 py-2.5 text-left text-sm transition-colors hover:bg-accent focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-solid focus-visible:outline-focus-ring"
|
||||
>
|
||||
<Icon aria-hidden className="size-4 shrink-0 text-muted-foreground" />
|
||||
<span className="min-w-0 flex-1 truncate">{label}</span>
|
||||
<ChevronRight aria-hidden className="size-4 text-muted-foreground" />
|
||||
</button>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</nav>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
import { Fragment } from 'react'
|
||||
import { CircleUserRound } from 'lucide-react'
|
||||
import { InlineError } from '@/components/ui/inline-error'
|
||||
import { Skeleton } from '@/components/ui/skeleton'
|
||||
import { useOrcaAccountKey } from '@/hooks/use-orca-account-key'
|
||||
import { useOrcaProfileAuthStatusRefresh } from '@/hooks/use-orca-profile-auth-status-refresh'
|
||||
import { useTranslate } from '@/i18n/use-translate'
|
||||
import { useAppStore } from '@/store'
|
||||
import { PlanBillingSection } from '../../billing/PlanBillingSection'
|
||||
import { TeamSettingsLink } from '../../billing/team/TeamSettingsLink'
|
||||
import {
|
||||
CloudEnvironmentSection,
|
||||
useOrcaCloudEnvironmentsAvailability
|
||||
} from '../../cloud-environment/CloudEnvironmentSection'
|
||||
import { OrcaSignInButton, OrcaSignInWaitNotice } from '../../OrcaSignInProgress'
|
||||
import { CloudApiEmptyState } from '../cloud-api/cloud-api-parts'
|
||||
import { CloudSecretsSection } from '../cloud-secrets/CloudSecretsSection'
|
||||
import { SettingsGroup } from '../section-layout/SettingsGroup'
|
||||
import { CloudPredictiveWakeSetting } from './CloudPredictiveWakeSetting'
|
||||
import { OrcaCloudMcpServersPane } from './OrcaCloudMcpServersPane'
|
||||
|
||||
type OrcaCloudAccount = {
|
||||
orgId: string | null
|
||||
orgName: string | null
|
||||
userId: string | null
|
||||
billing: boolean
|
||||
sandbox: boolean
|
||||
}
|
||||
|
||||
export function OrcaCloudSignedOutNotice(): React.JSX.Element {
|
||||
const t = useTranslate()
|
||||
const reconnect = useAppStore((s) => s.orcaProfileAuthStatus?.state === 'reconnect-required')
|
||||
return (
|
||||
<SettingsGroup>
|
||||
<CloudApiEmptyState
|
||||
icon={CircleUserRound}
|
||||
title={
|
||||
reconnect
|
||||
? t('settings.orcaCloud.signedOut.reconnectTitle', 'Sign in again')
|
||||
: t('auto.components.settings.cloudApi.signedOut.title', 'Sign in to Orca')
|
||||
}
|
||||
description={
|
||||
reconnect
|
||||
? t(
|
||||
'auto.components.settings.orcaAccount.reconnectRequired',
|
||||
'Your session expired. Sign in again to use Orca Cloud.'
|
||||
)
|
||||
: t(
|
||||
'settings.orcaCloud.signedOut.body',
|
||||
'Orca Cloud settings belong to your Orca account. Sign in to manage them.'
|
||||
)
|
||||
}
|
||||
action={
|
||||
<div className="flex flex-col items-center gap-2">
|
||||
<OrcaSignInButton size="sm">
|
||||
{reconnect
|
||||
? t('auto.components.settings.orcaAccount.signInAgain', 'Sign in again')
|
||||
: t('auto.components.settings.orcaAccount.signIn', 'Sign in to Orca')}
|
||||
</OrcaSignInButton>
|
||||
<OrcaSignInWaitNotice />
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
</SettingsGroup>
|
||||
)
|
||||
}
|
||||
|
||||
/** Every Orca Cloud pane needs the account: show sign-in instead of an empty or failing pane. */
|
||||
function OrcaCloudAccountGate({
|
||||
children
|
||||
}: {
|
||||
children: (account: OrcaCloudAccount) => React.ReactNode
|
||||
}): React.JSX.Element {
|
||||
const t = useTranslate()
|
||||
const authStatus = useAppStore((s) => s.orcaProfileAuthStatus)
|
||||
// Team-scoped panes remount on a team switch so none of them shows the previous team's data.
|
||||
const accountKey = useOrcaAccountKey()
|
||||
useOrcaProfileAuthStatusRefresh()
|
||||
if (!authStatus) {
|
||||
return (
|
||||
<div className="space-y-3" aria-busy>
|
||||
<span className="sr-only">
|
||||
{t('auto.components.settings.orcaAccount.checking', 'Checking account status…')}
|
||||
</span>
|
||||
<Skeleton className="h-5 w-48" />
|
||||
<Skeleton className="h-16 w-full" />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
if (authStatus.state !== 'connected') {
|
||||
return <OrcaCloudSignedOutNotice />
|
||||
}
|
||||
return (
|
||||
<Fragment key={accountKey}>
|
||||
{children({
|
||||
orgId: authStatus.cloud?.activeOrgId ?? null,
|
||||
orgName: authStatus.cloud?.activeOrgName ?? null,
|
||||
userId: authStatus.cloud?.userId ?? null,
|
||||
billing: authStatus.capabilities?.flags?.billing === true,
|
||||
sandbox: authStatus.capabilities?.flags?.sandbox === true
|
||||
})}
|
||||
</Fragment>
|
||||
)
|
||||
}
|
||||
|
||||
export function OrcaCloudBillingPane(): React.JSX.Element {
|
||||
return <OrcaCloudAccountGate>{() => <PlanBillingSection />}</OrcaCloudAccountGate>
|
||||
}
|
||||
|
||||
export function OrcaCloudTeamPane(): React.JSX.Element {
|
||||
const t = useTranslate()
|
||||
return (
|
||||
<OrcaCloudAccountGate>
|
||||
{(account) =>
|
||||
account.billing ? (
|
||||
<TeamSettingsLink orgId={account.orgId} orgName={account.orgName} />
|
||||
) : (
|
||||
<InlineError
|
||||
tone="neutral"
|
||||
title={t(
|
||||
'settings.orcaCloud.team.unavailable',
|
||||
'Teams aren’t available for this account yet.'
|
||||
)}
|
||||
/>
|
||||
)
|
||||
}
|
||||
</OrcaCloudAccountGate>
|
||||
)
|
||||
}
|
||||
|
||||
export function OrcaCloudSecretsPane(): React.JSX.Element {
|
||||
return (
|
||||
<OrcaCloudAccountGate>
|
||||
{(account) => <CloudSecretsSection orgId={account.orgId} />}
|
||||
</OrcaCloudAccountGate>
|
||||
)
|
||||
}
|
||||
|
||||
export function OrcaCloudEnvironmentsPane(): React.JSX.Element {
|
||||
const t = useTranslate()
|
||||
const configured = useOrcaCloudEnvironmentsAvailability()
|
||||
return (
|
||||
<OrcaCloudAccountGate>
|
||||
{(account) => (
|
||||
<div className="space-y-8">
|
||||
{configured === null ? (
|
||||
<Skeleton className="h-24 w-full" />
|
||||
) : configured ? (
|
||||
<CloudEnvironmentSection orgId={account.orgId} viewerUserId={account.userId} />
|
||||
) : (
|
||||
<InlineError
|
||||
tone="neutral"
|
||||
title={t(
|
||||
'settings.orcaCloud.environments.unavailable',
|
||||
'Cloud environments aren’t available for this account yet.'
|
||||
)}
|
||||
/>
|
||||
)}
|
||||
{account.sandbox ? <CloudPredictiveWakeSetting /> : null}
|
||||
</div>
|
||||
)}
|
||||
</OrcaCloudAccountGate>
|
||||
)
|
||||
}
|
||||
|
||||
export function OrcaCloudMcpPane(): React.JSX.Element {
|
||||
return <OrcaCloudAccountGate>{() => <OrcaCloudMcpServersPane />}</OrcaCloudAccountGate>
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
import { createLocalizedCatalog } from '@/i18n/localized-catalog'
|
||||
import { translate } from '@/i18n/i18n'
|
||||
import { translateSearchKeyword } from '../search/settings-search-keywords'
|
||||
|
||||
export const getOrcaCloudBillingSearchEntries = createLocalizedCatalog(() => [
|
||||
{
|
||||
title: translate('auto.components.billing.title', 'Plan & billing'),
|
||||
description: translate(
|
||||
'settings.orcaCloud.billing.searchDescription',
|
||||
'Your Orca Cloud plan, sandbox hours, overage and payment.'
|
||||
),
|
||||
keywords: [
|
||||
...translateSearchKeyword('settings.orcaCloud.billing.keywordPlan', 'plan'),
|
||||
...translateSearchKeyword('settings.orcaCloud.billing.keywordBilling', 'billing'),
|
||||
...translateSearchKeyword('settings.orcaCloud.billing.keywordInvoice', 'invoice'),
|
||||
...translateSearchKeyword('settings.orcaCloud.billing.keywordUsage', 'usage'),
|
||||
...translateSearchKeyword('settings.orcaCloud.billing.keywordOverage', 'overage')
|
||||
]
|
||||
}
|
||||
])
|
||||
|
||||
export const getOrcaCloudTeamSearchEntries = createLocalizedCatalog(() => [
|
||||
{
|
||||
title: translate('auto.components.billing.team.title', 'Team'),
|
||||
description: translate(
|
||||
'settings.orcaCloud.team.searchDescription',
|
||||
'Members, invites and seats for your Orca Cloud team.'
|
||||
),
|
||||
keywords: [
|
||||
...translateSearchKeyword('settings.orcaCloud.team.keywordMembers', 'members'),
|
||||
...translateSearchKeyword('settings.orcaCloud.team.keywordInvite', 'invite'),
|
||||
...translateSearchKeyword('settings.orcaCloud.team.keywordSeats', 'seats')
|
||||
]
|
||||
}
|
||||
])
|
||||
|
||||
export const getOrcaCloudSecretsSearchEntries = createLocalizedCatalog(() => [
|
||||
{
|
||||
title: translate('cloudSecrets.title', 'Cloud secrets'),
|
||||
description: translate(
|
||||
'cloudSecrets.searchDescription',
|
||||
'Environment variables and agent keys for Orca Cloud workspaces: personal, shared with your team, or per repository.'
|
||||
),
|
||||
keywords: [
|
||||
...translateSearchKeyword('cloudSecrets.keywordSecret', 'secret'),
|
||||
...translateSearchKeyword('cloudSecrets.keywordEnv', 'environment variable'),
|
||||
...translateSearchKeyword('cloudSecrets.keywordDotenv', '.env'),
|
||||
...translateSearchKeyword('cloudSecrets.keywordApiKey', 'api key'),
|
||||
...translateSearchKeyword('cloudSecrets.keywordGateway', 'ai gateway')
|
||||
]
|
||||
}
|
||||
])
|
||||
|
||||
export const getOrcaCloudEnvironmentsSearchEntries = createLocalizedCatalog(() => [
|
||||
{
|
||||
title: translate('settings.orcaCloud.environments.title', 'Cloud environments'),
|
||||
description: translate(
|
||||
'settings.orcaCloud.environments.searchDescription',
|
||||
'Repositories and install script built into a snapshot, and waking cloud workspaces before you open them.'
|
||||
),
|
||||
keywords: [
|
||||
...translateSearchKeyword('settings.orcaCloud.environments.keywordSnapshot', 'snapshot'),
|
||||
...translateSearchKeyword('settings.orcaCloud.environments.keywordInstall', 'install script'),
|
||||
...translateSearchKeyword('settings.orcaCloud.environments.keywordWake', 'wake'),
|
||||
...translateSearchKeyword('settings.orcaCloud.environments.keywordSandbox', 'sandbox')
|
||||
]
|
||||
}
|
||||
])
|
||||
|
||||
export const getOrcaCloudMcpSearchEntries = createLocalizedCatalog(() => [
|
||||
{
|
||||
title: translate('cloudMcpSync.title', 'MCP servers'),
|
||||
description: translate(
|
||||
'settings.orcaCloud.mcp.searchDescription',
|
||||
'Choose which MCP servers from this computer sync to your cloud workspaces.'
|
||||
),
|
||||
keywords: [
|
||||
...translateSearchKeyword('settings.orcaCloud.mcp.keywordMcp', 'mcp'),
|
||||
...translateSearchKeyword('settings.orcaCloud.mcp.keywordSync', 'sync'),
|
||||
...translateSearchKeyword('settings.orcaCloud.mcp.keywordCloud', 'cloud')
|
||||
]
|
||||
}
|
||||
])
|
||||
+15
-6
@@ -2,6 +2,7 @@ import { AccountsPane } from '../accounts/AccountsPane'
|
||||
import { getProviderAccountsOwnerKey } from '@/runtime/provider-accounts/observations/runtime-provider-accounts-client'
|
||||
import { AgentsPane } from '../agents/AgentsPane'
|
||||
import { AgentApiKeysSection } from '../agent-api-keys/AgentApiKeysSection'
|
||||
import { AgentApiKeysCloudDescription } from '../agent-api-keys/AgentApiKeysCloudDescription'
|
||||
import { AgentDefaultSurfaceSection } from '../agents/surfaces/AgentDefaultSurfaceSection'
|
||||
import { ComputerUsePane } from '../computer-use/ComputerUsePane'
|
||||
import { LinearAgentSkillPane } from '../skills/linear/LinearAgentSkillPane'
|
||||
@@ -113,15 +114,23 @@ export function renderAgentApiKeysSettingsSection(
|
||||
context: SettingsRenderContext,
|
||||
t: Translate = translate
|
||||
): React.JSX.Element | null {
|
||||
const { model, navigation, view } = context
|
||||
const { model, navigation, view, actions } = context
|
||||
return model.showDesktopOnlySettings ? (
|
||||
<SettingsSection
|
||||
id="agent-api-keys"
|
||||
title={t('auto.components.settings.agentApiKeys.title', 'Agent API Keys')}
|
||||
description={t(
|
||||
'auto.components.settings.agentApiKeys.description',
|
||||
'Optional. Give an agent an API key on every host, or only some, instead of signing in on each machine.'
|
||||
)}
|
||||
title={t('settings.agentApiKeys.title', 'Agent API keys')}
|
||||
description={
|
||||
model.orcaCloudApiAvailable ? (
|
||||
<AgentApiKeysCloudDescription
|
||||
onOpenCloudSecrets={() => void actions.scrollToSection('cloud-secrets')}
|
||||
/>
|
||||
) : (
|
||||
t(
|
||||
'auto.components.settings.agentApiKeys.description',
|
||||
'Optional. Give an agent an API key on every host, or only some, instead of signing in on each machine.'
|
||||
)
|
||||
)
|
||||
}
|
||||
badge={t('auto.hooks.useSettingsNavigationMetadata.7c79d3b7bf', 'Optional')}
|
||||
searchEntries={navigation.getSectionSearchEntries('agent-api-keys')}
|
||||
>
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
import {
|
||||
OrcaCloudBillingPane,
|
||||
OrcaCloudEnvironmentsPane,
|
||||
OrcaCloudMcpPane,
|
||||
OrcaCloudSecretsPane,
|
||||
OrcaCloudTeamPane
|
||||
} from '../orca-cloud/OrcaCloudSettingsPanes'
|
||||
import { SettingsSection } from '../section-layout/SettingsSection'
|
||||
import { translate } from '@/i18n/i18n'
|
||||
import type { Translate } from '@/i18n/use-translate'
|
||||
import type { SettingsRenderContext } from './settings-render-context'
|
||||
|
||||
const BARE_BODY = 'rounded-none border-0 bg-transparent p-0 shadow-none'
|
||||
|
||||
/** Settings › Orca Cloud: the account-backed panes. Orca API keys and Routines follow them. */
|
||||
export function renderOrcaCloudSettingsSections(
|
||||
context: SettingsRenderContext,
|
||||
t: Translate = translate
|
||||
): React.JSX.Element | null {
|
||||
const { model, navigation, view } = context
|
||||
if (!model.showDesktopOnlySettings || !model.orcaCloudApiAvailable) {
|
||||
return null
|
||||
}
|
||||
// Titles and descriptions come from the nav metadata so the pane and the sidebar never disagree.
|
||||
const sections = [
|
||||
{ id: 'cloud-billing', pane: <OrcaCloudBillingPane /> },
|
||||
{ id: 'cloud-team', pane: <OrcaCloudTeamPane /> },
|
||||
{ id: 'cloud-secrets', pane: <OrcaCloudSecretsPane /> },
|
||||
{ id: 'cloud-environments', pane: <OrcaCloudEnvironmentsPane /> },
|
||||
{ id: 'cloud-mcp', pane: <OrcaCloudMcpPane /> }
|
||||
]
|
||||
return (
|
||||
<>
|
||||
{sections.map(({ id, pane }) => {
|
||||
const meta = navigation.navSections.find((section) => section.id === id)
|
||||
return (
|
||||
<SettingsSection
|
||||
key={id}
|
||||
id={id}
|
||||
title={meta?.title ?? t('settings.breadcrumb.settings', 'Settings')}
|
||||
description={meta?.description ?? ''}
|
||||
searchEntries={navigation.getSectionSearchEntries(id)}
|
||||
bodyClassName={BARE_BODY}
|
||||
>
|
||||
{view.isSectionMounted(id) ? pane : null}
|
||||
</SettingsSection>
|
||||
)
|
||||
})}
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -63,6 +63,7 @@ import {
|
||||
} from './settings-advanced-section-renderers'
|
||||
import { renderProjectSettingsSections } from './settings-project-section-renderer'
|
||||
import { renderCloudApiSettingsSections } from './settings-cloud-api-section-renderers'
|
||||
import { renderOrcaCloudSettingsSections } from './settings-orca-cloud-section-renderers'
|
||||
import {
|
||||
SettingsHostScopePicker,
|
||||
shouldShowSettingsHostScopePicker
|
||||
@@ -174,11 +175,12 @@ export function renderSettingsPage(
|
||||
{renderLinearSettingsSection(context, t)}
|
||||
{renderDesktopCapabilitySettingsSections(context, t)}
|
||||
{renderOrcaAccountSettingsSection(context, t)}
|
||||
{renderCloudApiSettingsSections(context, t)}
|
||||
{renderSetupGuideSettingsSection(context, t)}
|
||||
{renderGeneralSettingsSection(context, t)}
|
||||
{renderIntegrationsSettingsSection(context, t)}
|
||||
{renderMobileSettingsSection(context, t)}
|
||||
{renderOrcaCloudSettingsSections(context, t)}
|
||||
{renderCloudApiSettingsSections(context, t)}
|
||||
{renderAutomationsSettingsSection(context, t)}
|
||||
{renderArtifactsSettingsSection(context, t)}
|
||||
{renderShareSkillsSettingsSection(context, t)}
|
||||
|
||||
+11
-4
@@ -22,10 +22,17 @@ export function renderOrcaAccountSettingsSection(
|
||||
<SettingsSection
|
||||
id="orca-account"
|
||||
title={t('auto.components.settings.orcaAccount.title', 'Orca Account')}
|
||||
description={t(
|
||||
'auto.components.settings.orcaAccount.description',
|
||||
'Share work instantly and reach your desktop from Orca Mobile wherever you are.'
|
||||
)}
|
||||
description={
|
||||
model.orcaCloudApiAvailable
|
||||
? t(
|
||||
'settings.orcaAccount.descriptionWithCloud',
|
||||
'Sign-in, plan, team and Orca Cloud settings.'
|
||||
)
|
||||
: t(
|
||||
'auto.components.settings.orcaAccount.description',
|
||||
'Share work instantly and reach your desktop from Orca Mobile wherever you are.'
|
||||
)
|
||||
}
|
||||
searchEntries={navigation.getSectionSearchEntries('orca-account')}
|
||||
>
|
||||
{view.isSectionMounted('orca-account') ? <OrcaAccountSettingsPane /> : null}
|
||||
|
||||
+5
-2
@@ -9,13 +9,16 @@ import { CloudMcpSyncPanel, CloudMcpSyncSkeleton } from './CloudMcpSyncPanel'
|
||||
|
||||
/** Renders only for Orca Cloud workspaces; main answers null for every other host. */
|
||||
export function CloudMcpSyncSection({
|
||||
environmentId
|
||||
environmentId,
|
||||
defaultExpanded = false
|
||||
}: {
|
||||
environmentId: string
|
||||
/** Settings › Orca Cloud › MCP servers opens the list when there is only one workspace. */
|
||||
defaultExpanded?: boolean
|
||||
}): React.JSX.Element | null {
|
||||
const t = useTranslate()
|
||||
const status = useCloudMcpSyncStatus(environmentId, true)
|
||||
const [expanded, setExpanded] = useState(false)
|
||||
const [expanded, setExpanded] = useState(defaultExpanded)
|
||||
if (status === undefined) {
|
||||
return <CloudMcpSyncSkeleton />
|
||||
}
|
||||
|
||||
+22
-9
@@ -1,11 +1,11 @@
|
||||
import { AlertTriangle, Copy, Loader2, Square, Trash2, X } from 'lucide-react'
|
||||
import { AlertTriangle, ChevronRight, Copy, Loader2, Square, Trash2, X } from 'lucide-react'
|
||||
import type { EphemeralVmRuntimeRecord } from '../../../../../../shared/ephemeral-vm-runtimes'
|
||||
import { getEphemeralVmRecipeResultProjectRoot } from '../../../../../../shared/ephemeral-vm-recipes'
|
||||
import { useTranslate } from '@/i18n/use-translate'
|
||||
import { ephemeralVmCleanupErrorText } from '@/lib/ephemeral-vm-error-copy'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { Button } from '../../../ui/button'
|
||||
import { CloudMcpSyncSection } from '../../runtime-environments/cloud-mcp/CloudMcpSyncSection'
|
||||
import { useAppStore } from '@/store'
|
||||
|
||||
type EphemeralVmRuntimeRowProps = {
|
||||
runtime: EphemeralVmRuntimeRecord
|
||||
@@ -38,10 +38,12 @@ export function EphemeralVmRuntimeRow({
|
||||
const isProvisioning = runtime.status === 'provisioning'
|
||||
// Write-ahead rows never got a recipe result, so destroy only knows the instance id.
|
||||
const isUntracked = !runtime.recipeResult && !isProvisioning
|
||||
const cloudEnvironmentId =
|
||||
runtime.recipe?.provider === 'orca-cloud' && runtime.status === 'running'
|
||||
? (runtime.runtimeEnvironmentId ?? null)
|
||||
: null
|
||||
const openSettingsTarget = useAppStore((state) => state.openSettingsTarget)
|
||||
// MCP sync lives in Settings › Orca Cloud › MCP servers; a running cloud VM links there.
|
||||
const showMcpLink =
|
||||
runtime.recipe?.provider === 'orca-cloud' &&
|
||||
runtime.status === 'running' &&
|
||||
Boolean(runtime.runtimeEnvironmentId)
|
||||
return (
|
||||
<div>
|
||||
<div className="flex items-center gap-3 px-4 py-3">
|
||||
@@ -149,9 +151,20 @@ export function EphemeralVmRuntimeRow({
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{cloudEnvironmentId ? (
|
||||
<div className="px-4 pb-3 pl-9">
|
||||
<CloudMcpSyncSection environmentId={cloudEnvironmentId} />
|
||||
{showMcpLink ? (
|
||||
<div className="px-4 pb-3 pl-8">
|
||||
<Button
|
||||
type="button"
|
||||
variant="quiet"
|
||||
size="xs"
|
||||
onClick={() => openSettingsTarget({ pane: 'cloud-mcp', repoId: null })}
|
||||
aria-label={t('settings.orcaCloud.mcp.openFor', 'MCP servers for {{name}}', {
|
||||
name: runtime.workspaceName || t('settings.orcaCloud.mcp.unnamed', 'Cloud workspace')
|
||||
})}
|
||||
>
|
||||
{t('cloudMcpSync.title', 'MCP servers')}
|
||||
<ChevronRight className="size-3" />
|
||||
</Button>
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
@@ -76,11 +76,17 @@ function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPr
|
||||
)
|
||||
}
|
||||
|
||||
// Why a ring and not tabIndex -1: Radix makes every panel a tab stop (WAI-ARIA tabpanel), which
|
||||
// panels that start with text, not a control, need; so the stop must stay visible when reached.
|
||||
// Offset like Button's ring so panel text never sits against it.
|
||||
function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>) {
|
||||
return (
|
||||
<TabsPrimitive.Content
|
||||
data-slot="tabs-content"
|
||||
className={cn('flex-1 outline-none', className)}
|
||||
className={cn(
|
||||
'flex-1 rounded-md outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-solid focus-visible:outline-focus-ring',
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -299,7 +299,7 @@ export function VmBuildSheet({
|
||||
onOpenBilling: () => {
|
||||
const store = useAppStore.getState()
|
||||
store.openSettingsTarget({
|
||||
pane: 'orca-account',
|
||||
pane: 'cloud-billing',
|
||||
repoId: null,
|
||||
// "Turn on overage" / "Raise spend cap" land on the overage card itself; the
|
||||
// payment notice is at the top of the section already.
|
||||
|
||||
@@ -8,10 +8,6 @@ import { getIntegrationsPaneSearchEntries } from '@/components/settings/integrat
|
||||
import { getLinearAgentSkillPaneSearchEntries } from '@/components/settings/skills/linear/linear-agent-skill-search'
|
||||
import { getMobileSettingsPaneSearchEntries } from '@/components/settings/mobile/mobile-settings-search'
|
||||
import { getOrcaAccountSettingsSearchEntries } from '@/components/settings/accounts/orca/orca-account-settings-search'
|
||||
import {
|
||||
getCloudApiKeysSearchEntries,
|
||||
getCloudRoutinesSearchEntries
|
||||
} from '@/components/settings/cloud-api/cloud-api-search'
|
||||
import { OrcaLogoSettingsIcon } from '@/components/settings/page/orca-logo-settings-icon'
|
||||
import { getOrchestrationPaneSearchEntries } from '@/components/settings/orchestration/orchestration-search'
|
||||
import { getVoicePaneSearchEntries } from '@/components/settings/voice/voice-pane-search'
|
||||
@@ -23,19 +19,22 @@ import {
|
||||
Bot,
|
||||
CircleUserRound,
|
||||
KeyRound,
|
||||
KeySquare,
|
||||
Mic,
|
||||
MousePointerClick,
|
||||
Network,
|
||||
SlidersHorizontal,
|
||||
Smartphone,
|
||||
UserCog,
|
||||
Workflow
|
||||
UserCog
|
||||
} from 'lucide-react'
|
||||
import type { SettingsNavigationBuildOptions } from './settings-navigation-build-options'
|
||||
|
||||
export function buildCapabilitySettingsSections(
|
||||
{ isLocalWindowsHost, isWebClient, isLinearConnected }: SettingsNavigationBuildOptions,
|
||||
{
|
||||
isLocalWindowsHost,
|
||||
isWebClient,
|
||||
isLinearConnected,
|
||||
isOrcaCloudApiAvailable
|
||||
}: SettingsNavigationBuildOptions,
|
||||
t: Translate = translate
|
||||
): SettingsNavSection[] {
|
||||
const showDesktopOnlySettings = !isWebClient
|
||||
@@ -74,11 +73,16 @@ export function buildCapabilitySettingsSections(
|
||||
? [
|
||||
{
|
||||
id: 'agent-api-keys',
|
||||
title: t('auto.components.settings.agentApiKeys.title', 'Agent API Keys'),
|
||||
description: t(
|
||||
'auto.components.settings.agentApiKeys.description',
|
||||
'Optional. Give an agent an API key on every host, or only some, instead of signing in on each machine.'
|
||||
),
|
||||
title: t('settings.agentApiKeys.title', 'Agent API keys'),
|
||||
description: isOrcaCloudApiAvailable
|
||||
? t(
|
||||
'settings.agentApiKeys.descriptionCloudSecrets',
|
||||
'Keys here work on this computer and your SSH and paired hosts. To use a key in cloud workspaces, save it to your Orca account in Cloud secrets.'
|
||||
)
|
||||
: t(
|
||||
'auto.components.settings.agentApiKeys.description',
|
||||
'Optional. Give an agent an API key on every host, or only some, instead of signing in on each machine.'
|
||||
),
|
||||
icon: KeyRound,
|
||||
searchEntries: getAgentApiKeysSearchEntries(),
|
||||
group: 'capabilities' as const,
|
||||
@@ -155,42 +159,21 @@ export function buildSetupSettingsSections(
|
||||
{
|
||||
id: 'orca-account',
|
||||
title: t('auto.components.settings.orcaAccount.title', 'Orca Account'),
|
||||
description: t(
|
||||
'auto.components.settings.orcaAccount.description',
|
||||
'Share work instantly and reach your desktop from Orca Mobile wherever you are.'
|
||||
),
|
||||
description: isOrcaCloudApiAvailable
|
||||
? t(
|
||||
'settings.orcaAccount.descriptionWithCloud',
|
||||
'Sign-in, plan, team and Orca Cloud settings.'
|
||||
)
|
||||
: t(
|
||||
'auto.components.settings.orcaAccount.description',
|
||||
'Share work instantly and reach your desktop from Orca Mobile wherever you are.'
|
||||
),
|
||||
icon: CircleUserRound,
|
||||
searchEntries: getOrcaAccountSettingsSearchEntries(),
|
||||
group: 'setup'
|
||||
}
|
||||
]
|
||||
: []),
|
||||
...(showDesktopOnlySettings && isOrcaCloudApiAvailable
|
||||
? [
|
||||
{
|
||||
id: 'cloud-api-keys',
|
||||
title: t('auto.components.settings.cloudApi.sectionTitle', 'Orca API keys'),
|
||||
description: t(
|
||||
'auto.components.settings.cloudApi.sectionDescription',
|
||||
'For the Orca Cloud API, the orca CLI and MCP clients. Claude or Codex keys go in Cloud secrets.'
|
||||
),
|
||||
icon: KeySquare,
|
||||
searchEntries: getCloudApiKeysSearchEntries(),
|
||||
group: 'setup' as const
|
||||
},
|
||||
{
|
||||
id: 'cloud-routines',
|
||||
title: t('auto.components.settings.cloudRoutines.sectionTitle', 'Routines'),
|
||||
description: t(
|
||||
'auto.components.settings.cloudRoutines.sectionDescription',
|
||||
'Agents that run in Orca Cloud on a schedule, on GitHub events or from a webhook.'
|
||||
),
|
||||
icon: Workflow,
|
||||
searchEntries: getCloudRoutinesSearchEntries(),
|
||||
group: 'setup' as const
|
||||
}
|
||||
]
|
||||
: []),
|
||||
{
|
||||
id: 'setup-guide',
|
||||
title: t('auto.hooks.useSettingsNavigationMetadata.ded9e9032f', 'Onboarding checklist'),
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { buildSetupSettingsSections } from './settings-navigation-capability-sections'
|
||||
import type { SettingsNavigationBuildOptions } from './settings-navigation-build-options'
|
||||
import { buildOrcaCloudSettingsSections } from './settings-navigation-orca-cloud-sections'
|
||||
|
||||
function options(patch: Partial<SettingsNavigationBuildOptions>): SettingsNavigationBuildOptions {
|
||||
return {
|
||||
isMac: true,
|
||||
isWindows: false,
|
||||
isLocalWindowsHost: false,
|
||||
isWindowsTerminalHost: false,
|
||||
isWebClient: false,
|
||||
hostQueuesMessages: false,
|
||||
managedBrowserCreationEnabled: true,
|
||||
mobileEmulatorCreationEnabled: true,
|
||||
isDev: false,
|
||||
isLinearConnected: false,
|
||||
isOrcaCloudApiAvailable: true,
|
||||
repos: [],
|
||||
...patch
|
||||
}
|
||||
}
|
||||
|
||||
describe('Orca Cloud settings group', () => {
|
||||
it('holds every Orca Cloud pane, in order, when the build has a control plane', () => {
|
||||
const sections = buildOrcaCloudSettingsSections(options({}))
|
||||
expect(sections.map((section) => section.id)).toEqual([
|
||||
'cloud-billing',
|
||||
'cloud-team',
|
||||
'cloud-secrets',
|
||||
'cloud-environments',
|
||||
'cloud-mcp',
|
||||
'cloud-api-keys',
|
||||
'cloud-routines'
|
||||
])
|
||||
expect(new Set(sections.map((section) => section.group))).toEqual(new Set(['orca-cloud']))
|
||||
})
|
||||
|
||||
it('is absent without a control plane and on the web client', () => {
|
||||
expect(buildOrcaCloudSettingsSections(options({ isOrcaCloudApiAvailable: false }))).toEqual([])
|
||||
expect(buildOrcaCloudSettingsSections(options({ isWebClient: true }))).toEqual([])
|
||||
})
|
||||
|
||||
it('leaves Set Up with the account, and describes it by what it now holds', () => {
|
||||
const setup = buildSetupSettingsSections(options({}))
|
||||
expect(setup.some((section) => section.id.startsWith('cloud-'))).toBe(false)
|
||||
expect(setup.find((section) => section.id === 'orca-account')?.description).toBe(
|
||||
'Sign-in, plan, team and Orca Cloud settings.'
|
||||
)
|
||||
const local = buildSetupSettingsSections(options({ isOrcaCloudApiAvailable: false }))
|
||||
expect(local.find((section) => section.id === 'orca-account')?.description).not.toMatch(
|
||||
/Orca Cloud/
|
||||
)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,106 @@
|
||||
import {
|
||||
getCloudApiKeysSearchEntries,
|
||||
getCloudRoutinesSearchEntries
|
||||
} from '@/components/settings/cloud-api/cloud-api-search'
|
||||
import {
|
||||
getOrcaCloudBillingSearchEntries,
|
||||
getOrcaCloudEnvironmentsSearchEntries,
|
||||
getOrcaCloudMcpSearchEntries,
|
||||
getOrcaCloudSecretsSearchEntries,
|
||||
getOrcaCloudTeamSearchEntries
|
||||
} from '@/components/settings/orca-cloud/orca-cloud-settings-search'
|
||||
import { translate } from '@/i18n/i18n'
|
||||
import type { Translate } from '@/i18n/use-translate'
|
||||
import type { SettingsNavSection } from '@/lib/settings-navigation-types'
|
||||
import { Boxes, CreditCard, KeySquare, LockKeyhole, Plug, Users, Workflow } from 'lucide-react'
|
||||
import type { SettingsNavigationBuildOptions } from './settings-navigation-build-options'
|
||||
|
||||
/** One home for everything Orca Cloud; only builds with a control plane show it. */
|
||||
export function buildOrcaCloudSettingsSections(
|
||||
{ isWebClient, isOrcaCloudApiAvailable }: SettingsNavigationBuildOptions,
|
||||
t: Translate = translate
|
||||
): SettingsNavSection[] {
|
||||
if (isWebClient || !isOrcaCloudApiAvailable) {
|
||||
return []
|
||||
}
|
||||
const group = 'orca-cloud'
|
||||
return [
|
||||
{
|
||||
id: 'cloud-billing',
|
||||
title: t('auto.components.billing.title', 'Plan & billing'),
|
||||
description: t(
|
||||
'settings.orcaCloud.billing.description',
|
||||
'Your Orca Cloud plan, sandbox hours and payment.'
|
||||
),
|
||||
icon: CreditCard,
|
||||
searchEntries: getOrcaCloudBillingSearchEntries(),
|
||||
group
|
||||
},
|
||||
{
|
||||
id: 'cloud-team',
|
||||
title: t('auto.components.billing.team.title', 'Team'),
|
||||
description: t(
|
||||
'auto.components.billing.team.createHint',
|
||||
'Share one Orca Cloud plan with your teammates.'
|
||||
),
|
||||
icon: Users,
|
||||
searchEntries: getOrcaCloudTeamSearchEntries(),
|
||||
group
|
||||
},
|
||||
{
|
||||
id: 'cloud-secrets',
|
||||
title: t('cloudSecrets.title', 'Cloud secrets'),
|
||||
description: t(
|
||||
'cloudSecrets.description',
|
||||
'API keys you add to Orca are never written to the sandbox. Agents and terminals get them as environment variables.'
|
||||
),
|
||||
icon: LockKeyhole,
|
||||
searchEntries: getOrcaCloudSecretsSearchEntries(),
|
||||
group
|
||||
},
|
||||
{
|
||||
id: 'cloud-environments',
|
||||
title: t('settings.orcaCloud.environments.title', 'Cloud environments'),
|
||||
description: t(
|
||||
'cloudEnvironment.descriptionTeam',
|
||||
'Your team’s repos and install script, built once into a snapshot so every cloud workspace starts with dependencies installed.'
|
||||
),
|
||||
icon: Boxes,
|
||||
searchEntries: getOrcaCloudEnvironmentsSearchEntries(),
|
||||
group
|
||||
},
|
||||
{
|
||||
id: 'cloud-mcp',
|
||||
title: t('cloudMcpSync.title', 'MCP servers'),
|
||||
description: t(
|
||||
'settings.orcaCloud.mcp.description',
|
||||
'MCP servers from Claude Code and Codex on this computer, synced to your cloud workspaces.'
|
||||
),
|
||||
icon: Plug,
|
||||
searchEntries: getOrcaCloudMcpSearchEntries(),
|
||||
group
|
||||
},
|
||||
{
|
||||
id: 'cloud-api-keys',
|
||||
title: t('auto.components.settings.cloudApi.sectionTitle', 'Orca API keys'),
|
||||
description: t(
|
||||
'auto.components.settings.cloudApi.sectionDescription',
|
||||
'For the Orca Cloud API, the orca CLI and MCP clients. Claude or Codex keys go in Cloud secrets.'
|
||||
),
|
||||
icon: KeySquare,
|
||||
searchEntries: getCloudApiKeysSearchEntries(),
|
||||
group
|
||||
},
|
||||
{
|
||||
id: 'cloud-routines',
|
||||
title: t('auto.components.settings.cloudRoutines.sectionTitle', 'Routines'),
|
||||
description: t(
|
||||
'auto.components.settings.cloudRoutines.sectionDescription',
|
||||
'Agents that run in Orca Cloud on a schedule, on GitHub events or from a webhook.'
|
||||
),
|
||||
icon: Workflow,
|
||||
searchEntries: getCloudRoutinesSearchEntries(),
|
||||
group
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -31,6 +31,7 @@ import {
|
||||
buildSetupSettingsSections
|
||||
} from './settings-navigation-capability-sections'
|
||||
import type { SettingsNavigationBuildOptions } from './settings-navigation-build-options'
|
||||
import { buildOrcaCloudSettingsSections } from './settings-navigation-orca-cloud-sections'
|
||||
import { buildInterfaceSettingsSections } from './settings-navigation-interface-sections'
|
||||
import { buildRemoteSettingsSections } from './settings-navigation-remote-sections'
|
||||
import { buildWorkflowSettingsSections } from './settings-navigation-workflow-sections'
|
||||
@@ -112,6 +113,7 @@ export function buildSettingsNavigationMetadata(
|
||||
return [
|
||||
...buildCapabilitySettingsSections(options, t),
|
||||
...buildSetupSettingsSections(options, t),
|
||||
...buildOrcaCloudSettingsSections(options, t),
|
||||
...buildWorkflowSettingsSections(options, terminalPaneSearchEntries, t),
|
||||
...buildInterfaceSettingsSections(options, t),
|
||||
...buildRemoteSettingsSections(options, runtimeEnvironmentsSearchEntry, reposById, t)
|
||||
|
||||
@@ -1342,6 +1342,62 @@
|
||||
"settings": "Settings",
|
||||
"label": "Settings breadcrumb",
|
||||
"close": "Close settings"
|
||||
},
|
||||
"agentApiKeys": {
|
||||
"descriptionCloudSecretsLink": "Keys here work on this computer and your SSH and paired hosts. To use a key in cloud workspaces, save it to your Orca account in <secrets>Cloud secrets</secrets>.",
|
||||
"searchTitle": "Agent API keys",
|
||||
"title": "Agent API keys",
|
||||
"descriptionCloudSecrets": "Keys here work on this computer and your SSH and paired hosts. To use a key in cloud workspaces, save it to your Orca account in Cloud secrets."
|
||||
},
|
||||
"orcaCloud": {
|
||||
"mcp": {
|
||||
"loadFailed": "Couldn’t list your cloud workspaces",
|
||||
"emptyTitle": "No cloud workspace is running",
|
||||
"emptyBody": "MCP servers sync to a cloud workspace while it runs. Start or wake one to choose which servers it gets.",
|
||||
"unnamed": "Cloud workspace",
|
||||
"workspaceLabel": "MCP servers in {{name}}",
|
||||
"searchDescription": "Choose which MCP servers from this computer sync to your cloud workspaces.",
|
||||
"keywordMcp": "mcp",
|
||||
"keywordSync": "sync",
|
||||
"keywordCloud": "cloud",
|
||||
"openFor": "MCP servers for {{name}}",
|
||||
"description": "MCP servers from Claude Code and Codex on this computer, synced to your cloud workspaces."
|
||||
},
|
||||
"environments": {
|
||||
"title": "Cloud environments",
|
||||
"unavailable": "Cloud environments aren’t available for this account yet.",
|
||||
"searchDescription": "Repositories and install script built into a snapshot, and waking cloud workspaces before you open them.",
|
||||
"keywordSnapshot": "snapshot",
|
||||
"keywordInstall": "install script",
|
||||
"keywordWake": "wake",
|
||||
"keywordSandbox": "sandbox"
|
||||
},
|
||||
"signedOut": {
|
||||
"reconnectTitle": "Sign in again",
|
||||
"body": "Orca Cloud settings belong to your Orca account. Sign in to manage them."
|
||||
},
|
||||
"team": {
|
||||
"unavailable": "Teams aren’t available for this account yet.",
|
||||
"searchDescription": "Members, invites and seats for your Orca Cloud team.",
|
||||
"keywordMembers": "members",
|
||||
"keywordInvite": "invite",
|
||||
"keywordSeats": "seats"
|
||||
},
|
||||
"billing": {
|
||||
"searchDescription": "Your Orca Cloud plan, sandbox hours, overage and payment.",
|
||||
"keywordPlan": "plan",
|
||||
"keywordBilling": "billing",
|
||||
"keywordInvoice": "invoice",
|
||||
"keywordUsage": "usage",
|
||||
"keywordOverage": "overage",
|
||||
"description": "Your Orca Cloud plan, sandbox hours and payment."
|
||||
}
|
||||
},
|
||||
"groups": {
|
||||
"orcaCloud": "Orca Cloud"
|
||||
},
|
||||
"orcaAccount": {
|
||||
"descriptionWithCloud": "Sign-in, plan, team and Orca Cloud settings."
|
||||
}
|
||||
},
|
||||
"menu": {
|
||||
@@ -14229,14 +14285,12 @@
|
||||
"addKey": "Add key",
|
||||
"anotherAgent": "Add a key for another agent",
|
||||
"search": {
|
||||
"title": "Agent API Keys",
|
||||
"description": "Give agents an API key on every host or only some, without signing in on each machine.",
|
||||
"apiKey": "api key",
|
||||
"secret": "secret",
|
||||
"env": "environment",
|
||||
"bedrock": "bedrock"
|
||||
},
|
||||
"title": "Agent API Keys",
|
||||
"description": "Optional. Give an agent an API key on every host, or only some, instead of signing in on each machine."
|
||||
},
|
||||
"ports": {
|
||||
@@ -20752,7 +20806,8 @@
|
||||
"trialOneTime": "Trial hours are a one-time allowance and don’t reset. When they’re used up, choose a plan to keep going. No card needed until then.",
|
||||
"trialProduct": "Orca Cloud",
|
||||
"trialRowChoosePlan": "{{trial}}. Choose plan",
|
||||
"trialUsedUpTitle": "Your trial is used up"
|
||||
"trialUsedUpTitle": "Your trial is used up",
|
||||
"unconfigured": "Billing isn’t available in this build of Orca."
|
||||
},
|
||||
"ports": {
|
||||
"RuntimePortAutoForwarder": {
|
||||
@@ -26414,7 +26469,6 @@
|
||||
"memberAsk": "Ask an owner or admin to set it up."
|
||||
},
|
||||
"loading": "Loading environment…",
|
||||
"title": "Cloud environment",
|
||||
"descriptionTeam": "Your team’s repos and install script, built once into a snapshot so every cloud workspace starts with dependencies installed.",
|
||||
"you": "You",
|
||||
"loadFailed": "Couldn’t load the cloud environment",
|
||||
@@ -26736,7 +26790,6 @@
|
||||
"openaiKey": "OpenAI API key",
|
||||
"gatewayKey": "AI Gateway API key",
|
||||
"claudeModel": "Claude model (optional)",
|
||||
"gatewayModelHint": "Free gateway accounts can’t use anthropic/* models; try moonshotai/kimi-k2.",
|
||||
"codexModel": "Codex model (optional)",
|
||||
"gatewayCodexHint": "A gateway model id, such as openai/gpt-5.",
|
||||
"baseUrl": "Base URL",
|
||||
@@ -26782,7 +26835,6 @@
|
||||
"composerHint": "Claude and Codex need access in Orca Cloud. Add it now, or sign in once the workspace starts.",
|
||||
"later": "Later",
|
||||
"skippedTitle": "Agent setup skipped",
|
||||
"skippedDetail": "Set it up any time from Settings › Orca Account › Cloud secrets.",
|
||||
"signInPending": "Agent sign-in",
|
||||
"signInPendingDetail": "Opens when the sandbox is ready. Keep Orca open until then.",
|
||||
"signInCancelled": "Sign-in cancelled",
|
||||
@@ -26808,7 +26860,9 @@
|
||||
"failed": "Couldn’t save {{name}}. Nothing was changed.",
|
||||
"rowSaved": "{{agent}}: your API key ••••{{hint}}",
|
||||
"scopeNote": "Not used in Orca Cloud. Save a key to your Orca account to use it in cloud workspaces."
|
||||
}
|
||||
},
|
||||
"gatewayModelDefaultHint": "Leave empty to use the gateway’s default model.",
|
||||
"skippedDetailCloudGroup": "Set it up any time from Settings → Orca Cloud → Cloud secrets."
|
||||
},
|
||||
"cloudSecrets": {
|
||||
"editor": {
|
||||
@@ -26923,7 +26977,9 @@
|
||||
"lineName": "line {{line}}",
|
||||
"skippedLine": "Line {{line}} · skipped",
|
||||
"renamed": "Renamed from {{name}}",
|
||||
"normalized": "Spaces and dashes become underscores"
|
||||
"normalized": "Spaces and dashes become underscores",
|
||||
"valueLabel": "Value for {{name}}",
|
||||
"valueLabelLine": "Value, line {{line}}"
|
||||
},
|
||||
"value": {
|
||||
"hide": "Hide value",
|
||||
@@ -26960,7 +27016,9 @@
|
||||
"vm": {
|
||||
"badge": "Stored on workspace",
|
||||
"warning": "Orca can’t swap this key at the network edge, so cloud workspaces get the real value. Anything running in the workspace can read it."
|
||||
}
|
||||
},
|
||||
"loading": "Loading cloud secrets…",
|
||||
"unavailable": "Cloud secrets aren’t available for this account yet."
|
||||
},
|
||||
"cloudMcpSync": {
|
||||
"appliesEverywhere": "Applies to every cloud workspace",
|
||||
|
||||
@@ -46,6 +46,11 @@ const SETTINGS_NAV_TARGETS = [
|
||||
'share-skills',
|
||||
'automations',
|
||||
'orca-account',
|
||||
'cloud-billing',
|
||||
'cloud-team',
|
||||
'cloud-secrets',
|
||||
'cloud-environments',
|
||||
'cloud-mcp',
|
||||
'cloud-api-keys',
|
||||
'cloud-routines',
|
||||
'linear',
|
||||
|
||||
Reference in New Issue
Block a user