fix(cloud): one Sign in on Agent accounts when signed out; muted note under Sign-ins by host

This commit is contained in:
Neil
2026-11-10 16:41:50 -08:00
parent b5cce76807
commit aaea2c6c33
4 changed files with 9 additions and 36 deletions
@@ -71,8 +71,7 @@ const BASE = {
signedOutOfOrca: false,
summary: '',
onOpenRow: noop,
onAction: noop,
onSignIn: noop
onAction: noop
}
const OVERVIEW_PROBES = {
@@ -4,7 +4,6 @@ import React, { useState } from 'react'
import { useTranslate, type Translate } from '@/i18n/use-translate'
import { Badge } from '@/components/ui/badge'
import { Button } from '@/components/ui/button'
import { InlineError } from '@/components/ui/inline-error'
import { Skeleton } from '@/components/ui/skeleton'
import { cn } from '@/lib/utils'
import {
@@ -27,7 +26,6 @@ export type AgentAccountsOverviewProps = {
summary: string
onOpenRow: (row: OverviewRow) => void
onAction: (row: OverviewRow, action: OverviewAction) => void
onSignIn: () => void
}
function actionLabel(action: OverviewAction, t: Translate): string {
@@ -125,6 +123,12 @@ export function AgentAccountsOverview(props: AgentAccountsOverviewProps): React.
'Where Claude and Codex are signed in, and which key they use. Orca never copies a sign-in between machines.'
)}
</p>
{/* One Sign in button lives in the Orca Cloud card above; this is only a muted note. */}
{props.signedOutOfOrca ? (
<p className="text-xs text-muted-foreground">
{t('agentAccountsOverview.signedOutNote', 'Sign in to Orca to see Orca Cloud here.')}
</p>
) : null}
</div>
<SettingsSegmentedControl
size="sm"
@@ -142,25 +146,6 @@ export function AgentAccountsOverview(props: AgentAccountsOverviewProps): React.
]}
/>
</div>
{props.signedOutOfOrca ? (
<InlineError
tone="neutral"
density="compact"
title={t(
'agentAccountsOverview.signedOut',
'Sign in to Orca to see cloud workspaces here.'
)}
detail={t(
'agentAccountsOverview.signedOutDetail',
'Hosts on this computer’s list are shown below.'
)}
action={
<Button type="button" variant="outline" size="xs" onClick={props.onSignIn}>
{t('agentAccountsOverview.signIn', 'Sign in')}
</Button>
}
/>
) : null}
<div className="overflow-hidden rounded-xl border border-border bg-card/50 shadow-xs">
{props.loading ? (
<div aria-busy="true" className="flex flex-col gap-3 p-4">
@@ -3,10 +3,7 @@
import React, { useEffect, useMemo, useState } from 'react'
import { useAppStore } from '@/store'
import { useTranslate } from '@/i18n/use-translate'
import {
reloadOrcaCloudAgentAccounts,
useOrcaCloudAgentAccounts
} from '@/lib/orca-cloud/orca-cloud-agent-accounts-store'
import { useOrcaCloudAgentAccounts } from '@/lib/orca-cloud/orca-cloud-agent-accounts-store'
import { openAgentHostPanel } from '../../../agent-host-panel/agent-host-panel-store'
import { ORCA_CLOUD_ACCOUNTS_SECTION_ID } from '../OrcaCloudAccounts'
import {
@@ -114,12 +111,6 @@ export function AgentAccountsOverviewSection(): React.JSX.Element {
summary={summary}
onOpenRow={(row) => open(row)}
onAction={onAction}
onSignIn={() =>
void useAppStore
.getState()
.connectCurrentOrcaProfile()
.then(() => reloadOrcaCloudAgentAccounts())
}
/>
)
}
+1 -3
View File
@@ -27939,9 +27939,7 @@
"filter": "Show",
"all": "All",
"attention": "Needs attention · {{count}}",
"signedOut": "Sign in to Orca to see cloud workspaces here.",
"signedOutDetail": "Hosts on this computer’s list are shown below.",
"signIn": "Sign in",
"signedOutNote": "Sign in to Orca to see Orca Cloud here.",
"host": "Host",
"actions": "Actions",
"openRow": "Open agent accounts for {{host}}",