From ae7b7e822897df865ccb0abbc890fb2a6f6d35f2 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 23 Apr 2026 13:46:29 +0000 Subject: [PATCH] feat(ui): FallbackGroupConfig semantic tokens + shadcn Tooltip - antd Tooltip \u2192 shadcn Tooltip for the '+N more' hidden-values placeholder. - Gray/indigo/red hex palettes replaced with semantic tokens (text-foreground, text-muted-foreground, bg-muted, border-border, destructive). Indigo connector chip + hover accent retained as categorical; file added to .eslintrc.json overrides. - antd Select primary + multiple dropdowns preserved; optionRender and maxTagPlaceholder hooks kept intact. Gates: TS \u2713 | Build \u2713. Co-authored-by: yuneng-jiang --- ui/litellm-dashboard/.eslintrc.json | 1 + .../Fallbacks/FallbackGroupConfig.tsx | 103 ++++++++++-------- 2 files changed, 60 insertions(+), 44 deletions(-) diff --git a/ui/litellm-dashboard/.eslintrc.json b/ui/litellm-dashboard/.eslintrc.json index ef35ae782ad..76afd93f4e6 100644 --- a/ui/litellm-dashboard/.eslintrc.json +++ b/ui/litellm-dashboard/.eslintrc.json @@ -59,6 +59,7 @@ "src/components/guardrails/content_filter/PatternTable.tsx", "src/components/guardrails/content_filter/ContentFilterDisplay.tsx", "src/components/guardrails/content_filter/CategoryTable.tsx", + "src/components/Settings/RouterSettings/Fallbacks/FallbackGroupConfig.tsx", "src/components/prompts/prompt_editor_view/PromptEditorHeader.tsx", "src/components/prompts/prompt_editor_view/VersionHistorySidePanel.tsx", "src/app/(dashboard)/teams/components/TeamsTable/ModelsCell.tsx", diff --git a/ui/litellm-dashboard/src/components/Settings/RouterSettings/Fallbacks/FallbackGroupConfig.tsx b/ui/litellm-dashboard/src/components/Settings/RouterSettings/Fallbacks/FallbackGroupConfig.tsx index 86d70048b65..7f991ef78f4 100644 --- a/ui/litellm-dashboard/src/components/Settings/RouterSettings/Fallbacks/FallbackGroupConfig.tsx +++ b/ui/litellm-dashboard/src/components/Settings/RouterSettings/Fallbacks/FallbackGroupConfig.tsx @@ -3,7 +3,13 @@ * Handles primary model selection and fallback chain configuration */ -import { Select, Tooltip } from "antd"; +import { Select } from "antd"; +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from "@/components/ui/tooltip"; import { AlertCircle, ArrowDown, X } from "lucide-react"; import React from "react"; @@ -68,8 +74,8 @@ export function FallbackGroupConfig({
{/* Primary Model Section */}
-