diff --git a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx index f0f26b55441..262f998de4d 100644 --- a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx +++ b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx @@ -613,6 +613,9 @@ const TeamInfoView: React.FC = ({ const nonGlobalOptIns: string[] = (info.metadata?.guardrails || []).filter( (n: string) => !globalGuardrailNames.has(n), ); + const globalsRunning: string[] = Array.from(globalGuardrailNames).filter( + (n) => !optedOutGlobals.has(n), + ); const effectiveGuardrails: string[] = initialKillSwitchOn ? nonGlobalOptIns : [ @@ -770,26 +773,42 @@ const TeamInfoView: React.FC = ({ Guardrails - {effectiveGuardrails.length > 0 ? ( -
- {effectiveGuardrails.map((name) => ( - - {globalGuardrailNames.has(name) && ( - - )} - {name} - - ))} -
- ) : ( + {!initialKillSwitchOn && + globalsRunning.length === 0 && + nonGlobalOptIns.length === 0 ? ( No guardrails configured - )} - {info.metadata?.disable_global_guardrails && ( -
- Global Guardrails Disabled + ) : ( +
+
+ Global + {initialKillSwitchOn ? ( + Bypassed for this team + ) : globalsRunning.length > 0 ? ( +
+ {globalsRunning.map((name) => ( + + {name} + + ))} +
+ ) : ( + None running + )} +
+
+ Team-specific + {nonGlobalOptIns.length > 0 ? ( +
+ {nonGlobalOptIns.map((name) => ( + + {name} + + ))} +
+ ) : ( + None configured + )} +
)} @@ -1465,17 +1484,6 @@ const TeamInfoView: React.FC = ({ {info.blocked ? "Blocked" : "Active"}
-
- Disable Global Guardrails -
- {info.metadata?.disable_global_guardrails === true ? ( - Enabled - Global guardrails bypassed - ) : ( - Disabled - Global guardrails active - )} -
-
-