Skip to content

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

feat(settings): wrap routing mode cards in a Card component

Steven Enamakele40a7123f19e
diff --git a/app/src/components/settings/panels/ai/RoutingModeCards.tsx b/app/src/components/settings/panels/ai/RoutingModeCards.tsx
index aecb10d9c7..ce1311195d 100644
--- a/app/src/components/settings/panels/ai/RoutingModeCards.tsx
+++ b/app/src/components/settings/panels/ai/RoutingModeCards.tsx
@@ -6,6 +6,7 @@
import { cn } from '../../../../lib/cn';
import { useT } from '../../../../lib/i18n/I18nContext';
import Alert from '../../../ui/Alert';
+import Card from '../../../ui/Card';
import Label from '../../../ui/Label';
import { RadioGroupItem, RadioGroupRoot } from '../../../ui/RadioGroup';
import type { RoutingMode } from './aiPanelTypes';
@@ -51,7 +52,8 @@ export const RoutingModeCards = ({
}) => {
const { t } = useT();
return (
- <div className="flex w-full flex-col gap-3">
+ <Card title={t('settings.ai.routing')} description={t('settings.ai.routingDesc')} className="w-full">
+ <div className="flex flex-col gap-3 p-4">
<RadioGroupRoot
aria-label={t('settings.ai.routing')}
value={effectiveRoutingMode}
@@ -84,7 +86,8 @@ export const RoutingModeCards = ({
{effectiveRoutingMode === 'managed' ? (
<Alert variant="success">{t('settings.ai.routing.managedMsg')}</Alert>
) : null}
- </div>
+ </div>
+ </Card>
);
};