The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(settings): correct account panel to show saved email after update
Steven Enamakelc0b1d295f478
diff --git a/app/src/components/settings/panels/AccountPanel.tsx b/app/src/components/settings/panels/AccountPanel.tsxindex aebefdea80..58ad9468ca 100644--- a/app/src/components/settings/panels/AccountPanel.tsx+++ b/app/src/components/settings/panels/AccountPanel.tsx@@ -7,7 +7,7 @@ import type { PlanTier } from '../../../types/api';import { BILLING_DASHBOARD_URL } from '../../../utils/links';import { openUrl } from '../../../utils/openUrl';import LanguageSelect from '../../LanguageSelect';-import { Badge, Button, Card, Field, Progress } from '../../ui';+import { Badge, Button, Card, Field, Progress, TileGrid } from '../../ui';import SettingsPanel from '../layout/SettingsPanel';import LogoutAndClearActions from '../LogoutAndClearActions';import { PLANS } from './billingHelpers';@@ -41,68 +41,76 @@ const AccountPanel = () => {description={t('pages.settings.accountSection.description')}>{/* ── Profile & plan: who is signed in, what they're on, how much isleft this cycle, and the one place to manage billing. ─────────── */}- {user && (- <Card data-testid="account-profile">- <div className="flex items-center justify-between gap-4 p-4">- <div className="min-w-0">- {name && <div className="truncate text-base font-semibold text-content">{name}</div>}- <div className="mt-0.5 text-xs text-content-muted">- {t('settings.account.signedIn')}+ {/* Profile and Preferences are short cards, so they share a row. */}+ <TileGrid columns={2}>+ {user && (+ <Card data-testid="account-profile" className="h-full">+ <div className="flex items-center justify-between gap-4 p-4">+ <div className="min-w-0">+ {name && (+ <div className="truncate text-base font-semibold text-content">{name}</div>+ )}+ <div className="mt-0.5 text-xs text-content-muted">+ {t('settings.account.signedIn')}+ </div></div>+ {tier && (+ <Badge variant={tier === 'FREE' ? 'neutral' : 'primary'} data-testid="account-plan">+ {planName(tier)}+ </Badge>+ )}</div>- {tier && (- <Badge variant={tier === 'FREE' ? 'neutral' : 'primary'} data-testid="account-plan">- {planName(tier)}- </Badge>- )}- </div>- {teamUsage && teamUsage.cycleBudgetUsd > 0 && (- <div className="space-y-2 px-4 py-3" data-testid="account-usage">- <div className="flex items-baseline justify-between gap-3 text-xs">- <span className="font-medium text-content">- {t('settings.account.usageThisCycle')}- </span>- <span className="tabular-nums text-content-muted">- {t('settings.account.usageOf')- .replace('{spent}', usd(teamUsage.cycleSpentUsd))- .replace('{budget}', usd(teamUsage.cycleBudgetUsd))}- </span>- </div>- <Progress value={Math.round(usagePct * 100)} />- {resetsOn && !Number.isNaN(resetsOn.getTime()) && (- <div className="text-[11px] text-content-faint">- {t('settings.account.resetsOn').replace('{date}', resetsOn.toLocaleDateString())}+ {teamUsage && teamUsage.cycleBudgetUsd > 0 && (+ <div className="space-y-2 px-4 py-3" data-testid="account-usage">+ <div className="flex items-baseline justify-between gap-3 text-xs">+ <span className="font-medium text-content">+ {t('settings.account.usageThisCycle')}+ </span>+ <span className="tabular-nums text-content-muted">+ {t('settings.account.usageOf')+ .replace('{spent}', usd(teamUsage.cycleSpentUsd))+ .replace('{budget}', usd(teamUsage.cycleBudgetUsd))}+ </span></div>- )}- </div>- )}+ <Progress value={Math.round(usagePct * 100)} />+ {resetsOn && !Number.isNaN(resetsOn.getTime()) && (+ <div className="text-[11px] text-content-faint">+ {t('settings.account.resetsOn').replace(+ '{date}',+ resetsOn.toLocaleDateString()+ )}+ </div>+ )}+ </div>+ )}+ <Field+ label={t('settings.account.manageBilling')}+ description={t('settings.account.manageBillingDesc')}+ control={+ <Button+ variant="secondary"+ size="sm"+ trailingIcon={<ExternalLink className="h-3.5 w-3.5" aria-hidden />}+ onClick={() => void openUrl(`${BILLING_DASHBOARD_URL}?tab=billing`)}+ data-testid="account-open-billing">+ {t('settings.account.openDashboard')}+ </Button>+ }+ />+ </Card>+ )}++ {/* ── Preferences ─────────────────────────────────────────────────── */}+ <Card title={t('settings.account.preferences')} className="h-full"><Field- label={t('settings.account.manageBilling')}- description={t('settings.account.manageBillingDesc')}- control={- <Button- variant="secondary"- size="sm"- trailingIcon={<ExternalLink className="h-3.5 w-3.5" aria-hidden />}- onClick={() => void openUrl(`${BILLING_DASHBOARD_URL}?tab=billing`)}- data-testid="account-open-billing">- {t('settings.account.openDashboard')}- </Button>- }+ label={t('settings.language')}+ description={t('settings.languageDesc')}+ control={<LanguageSelect ariaLabel={t('settings.language')} />}/></Card>- )}-- {/* ── Preferences ─────────────────────────────────────────────────── */}- <Card title={t('settings.account.preferences')}>- <Field- label={t('settings.language')}- description={t('settings.languageDesc')}- control={<LanguageSelect ariaLabel={t('settings.language')} />}- />- </Card>+ </TileGrid>{/* ── Session: log out, or wipe this device ───────────────────────── */}<LogoutAndClearActions />