From 4bc79d741306c979b18161b43ed08bf7bfdf636b Mon Sep 17 00:00:00 2001 From: Danielle Maywood Date: Tue, 24 Mar 2026 21:36:38 +0000 Subject: [PATCH] fix(site): align models table style with providers table (#23531) --- .../ChatModelAdminPanel/ModelsSection.tsx | 87 ++++++++++--------- 1 file changed, 45 insertions(+), 42 deletions(-) diff --git a/site/src/pages/AgentsPage/components/ChatModelAdminPanel/ModelsSection.tsx b/site/src/pages/AgentsPage/components/ChatModelAdminPanel/ModelsSection.tsx index dd4964459c..7ec777c7fb 100644 --- a/site/src/pages/AgentsPage/components/ChatModelAdminPanel/ModelsSection.tsx +++ b/site/src/pages/AgentsPage/components/ChatModelAdminPanel/ModelsSection.tsx @@ -15,8 +15,8 @@ import { import { ChevronDownIcon, ChevronRightIcon, + PinIcon, PlusIcon, - StarIcon, TriangleAlertIcon, } from "lucide-react"; import type { FC, ReactNode } from "react"; @@ -248,8 +248,8 @@ export const ModelsSection: FC = ({ )} ) : ( -
- {modelConfigs.map((modelConfig) => { +
+ {modelConfigs.map((modelConfig, i) => { const showPricingWarning = !hasCustomPricing( modelConfig.model_config, ); @@ -257,44 +257,11 @@ export const ModelsSection: FC = ({ return (
0 && "border-0 border-t border-solid border-border/50", + )} > - {/* Star for default */} - - - - - - {modelConfig.is_default - ? "Default model for new chats" - : "Set as default for new chats"} - - {/* Clickable row content */} + {/* Pin for default */} + + + + + + {modelConfig.is_default + ? "Pinned as default for new chats" + : "Pin as default for new chats"} + + +
); })}