From 179397d273fec1b6997f52b2d40013c403b843a0 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Tue, 17 Feb 2026 18:19:26 -0800 Subject: [PATCH] ui fixes --- .../GuardrailViewer/GuardrailViewer.tsx | 23 ++++++++++++++----- .../LogDetailsDrawer/LogDetailContent.tsx | 16 +++++++++++-- .../LogDetailsDrawer/LogDetailsDrawer.tsx | 1 + 3 files changed, 32 insertions(+), 8 deletions(-) diff --git a/ui/litellm-dashboard/src/components/view_logs/GuardrailViewer/GuardrailViewer.tsx b/ui/litellm-dashboard/src/components/view_logs/GuardrailViewer/GuardrailViewer.tsx index c916818a0ee..12abf9c3c6d 100644 --- a/ui/litellm-dashboard/src/components/view_logs/GuardrailViewer/GuardrailViewer.tsx +++ b/ui/litellm-dashboard/src/components/view_logs/GuardrailViewer/GuardrailViewer.tsx @@ -5,6 +5,7 @@ import BedrockGuardrailDetails, { BedrockGuardrailResponse, } from "@/components/view_logs/GuardrailViewer/BedrockGuardrailDetails"; import ContentFilterDetails from "./ContentFilterDetails"; +import CompliancePanel from "./CompliancePanel"; // ── Interfaces ────────────────────────────────────────────────────────────── @@ -58,6 +59,14 @@ interface GuardrailInformation { interface GuardrailViewerProps { data: GuardrailInformation | GuardrailInformation[]; + accessToken?: string | null; + logEntry?: { + request_id: string; + user?: string; + model?: string; + startTime?: string; + metadata?: Record; + }; } // ── Helpers ───────────────────────────────────────────────────────────────── @@ -585,7 +594,7 @@ const EvaluationCard = ({ entry }: { entry: GuardrailInformation }) => { // ── Main Component ────────────────────────────────────────────────────────── -const GuardrailViewer = ({ data }: GuardrailViewerProps) => { +const GuardrailViewer = ({ data, accessToken, logEntry }: GuardrailViewerProps) => { const guardrailEntries = useMemo(() => { return Array.isArray(data) ? data.filter((entry): entry is GuardrailInformation => Boolean(entry)) @@ -659,11 +668,6 @@ const GuardrailViewer = ({ data }: GuardrailViewerProps) => {
Total: {totalOverheadMs}ms overhead
- {policyTemplates.length > 0 && ( -
- Policy: {policyTemplates.join(" / ")} -
- )}