diff --git a/src/renderer/src/components/settings/GeneralPane.tsx b/src/renderer/src/components/settings/GeneralPane.tsx index 23674809e..772974af8 100644 --- a/src/renderer/src/components/settings/GeneralPane.tsx +++ b/src/renderer/src/components/settings/GeneralPane.tsx @@ -3,6 +3,7 @@ meaningful abstraction boundary. */ import { useEffect, useState } from 'react' import type { CodexRateLimitAccountsState, GlobalSettings } from '../../../../shared/types' +import { Badge } from '../ui/badge' import { Button } from '../ui/button' import { Input } from '../ui/input' import { Label } from '../ui/label' @@ -540,17 +541,17 @@ export function GeneralPane({ settings, updateSettings }: GeneralPaneProps): Rea @@ -571,25 +572,28 @@ export function GeneralPane({ settings, updateSettings }: GeneralPaneProps): Rea ) } disabled={codexAction !== 'idle'} - className={`flex min-h-[58px] w-full items-center justify-between gap-3 rounded-md border px-3 py-3 text-left transition-colors ${ + className={`flex w-full items-center justify-between gap-3 rounded-md border px-3 py-2.5 text-left transition-colors ${ codexAccounts.activeAccountId === null - ? 'border-foreground/25 bg-accent/20' - : 'border-border/70 hover:bg-accent/10' + ? 'border-foreground/20 bg-accent/15' + : 'border-border/70 hover:border-border hover:bg-accent/8' } disabled:cursor-default disabled:opacity-100`} > -
- System default - +
+
+ System default + {codexAccounts.activeAccountId === null ? ( + + Active + + ) : null} +
+ Use your current system Codex login.
-
- {codexAccounts.activeAccountId === null ? ( - - Active - - ) : null} -
{codexAccounts.accounts.map((account) => { const isActive = codexAccounts.activeAccountId === account.id @@ -607,34 +611,45 @@ export function GeneralPane({ settings, updateSettings }: GeneralPaneProps): Rea ) } disabled={isBusy} - className={`flex min-h-[58px] w-full items-center justify-between gap-3 rounded-md border px-3 py-3 text-left transition-colors ${ + className={`flex w-full items-center justify-between gap-3 rounded-md border px-3 py-2.5 text-left transition-colors ${ isActive - ? 'border-foreground/25 bg-accent/20' - : 'border-border/70 hover:bg-accent/10' + ? 'border-foreground/20 bg-accent/15' + : 'border-border/70 hover:border-border hover:bg-accent/8' }`} >
-
- {account.email} - {account.workspaceLabel ? ( - - {account.workspaceLabel} +
+
+ {account.email} + {isActive ? ( + + Active + + ) : null} +
+
+ {account.workspaceLabel ? ( + {account.workspaceLabel} + ) : null} + {account.workspaceLabel ? ( + • + ) : null} + + {formatAccountTimestamp(account.lastAuthenticatedAt)} - ) : null} - - {formatAccountTimestamp(account.lastAuthenticatedAt)} - - {isActive ? ( - - Active - - ) : null} +
-
+
+ {/* Why: selecting an account is the primary action in this row. + Keeping maintenance actions visually lighter prevents re-auth/remove + controls from overpowering the selection affordance in a dense list. */}