From b3cf96ed1108517568e94b012406a820de27f899 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 30 May 2024 15:34:51 -0700 Subject: [PATCH] show user_role on users tb --- .../src/components/view_users.tsx | 24 ++++++------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/ui/litellm-dashboard/src/components/view_users.tsx b/ui/litellm-dashboard/src/components/view_users.tsx index b87524bc6e9..435b13c15fc 100644 --- a/ui/litellm-dashboard/src/components/view_users.tsx +++ b/ui/litellm-dashboard/src/components/view_users.tsx @@ -36,7 +36,6 @@ import { TrashIcon, } from "@heroicons/react/outline"; - interface ViewUserDashboardProps { accessToken: string | null; token: string | null; @@ -159,14 +158,10 @@ const ViewUserDashboard: React.FC = ({ return (
- + - +
- - These are Users on LiteLLM that created API Keys. Automatically - tracked by LiteLLM -
@@ -176,7 +171,7 @@ const ViewUserDashboard: React.FC = ({ User ID User Email - User Models + Role User Spend ($ USD) User Max Budget ($ USD) API Keys @@ -186,16 +181,11 @@ const ViewUserDashboard: React.FC = ({ {userData.map((user: any) => ( - {user.user_id} - {user.user_email} - + {user.user_id || "-"} + {user.user_email || "-"} + {user.user_role || "-"} - {user.models && user.models.length > 0 - ? user.models - : "All Models"} - - - {user.spend ? user.spend?.toFixed(2) : 0} + {user.spend ? user.spend?.toFixed(2) : "-"} {user.max_budget ? user.max_budget : "Unlimited"}