From 191bb9504d770416a7cfdd436bc22a29d61c62fb Mon Sep 17 00:00:00 2001 From: Ryan Crabbe Date: Sat, 28 Mar 2026 16:59:19 -0700 Subject: [PATCH] chore(ui): migrate Tremor Text/Badge to antd Tag and native spans in logging_settings_view Replace Tremor Text with native elements (with block class where stacking is needed) and Tremor Badge with antd Tag. All Tailwind classes preserved. Gray badge default mapped to undefined (antd Tag default). --- .../src/components/logging_settings_view.tsx | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/ui/litellm-dashboard/src/components/logging_settings_view.tsx b/ui/litellm-dashboard/src/components/logging_settings_view.tsx index 1f454f0b20..079711d196 100644 --- a/ui/litellm-dashboard/src/components/logging_settings_view.tsx +++ b/ui/litellm-dashboard/src/components/logging_settings_view.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Text, Badge } from "@tremor/react"; +import { Tag } from "antd"; import { CogIcon, BanIcon } from "@heroicons/react/outline"; import { callbackInfo, callback_map, reverse_callback_map } from "./callback_info_helpers"; @@ -28,7 +28,7 @@ export function LoggingSettingsView({ return callbackDisplayName || callbackName; }; - const getEventTypeColor = (eventType: string) => { + const getEventTypeColor = (eventType: string): string | undefined => { switch (eventType) { case "success": return "green"; @@ -37,7 +37,7 @@ export function LoggingSettingsView({ case "success_and_failure": return "blue"; default: - return "gray"; + return undefined; } }; @@ -60,10 +60,10 @@ export function LoggingSettingsView({
- Logging Integrations - + Logging Integrations + {loggingConfigs.length} - +
{loggingConfigs.length > 0 ? ( @@ -84,15 +84,15 @@ export function LoggingSettingsView({ )}
- {displayName} - + {displayName} + {Object.keys(config.callback_vars).length} parameters configured - +
- + {getEventTypeLabel(config.callback_type)} - + ); })} @@ -100,7 +100,7 @@ export function LoggingSettingsView({ ) : (
- No logging integrations configured + No logging integrations configured
)} @@ -109,10 +109,10 @@ export function LoggingSettingsView({
- Disabled Callbacks - + Disabled Callbacks + {disabledCallbacks.length} - +
{disabledCallbacks.length > 0 ? ( @@ -134,13 +134,13 @@ export function LoggingSettingsView({ )}
- {displayName} - Disabled for this key + {displayName} + Disabled for this key
- + Disabled - + ); })} @@ -148,7 +148,7 @@ export function LoggingSettingsView({ ) : (
- No callbacks disabled + No callbacks disabled
)} @@ -160,10 +160,10 @@ export function LoggingSettingsView({
- Logging Settings - + Logging Settings + Active logging integrations and disabled callbacks for this key - +
{content} @@ -173,7 +173,7 @@ export function LoggingSettingsView({ return (
- Logging Settings + Logging Settings {content}
);