From 5946c68973d1605c6c9d2d352afddb21d5e1c663 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 23 Apr 2026 22:04:22 +0000 Subject: [PATCH] feat(ui): guardrails/content_filter/ContentFilterManager Alert to shadcn - antd Alert/Divider/Typography (Text only) \u2192 inline flex+
section divider and a lucide AlertTriangle warning banner. - Categorical amber tint preserved behind no-raw-tailwind-colors eslint-disable. Gates: TS \u2713 | Build \u2713. Co-authored-by: yuneng-jiang --- .../content_filter/ContentFilterManager.tsx | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/ui/litellm-dashboard/src/components/guardrails/content_filter/ContentFilterManager.tsx b/ui/litellm-dashboard/src/components/guardrails/content_filter/ContentFilterManager.tsx index 1e106e2b1c4..597cbf7613f 100644 --- a/ui/litellm-dashboard/src/components/guardrails/content_filter/ContentFilterManager.tsx +++ b/ui/litellm-dashboard/src/components/guardrails/content_filter/ContentFilterManager.tsx @@ -1,10 +1,9 @@ -import { Alert, Divider, Typography } from "antd"; +import { AlertTriangle } from "lucide-react"; import React, { useEffect, useState } from "react"; import ContentFilterConfiguration from "./ContentFilterConfiguration"; import ContentFilterDisplay from "./ContentFilterDisplay"; import type { CompetitorIntentConfig } from "./CompetitorIntentConfiguration"; -const { Text } = Typography interface Pattern { id: string; @@ -233,19 +232,21 @@ const ContentFilterManager: React.FC = ({ // Edit mode return ( <> - Content Filter Configuration +
+ + Content Filter Configuration + +
+
{hasUnsavedChanges && ( - - You have unsaved changes to patterns or keywords. Remember to click "Save Changes" at the - bottom. - - } - /> + // eslint-disable-next-line litellm-ui/no-raw-tailwind-colors +
+ + + You have unsaved changes to patterns or keywords. Remember to + click "Save Changes" at the bottom. + +
)}
{guardrailSettings && guardrailSettings.content_filter_settings && (