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
chore(components): update dashboard and settings panels
Steven Enamakelb01b7a9558da
diff --git a/app/src/components/dashboard/CostDashboardPanel.tsx b/app/src/components/dashboard/CostDashboardPanel.tsxindex 4b761c2274..1927659acc 100644--- a/app/src/components/dashboard/CostDashboardPanel.tsx+++ b/app/src/components/dashboard/CostDashboardPanel.tsx@@ -98,7 +98,11 @@ const CostDashboardPanel = ({ embedded = false }: CostDashboardPanelProps) => {{data && !data.enabled && (// A resolved config state, not a response to a user action — opt out// of the assertive default so it doesn't talk over the page it's on.- <Alert variant="warning" density="compact" role={undefined} data-testid="cost-dashboard-disabled">+ <Alert+ variant="warning"+ density="compact"+ role={undefined}+ data-testid="cost-dashboard-disabled"><AlertDescription>{t('settings.costDashboard.disabledHint')}</AlertDescription></Alert>)}diff --git a/app/src/components/intelligence/MemoryTreeStatusPanel.tsx b/app/src/components/intelligence/MemoryTreeStatusPanel.tsxindex 91b06dae5d..f8c2a4cef8 100644--- a/app/src/components/intelligence/MemoryTreeStatusPanel.tsx+++ b/app/src/components/intelligence/MemoryTreeStatusPanel.tsx@@ -271,7 +271,9 @@ export function MemoryTreeStatusPanel({ onToast }: MemoryTreeStatusPanelProps) {<div className="grid grid-cols-2 sm:grid-cols-4 gap-3" data-testid="memory-tree-status-tiles">{/* Status tile ── color-coded pill */}- <Card divided={false} className="bg-surface-muted p-3 transition-colors hover:bg-surface-hover">+ <Card+ divided={false}+ className="bg-surface-muted p-3 transition-colors hover:bg-surface-hover"><div className={labelClass}>{t('memoryTree.status.statusTile')}</div>{loading || !status ? (<div className={skeletonClass} />@@ -311,7 +313,9 @@ export function MemoryTreeStatusPanel({ onToast }: MemoryTreeStatusPanelProps) {</Card>{/* Last-sync tile */}- <Card divided={false} className="bg-surface-muted p-3 transition-colors hover:bg-surface-hover">+ <Card+ divided={false}+ className="bg-surface-muted p-3 transition-colors hover:bg-surface-hover"><div className={labelClass}>{t('memoryTree.status.lastSyncTile')}</div>{loading || !status ? (<div className={skeletonClass} />@@ -323,7 +327,9 @@ export function MemoryTreeStatusPanel({ onToast }: MemoryTreeStatusPanelProps) {</Card>{/* Total chunks tile */}- <Card divided={false} className="bg-surface-muted p-3 transition-colors hover:bg-surface-hover">+ <Card+ divided={false}+ className="bg-surface-muted p-3 transition-colors hover:bg-surface-hover"><div className={labelClass}>{t('memoryTree.status.totalChunksTile')}</div>{loading || !status ? (<div className={skeletonClass} />@@ -335,7 +341,9 @@ export function MemoryTreeStatusPanel({ onToast }: MemoryTreeStatusPanelProps) {</Card>{/* Wiki size tile */}- <Card divided={false} className="bg-surface-muted p-3 transition-colors hover:bg-surface-hover">+ <Card+ divided={false}+ className="bg-surface-muted p-3 transition-colors hover:bg-surface-hover"><div className={labelClass}>{t('memoryTree.status.wikiSizeTile')}</div>{loading || !status ? (<div className={skeletonClass} />diff --git a/app/src/components/settings/panels/PerMascotVoiceRow.tsx b/app/src/components/settings/panels/PerMascotVoiceRow.tsxindex ff5748ef28..8bb5465050 100644--- a/app/src/components/settings/panels/PerMascotVoiceRow.tsx+++ b/app/src/components/settings/panels/PerMascotVoiceRow.tsx@@ -158,87 +158,88 @@ const PerMascotVoiceRow = ({ mascotId, label, testIdPrefix }: PerMascotVoiceRowP{label}</span>- {/* Preset dropdown — mirrors the primary control's label + select combo */}- <label className="block space-y-1">- <span className="sr-only">{t('settings.mascot.voice.presetHeading')}</span>- <SettingsSelect- aria-label={`${label} — ${t('settings.mascot.voice.presetHeading')}`}- data-testid={`${testIdPrefix}-select`}- value={isCustomVoice ? '__custom__' : currentVoiceId}- onChange={e => onPresetChange(e.target.value)}- className="w-full">- {visiblePresets.map(v => (- <option key={v.id} value={v.id}>- {v.label}- </option>- ))}- <option value="__custom__">{t('settings.mascot.voice.customOption')}</option>- </SettingsSelect>- </label>-- {isCustomVoice && (+ {/* Preset dropdown — mirrors the primary control's label + select combo */}<label className="block space-y-1">- <span className="text-xs font-medium text-content-muted dark:text-content-secondary">- {t('settings.mascot.voice.customHeading')}- </span>- <div className="flex gap-2">- <SettingsTextField- aria-label={`${label} — ${t('settings.mascot.voice.customHeading')}`}- data-testid={`${testIdPrefix}-input`}- value={voiceDraft}- placeholder={t('settings.mascot.voice.customPlaceholder')}- onChange={e => setVoiceDraft(e.target.value)}- className="flex-1"- />- <Button- type="button"- variant="primary"- size="xs"- data-testid={`${testIdPrefix}-save-paste`}- onClick={onSavePaste}- disabled={voiceDraft.trim() === (overrideVoiceId ?? '').trim()}>- {t('common.save')}- </Button>- </div>+ <span className="sr-only">{t('settings.mascot.voice.presetHeading')}</span>+ <SettingsSelect+ aria-label={`${label} — ${t('settings.mascot.voice.presetHeading')}`}+ data-testid={`${testIdPrefix}-select`}+ value={isCustomVoice ? '__custom__' : currentVoiceId}+ onChange={e => onPresetChange(e.target.value)}+ className="w-full">+ {visiblePresets.map(v => (+ <option key={v.id} value={v.id}>+ {v.label}+ </option>+ ))}+ <option value="__custom__">{t('settings.mascot.voice.customOption')}</option>+ </SettingsSelect></label>- )}-- <div className="flex flex-wrap items-center gap-2">- <Button- type="button"- variant="primary"- size="xs"- data-testid={`${testIdPrefix}-preview`}- onClick={() => void onVoicePreview()}- disabled={isPreviewingVoice}- className="bg-emerald-600 hover:bg-emerald-700 dark:bg-emerald-600 dark:hover:bg-emerald-500">- {isPreviewingVoice- ? t('settings.mascot.voice.previewing')- : t('settings.mascot.voice.preview')}- </Button>- <Button- type="button"- variant="secondary"- size="xs"- data-testid={`${testIdPrefix}-reset`}- onClick={onVoiceReset}- disabled={overrideVoiceId == null}>- {t('settings.mascot.voice.reset')}- </Button>- <span- data-testid={`${testIdPrefix}-current`}- className="ml-1 text-[11px] text-content-muted truncate max-w-[18rem]"- title={currentVoiceId}>- {t('settings.mascot.voice.current')}: <code className="font-mono">{currentVoiceId}</code>- </span>- </div>- {voicePreviewError && (- <Alert variant="warning" density="compact" data-testid={`${testIdPrefix}-preview-error`}>- <AlertDescription>- {t('settings.mascot.voice.previewError')}: {voicePreviewError}- </AlertDescription>- </Alert>+ {isCustomVoice && (+ <label className="block space-y-1">+ <span className="text-xs font-medium text-content-muted dark:text-content-secondary">+ {t('settings.mascot.voice.customHeading')}+ </span>+ <div className="flex gap-2">+ <SettingsTextField+ aria-label={`${label} — ${t('settings.mascot.voice.customHeading')}`}+ data-testid={`${testIdPrefix}-input`}+ value={voiceDraft}+ placeholder={t('settings.mascot.voice.customPlaceholder')}+ onChange={e => setVoiceDraft(e.target.value)}+ className="flex-1"+ />+ <Button+ type="button"+ variant="primary"+ size="xs"+ data-testid={`${testIdPrefix}-save-paste`}+ onClick={onSavePaste}+ disabled={voiceDraft.trim() === (overrideVoiceId ?? '').trim()}>+ {t('common.save')}+ </Button>+ </div>+ </label>+ )}++ <div className="flex flex-wrap items-center gap-2">+ <Button+ type="button"+ variant="primary"+ size="xs"+ data-testid={`${testIdPrefix}-preview`}+ onClick={() => void onVoicePreview()}+ disabled={isPreviewingVoice}+ className="bg-emerald-600 hover:bg-emerald-700 dark:bg-emerald-600 dark:hover:bg-emerald-500">+ {isPreviewingVoice+ ? t('settings.mascot.voice.previewing')+ : t('settings.mascot.voice.preview')}+ </Button>+ <Button+ type="button"+ variant="secondary"+ size="xs"+ data-testid={`${testIdPrefix}-reset`}+ onClick={onVoiceReset}+ disabled={overrideVoiceId == null}>+ {t('settings.mascot.voice.reset')}+ </Button>+ <span+ data-testid={`${testIdPrefix}-current`}+ className="ml-1 text-[11px] text-content-muted truncate max-w-[18rem]"+ title={currentVoiceId}>+ {t('settings.mascot.voice.current')}:{' '}+ <code className="font-mono">{currentVoiceId}</code>+ </span>+ </div>++ {voicePreviewError && (+ <Alert variant="warning" density="compact" data-testid={`${testIdPrefix}-preview-error`}>+ <AlertDescription>+ {t('settings.mascot.voice.previewError')}: {voicePreviewError}+ </AlertDescription>+ </Alert>)}</div></Card>