Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(settings): correct provider list overflow in settings panels

Steven Enamakeldc1906e8ee1f
diff --git a/app/src/components/dashboard/CostSummary.tsx b/app/src/components/dashboard/CostSummary.tsx
index b1a963910b..cba12acfe4 100644
--- a/app/src/components/dashboard/CostSummary.tsx
+++ b/app/src/components/dashboard/CostSummary.tsx
@@ -1,4 +1,4 @@
-import type { ReactNode } from 'react';
+import { CalendarDays, type LucideIcon, TrendingUp, Wallet } from 'lucide-react';
import { useT } from '../../lib/i18n/I18nContext';
import { formatCurrency } from './formatCurrency';
@@ -10,6 +10,7 @@ interface CostSummaryProps {
monthToDateUsd: number;
}
+/** Headline spend figures as three equal stat tiles. */
const CostSummary = ({
currency,
periodTotalUsd,
@@ -21,97 +22,49 @@ const CostSummary = ({
return (
<section
data-testid="cost-dashboard-summary"
- className="grid grid-cols-1 md:grid-cols-2 gap-3"
+ className="grid grid-cols-1 gap-3 sm:grid-cols-3"
aria-label={t('settings.costDashboard.summaryAriaLabel')}>
- <div
- data-testid="metric-total-spend"
- className="rounded-2xl border border-line bg-linear-to-br from-primary-50 to-surface dark:from-neutral-900 dark:to-neutral-950 p-5 flex flex-col gap-3 shadow-soft">
- <div className="flex items-center justify-between">
- <div className="flex items-center gap-2 text-xs uppercase tracking-wide text-content-muted">
- <WalletIcon className="h-4 w-4" />
- <span>{t('settings.costDashboard.totalSpend')}</span>
- </div>
- </div>
- <div className="flex items-baseline gap-3">
- <span className="text-3xl md:text-4xl font-semibold tabular-nums text-content">
- {formatCurrency(periodTotalUsd, currency)}
- </span>
- <span className="text-xs text-content-muted">
- {t('settings.costDashboard.lastSevenDays')}
- </span>
- </div>
- <div className="text-xs text-content-muted">
- {`${t('settings.costDashboard.monthToDate')}: ${formatCurrency(monthToDateUsd, currency)}`}
- </div>
- </div>
-
- <div className="grid grid-cols-1 gap-3">
- <SmallMetric
- icon={<TrendingUpIcon className="h-4 w-4" />}
- label={t('settings.costDashboard.monthlyPace')}
- value={formatCurrency(monthlyPaceUsd, currency)}
- hint={t('settings.costDashboard.monthlyPaceHint')}
- testId="metric-monthly-pace"
- />
- </div>
+ <StatTile
+ testId="metric-total-spend"
+ icon={Wallet}
+ label={t('settings.costDashboard.totalSpend')}
+ value={formatCurrency(periodTotalUsd, currency)}
+ hint={t('settings.costDashboard.lastSevenDays')}
+ />
+ <StatTile
+ testId="metric-month-to-date"
+ icon={CalendarDays}
+ label={t('settings.costDashboard.monthToDate')}
+ value={formatCurrency(monthToDateUsd, currency)}
+ />
+ <StatTile
+ testId="metric-monthly-pace"
+ icon={TrendingUp}
+ label={t('settings.costDashboard.monthlyPace')}
+ value={formatCurrency(monthlyPaceUsd, currency)}
+ hint={t('settings.costDashboard.monthlyPaceHint')}
+ />
</section>
);
};
-interface SmallMetricProps {
- icon: ReactNode;
+interface StatTileProps {
+ icon: LucideIcon;
label: string;
value: string;
- hint: string;
+ hint?: string;
testId: string;
}
-const SmallMetric = ({ icon, label, value, hint, testId }: SmallMetricProps) => (
- <div
- data-testid={testId}
- title={hint}
- className="rounded-2xl border border-line p-3 flex flex-col gap-1 hover:border-primary-300 dark:hover:border-primary-700 transition-colors">
- <div className="flex items-center gap-2 text-[11px] uppercase tracking-wide text-content-muted">
- {icon}
+const StatTile = ({ icon: Icon, label, value, hint, testId }: StatTileProps) => (
+ <div data-testid={testId} className="rounded-xl border border-line bg-surface px-4 py-3.5">
+ <div className="flex items-center gap-1.5 text-xs font-medium text-content-muted">
+ <Icon className="h-3.5 w-3.5" aria-hidden />
<span>{label}</span>
</div>
- <span className="text-lg font-semibold tabular-nums text-content">{value}</span>
+ <div className="mt-1.5 text-2xl font-semibold tabular-nums text-content">{value}</div>
+ {hint && <div className="mt-0.5 truncate text-xs text-content-faint">{hint}</div>}
</div>
);
-interface IconProps {
- className?: string;
-}
-
-const WalletIcon = ({ className }: IconProps) => (
- <svg
- className={className}
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- strokeWidth="2"
- strokeLinecap="round"
- strokeLinejoin="round"
- aria-hidden>
- <path d="M21 12V7H5a2 2 0 0 1 0-4h14v4" />
- <path d="M3 5v14a2 2 0 0 0 2 2h16v-5" />
- <circle cx="17" cy="14" r="1.5" />
- </svg>
-);
-
-const TrendingUpIcon = ({ className }: IconProps) => (
- <svg
- className={className}
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- strokeWidth="2"
- strokeLinecap="round"
- strokeLinejoin="round"
- aria-hidden>
- <polyline points="23 6 13.5 15.5 8.5 10.5 1 18" />
- <polyline points="17 6 23 6 23 12" />
- </svg>
-);
-
export default CostSummary;
diff --git a/app/src/components/settings/panels/SearchPanelEngineList.tsx b/app/src/components/settings/panels/SearchPanelEngineList.tsx
index 15254cff0f..35f2b36f75 100644
--- a/app/src/components/settings/panels/SearchPanelEngineList.tsx
+++ b/app/src/components/settings/panels/SearchPanelEngineList.tsx
@@ -1,6 +1,8 @@
+import { Ban, KeyRound, type LucideIcon, Sparkles } from 'lucide-react';
+
+import { cn } from '../../../lib/cn';
import type { SearchEngineId } from '../../../utils/tauriCommands/config';
import Badge from '../../ui/Badge';
-import { CheckIcon } from '../../ui/icons';
import { ToggleGroupItem, ToggleGroupRoot } from '../../ui/ToggleGroup';
export interface EngineOption {
@@ -19,12 +21,17 @@ interface SearchPanelEngineListProps {
t: (key: string) => string;
}
+const engineIcon = (engine: EngineOption): LucideIcon => {
+ if (engine.id === 'disabled') return Ban;
+ if (engine.id === 'managed') return Sparkles;
+ return KeyRound;
+};
+
/**
- * The search-engine picker. A single-select `ToggleGroup` gives the real
- * `role="radiogroup"` / `role="radio"` / `aria-checked` pairing for free
- * (Radix sets these itself for `type="single"`), plus roving-focus arrow-key
- * navigation — the hand-rolled `<button role="radio">` list this replaced had
- * neither.
+ * The search-engine picker as a grid of icon tiles. A single-select
+ * `ToggleGroup` gives the real `role="radiogroup"` / `role="radio"` /
+ * `aria-checked` pairing (Radix sets these for `type="single"`) plus
+ * roving-focus arrow-key navigation, so each tile is the radio itself.
*/
const SearchPanelEngineList = ({
engines,
@@ -36,27 +43,41 @@ const SearchPanelEngineList = ({
}: SearchPanelEngineListProps) => (
<ToggleGroupRoot
type="single"
- orientation="vertical"
aria-label={ariaLabel}
value={selectedEngine}
onValueChange={value => {
if (value) onSelect(value as SearchEngineId);
}}
- className="flex w-full flex-col gap-0 divide-y divide-line-subtle rounded-xl border border-line bg-surface overflow-hidden">
+ className="grid w-full gap-2 p-4 sm:grid-cols-2 xl:grid-cols-3">
{engines.map(opt => {
const selected = opt.id === selectedEngine;
const configured = isConfigured(opt.id);
const blocked = opt.requiresKey && !configured && selected;
+ const Icon = engineIcon(opt);
return (
<ToggleGroupItem
key={opt.id}
value={opt.id}
data-testid={`search-engine-${opt.id}`}
variant="tertiary"
- className="w-full flex items-start justify-start gap-3 rounded-none border-0 px-4 py-3 h-auto text-left data-[state=on]:bg-primary-50 dark:data-[state=on]:bg-primary-500/10">
- <span className="flex-1 min-w-0">
- <span className="flex items-center gap-2">
- <span className="text-sm font-medium text-content">{opt.label}</span>
+ className={cn(
+ 'h-auto w-full items-start justify-start gap-3 whitespace-normal rounded-xl border px-3.5 py-3 text-left font-normal transition-colors',
+ selected
+ ? 'border-primary-500 bg-primary-50 ring-1 ring-primary-500 hover:bg-primary-50 dark:bg-primary-500/10 dark:hover:bg-primary-500/10'
+ : 'border-line bg-surface hover:border-line-strong hover:bg-surface-hover'
+ )}>
+ <span
+ className={cn(
+ 'flex h-9 w-9 shrink-0 items-center justify-center rounded-lg',
+ selected
+ ? 'bg-primary-500 text-content-inverted'
+ : 'bg-surface-muted text-content-secondary'
+ )}>
+ <Icon className="h-4.5 w-4.5" aria-hidden />
+ </span>
+ <span className="min-w-0 flex-1">
+ <span className="flex flex-wrap items-center gap-2">
+ <span className="text-sm font-semibold text-content">{opt.label}</span>
{opt.requiresKey && (
<Badge variant={configured ? 'success' : 'warning'}>
{configured
@@ -65,16 +86,15 @@ const SearchPanelEngineList = ({
</Badge>
)}
</span>
- <span className="block mt-0.5 text-xs text-content-muted">{opt.description}</span>
+ <span className="mt-0.5 block text-xs leading-relaxed text-content-muted">
+ {opt.description}
+ </span>
{blocked && (
- <span className="block mt-1 text-[11px] text-amber-700 dark:text-amber-300">
+ <span className="mt-1 block text-xs text-amber-700 dark:text-amber-300">
{t('settings.search.fallbackToManaged')}
</span>
)}
</span>
- {selected && (
- <CheckIcon className="w-5 h-5 text-primary-500 shrink-0 mt-0.5" aria-hidden="true" />
- )}
</ToggleGroupItem>
);
})}
diff --git a/app/src/components/settings/panels/VoicePanelProviderChips.tsx b/app/src/components/settings/panels/VoicePanelProviderChips.tsx
index ac8ffe6877..976e27b5bf 100644
--- a/app/src/components/settings/panels/VoicePanelProviderChips.tsx
+++ b/app/src/components/settings/panels/VoicePanelProviderChips.tsx
@@ -1,6 +1,10 @@
+import { AudioLines, AudioWaveform, Cloud, Laptop, type LucideIcon, Sparkles } from 'lucide-react';
+import type { ReactNode } from 'react';
+
+import { cn } from '../../../lib/cn';
import type { VoiceInstallStatus } from '../../../services/api/voiceInstallApi';
import type { VoiceSettings } from '../../../services/api/voiceSettingsApi';
-import { SettingsSection, SettingsSwitch } from '../controls';
+import { Badge, Card, Switch } from '../../ui';
/** Built-in voice provider slugs with display metadata. */
export const BUILTIN_VOICE_PROVIDER_META: Record<
@@ -12,13 +16,11 @@ export const BUILTIN_VOICE_PROVIDER_META: Record<
openai: { label: 'OpenAI', capability: 'both', comingSoon: true },
};
-/** Shared pill shell for every provider chip — semantic tokens only. */
-const CHIP_SHELL =
- 'inline-flex items-center gap-2 rounded-full border px-2.5 py-1 text-xs font-medium transition-colors';
-const CHIP_NEUTRAL = 'border-line bg-surface-subtle text-content-secondary dark:border-line-strong';
-/** The cloud chip is always-on and locked — styled like `Badge`'s `success` variant. */
-const CHIP_LOCKED_ON =
- 'border-sage-200 bg-sage-50 text-sage-700 dark:border-sage-500/30 dark:bg-sage-500/10 dark:text-sage-300';
+const PROVIDER_ICON: Record<string, LucideIcon> = {
+ deepgram: AudioLines,
+ elevenlabs: AudioWaveform,
+ openai: Sparkles,
+};
interface VoicePanelProviderChipsProps {
t: (key: string) => string;
@@ -35,12 +37,57 @@ interface VoicePanelProviderChipsProps {
handleRemoveProvider: (slug: string) => void | Promise<void>;
}
+interface ProviderRowProps {
+ icon: LucideIcon;
+ label: string;
+ capability: 'stt' | 'tts' | 'both';
+ enabled: boolean;
+ /** Extra chip after the capability chips (e.g. "Always on", "coming soon"). */
+ status?: ReactNode;
+ dimmed?: boolean;
+ t: (key: string) => string;
+ children: ReactNode;
+}
+
+/** One provider: icon tile, name + what it does, and its enable switch. */
+const ProviderRow = ({
+ icon: Icon,
+ label,
+ capability,
+ enabled,
+ status,
+ dimmed,
+ t,
+ children,
+}: ProviderRowProps) => (
+ <div className={cn('flex items-center gap-3 px-4 py-3', dimmed && 'opacity-60')}>
+ <span
+ className={cn(
+ 'flex h-9 w-9 shrink-0 items-center justify-center rounded-lg',
+ enabled ? 'bg-primary-500 text-content-inverted' : 'bg-surface-muted text-content-secondary'
+ )}>
+ <Icon className="h-4.5 w-4.5" aria-hidden />
+ </span>
+ <div className="min-w-0 flex-1">
+ <div className="text-sm font-semibold text-content">{label}</div>
+ <div className="mt-1 flex flex-wrap items-center gap-1.5">
+ {capability !== 'tts' && (
+ <Badge variant="neutral">{t('voice.providers.cap.stt')}</Badge>
+ )}
+ {capability !== 'stt' && (
+ <Badge variant="neutral">{t('voice.providers.cap.tts')}</Badge>
+ )}
+ {status}
+ </div>
+ </div>
+ {children}
+ </div>
+);
+
/**
- * Provider enable/disable chip row: managed cloud (locked on), Piper (local
- * TTS, no key required), and the external BYOK providers. Each chip's own
- * pill shape is intentional bespoke UI; the toggle inside it is the shared
- * `Switch` primitive so behaviour (role, aria-checked, keyboard) matches
- * every other switch in the app.
+ * Voice providers as a list: managed cloud (locked on), Piper (local TTS, no
+ * key required), and the external BYOK providers. Turning an external
+ * provider on opens the key modal; Piper opens its install modal.
*/
const VoicePanelProviderChips = ({
t,
@@ -59,96 +106,105 @@ const VoicePanelProviderChips = ({
const piperEnabled = ttsProvider === 'piper';
return (
- <SettingsSection title={t('voice.providers.title')} description={t('voice.providers.desc')}>
- <div className="px-4 py-3" data-testid="voice-providers-section">
- <div className="flex flex-wrap gap-2">
- {/* Cloud — always enabled, locked */}
- <div className={`${CHIP_SHELL} ${CHIP_LOCKED_ON}`}>
- <span>{t('voice.providers.chip.cloud')}</span>
- <SettingsSwitch
- id="voice-provider-chip-cloud"
- checked
- disabled
- onCheckedChange={() => {}}
- aria-label={t('voice.providers.chip.cloudAria')}
- />
- </div>
+ <Card
+ title={t('voice.providers.title')}
+ description={t('voice.providers.cardDesc')}
+ data-testid="voice-providers-section">
+ {/* Cloud — always enabled, locked */}
+ <ProviderRow
+ icon={Cloud}
+ label={t('voice.providers.chip.cloud')}
+ capability="both"
+ enabled
+ status={<Badge variant="success">{t('voice.providers.alwaysOn')}</Badge>}
+ t={t}>
+ <Switch
+ id="voice-provider-chip-cloud"
+ checked
+ disabled
+ onCheckedChange={() => {}}
+ aria-label={t('voice.providers.chip.cloudAria')}
+ />
+ </ProviderRow>
- {/* Piper — local TTS, no API key required. The chip opens the
- install/enable modal (which calls inference_install_piper and
- then voice_update_provider_settings on Enable). Toggling off
- routes TTS back to the managed cloud provider. */}
- <div className={`${CHIP_SHELL} ${CHIP_NEUTRAL}`}>
- <span>{t('voice.providers.chip.piper')}</span>
- <SettingsSwitch
- id="voice-provider-chip-piper"
- data-testid="voice-provider-chip-piper"
- checked={piperEnabled}
- // Stay disabled for the full install window: the local RPC
- // kickoff (`isInstallingPiper`) ends as soon as the start call
- // returns, but the install itself continues until the status
- // RPC reports `installed` / `error`. Combining both signals
- // prevents routing edits mid-install.
- disabled={isInstallingPiper || piperInstall?.state === 'installing'}
+ {/* Piper — local TTS, no API key required. Turning it on opens the
+ install/enable modal (inference_install_piper, then
+ voice_update_provider_settings on Enable). Turning it off routes TTS
+ back to the managed cloud provider. */}
+ <ProviderRow
+ icon={Laptop}
+ label={t('voice.providers.chip.piper')}
+ capability="tts"
+ enabled={piperEnabled}
+ t={t}>
+ <Switch
+ id="voice-provider-chip-piper"
+ data-testid="voice-provider-chip-piper"
+ checked={piperEnabled}
+ // Stay disabled for the full install window: the local RPC kickoff
+ // (`isInstallingPiper`) ends as soon as the start call returns, but
+ // the install continues until the status RPC reports `installed` /
+ // `error`. Combining both prevents routing edits mid-install.
+ disabled={isInstallingPiper || piperInstall?.state === 'installing'}
+ onCheckedChange={next => {
+ if (!next) {
+ onTtsProviderChange('cloud');
+ } else {
+ setPendingKeySlug('piper');
+ setPendingKeyValue('');
+ }
+ }}
+ aria-label={
+ piperEnabled
+ ? `${t('voice.providers.chip.disableProvider')} ${t('voice.providers.chip.piper')}`
+ : `${t('voice.providers.chip.enableProvider')} ${t('voice.providers.chip.piper')}`
+ }
+ />
+ </ProviderRow>
+
+ {/* External providers: Deepgram, ElevenLabs, OpenAI */}
+ {Object.entries(BUILTIN_VOICE_PROVIDER_META).map(([slug, meta]) => {
+ const enabled = (voiceSettings?.voiceProviders ?? []).some(p => p.slug === slug);
+ return (
+ <ProviderRow
+ key={slug}
+ icon={PROVIDER_ICON[slug] ?? AudioLines}
+ label={meta.label}
+ capability={meta.capability}
+ enabled={enabled}
+ dimmed={meta.comingSoon}
+ status={
+ meta.comingSoon ? (
+ <Badge variant="neutral">{t('voice.providers.chip.comingSoon')}</Badge>
+ ) : undefined
+ }
+ t={t}>
+ <Switch
+ id={`voice-provider-chip-${slug}`}
+ data-testid={`voice-provider-chip-${slug}`}
+ checked={enabled}
+ disabled={isSavingPendingKey || !!meta.comingSoon}
onCheckedChange={next => {
+ if (meta.comingSoon) return;
if (!next) {
- onTtsProviderChange('cloud');
+ void handleRemoveProvider(slug);
+ if (sttProvider === slug) onSttProviderChange('cloud');
+ if (ttsProvider === slug) onTtsProviderChange('cloud');
} else {
- setPendingKeySlug('piper');
+ setPendingKeySlug(slug);
setPendingKeyValue('');
}
}}
aria-label={
- piperEnabled
- ? `${t('voice.providers.chip.disableProvider')} ${t('voice.providers.chip.piper')}`
- : `${t('voice.providers.chip.enableProvider')} ${t('voice.providers.chip.piper')}`
+ enabled
+ ? `${t('voice.providers.chip.disableProvider')} ${meta.label}`
+ : `${t('voice.providers.chip.enableProvider')} ${meta.label}`
}
/>
- </div>
-
- {/* External providers: Deepgram, ElevenLabs, OpenAI */}
- {Object.entries(BUILTIN_VOICE_PROVIDER_META).map(([slug, meta]) => {
- const enabled = (voiceSettings?.voiceProviders ?? []).some(p => p.slug === slug);
- return (
- <div
- key={slug}
- className={`${CHIP_SHELL} ${CHIP_NEUTRAL} ${meta.comingSoon ? 'opacity-60' : ''}`}>
- <span>
- {meta.label}
- {meta.comingSoon && (
- <span className="ml-1 text-[10px] opacity-70">
- ({t('voice.providers.chip.comingSoon')})
- </span>
- )}
- </span>
- <SettingsSwitch
- id={`voice-provider-chip-${slug}`}
- data-testid={`voice-provider-chip-${slug}`}
- checked={enabled}
- disabled={isSavingPendingKey || !!meta.comingSoon}
- onCheckedChange={next => {
- if (meta.comingSoon) return;
- if (!next) {
- void handleRemoveProvider(slug);
- if (sttProvider === slug) onSttProviderChange('cloud');
- if (ttsProvider === slug) onTtsProviderChange('cloud');
- } else {
- setPendingKeySlug(slug);
- setPendingKeyValue('');
- }
- }}
- aria-label={
- enabled
- ? `${t('voice.providers.chip.disableProvider')} ${meta.label}`
- : `${t('voice.providers.chip.enableProvider')} ${meta.label}`
- }
- />
- </div>
- );
- })}
- </div>
- </div>
- </SettingsSection>
+ </ProviderRow>
+ );
+ })}
+ </Card>
);
};
diff --git a/app/src/components/settings/panels/ai/ProviderCatalog.tsx b/app/src/components/settings/panels/ai/ProviderCatalog.tsx
new file mode 100644
index 0000000000..c9ab9a81de
--- /dev/null
+++ b/app/src/components/settings/panels/ai/ProviderCatalog.tsx
@@ -0,0 +1,96 @@
+/*
+ * "Add a provider" as an inline catalogue: one titled block per category
+ * (cloud / local / CLI) of tiles for the providers not yet connected, plus a
+ * custom-endpoint tile. Picking a tile starts the same connect flow the
+ * header's Add-provider dialog does — the dialog stays as the quick path, the
+ * catalogue is what makes the options discoverable without opening anything.
+ */
+import { Plus, SquarePen } from 'lucide-react';
+
+import { useT } from '../../../../lib/i18n/I18nContext';
+import Card from '../../../ui/Card';
+import type { ProviderCategory } from './AddProviderDialog';
+import { ProviderSwatch } from './ProviderListRow';
+
+const tileClass =
+ 'group flex w-full min-w-0 items-center gap-3 rounded-xl border border-line bg-surface px-3 py-2.5 text-left transition-colors hover:border-line-strong hover:bg-surface-hover focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary-500/25';
+
+export const ProviderCatalog = ({
+ categories,
+ onPick,
+ onAddCustom,
+}: {
+ categories: ProviderCategory[];
+ onPick: (slug: string) => void;
+ onAddCustom: () => void;
+}) => {
+ const { t } = useT();
+ const visible = categories.filter(category => category.options.length > 0);
+
+ return (
+ <Card
+ title={t('settings.ai.providers.catalogTitle')}
+ description={t('settings.ai.providers.addProviderSubtitle')}
+ data-testid="provider-catalog">
+ {visible.map(category => (
+ <section
+ key={category.id}
+ className="space-y-2.5 p-4"
+ data-testid={`provider-catalog-${category.id}`}>
+ <div>
+ <h4 className="text-sm font-medium text-content">{category.title}</h4>
+ <p className="text-xs text-content-muted">{category.helper}</p>
+ </div>
+ <div className="grid gap-2 sm:grid-cols-2 xl:grid-cols-3">
+ {category.options.map(option => (
+ <button
+ key={option.slug}
+ type="button"
+ className={tileClass}
+ onClick={() => onPick(option.slug)}
+ data-testid={`provider-catalog-option-${option.slug}`}>
+ <ProviderSwatch slug={option.slug} label={option.label} tone={option.tone} />
+ <span className="flex min-w-0 flex-1 flex-col">
+ <span className="truncate text-sm font-medium text-content">{option.label}</span>
+ <span className="truncate font-mono text-[11px] text-content-muted">
+ {option.detail}
+ </span>
+ </span>
+ <Plus
+ className="h-4 w-4 shrink-0 text-content-faint transition-colors group-hover:text-content"
+ aria-hidden
+ />
+ </button>
+ ))}
+ </div>
+ </section>
+ ))}
+
+ <section className="p-4">
+ <button
+ type="button"
+ className={tileClass}
+ onClick={onAddCustom}
+ data-testid="provider-catalog-custom">
+ <span className="flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-surface-muted text-content-secondary">
+ <SquarePen className="h-4 w-4" aria-hidden />
+ </span>
+ <span className="flex min-w-0 flex-1 flex-col">
+ <span className="truncate text-sm font-medium text-content">
+ {t('settings.ai.providers.addCustomAction')}
+ </span>
+ <span className="truncate text-[11px] text-content-muted">
+ {t('settings.ai.providers.customDetail')}
+ </span>
+ </span>
+ <Plus
+ className="h-4 w-4 shrink-0 text-content-faint transition-colors group-hover:text-content"
+ aria-hidden
+ />
+ </button>
+ </section>
+ </Card>
+ );
+};
+
+export default ProviderCatalog;
diff --git a/app/src/pages/Skills.tsx b/app/src/pages/Skills.tsx
index 72bd0f357e..97d8593654 100644
--- a/app/src/pages/Skills.tsx
+++ b/app/src/pages/Skills.tsx
@@ -1189,13 +1189,8 @@ export default function Skills() {
<ComposioPanel embedded />
</SettingsTabbedPage>
)}
- {activeTab === 'usage' && (
- <SettingsTabbedPage
- title={t('settings.usage.title')}
- description={t('settings.usage.menuDesc')}>
- <UsagePanel />
- </SettingsTabbedPage>
- )}
+ {/* Usage owns its page shell (header chip tabs), like LLM. */}
+ {activeTab === 'usage' && <UsagePanel />}
{activeTab === 'wallet' && <WalletPanel />}
{activeTab === 'desktop' && <DesktopConnectionPage />}
</SettingsLayoutProvider>