From bc2ab84342e477dfae62bee612df33b2c8d3a474 Mon Sep 17 00:00:00 2001 From: Krish Dholakia Date: Thu, 17 Jul 2025 22:33:59 -0700 Subject: [PATCH] Teams - allow setting custom key duration + show many user + service account keys have been created (#12722) * fix(team_info.tsx): allow setting custom key duration more flexible than previous pre-set options * feat(team_info.tsx): show how many user + service account keys have been created within a team --- .../src/components/team/team_info.tsx | 26 ++++++++++++++----- ui/litellm-dashboard/src/components/teams.tsx | 10 +++---- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/ui/litellm-dashboard/src/components/team/team_info.tsx b/ui/litellm-dashboard/src/components/team/team_info.tsx index 6c6e6cc09cc..22b3a1437ef 100644 --- a/ui/litellm-dashboard/src/components/team/team_info.tsx +++ b/ui/litellm-dashboard/src/components/team/team_info.tsx @@ -19,6 +19,7 @@ import { TableBody, Table, Icon, + TextInput, } from "@tremor/react"; import TeamMembersComponent from "./team_member_view"; import MemberPermissions from "./member_permissions"; @@ -478,6 +479,21 @@ const TeamInfoView: React.FC = ({ + + Virtual Keys +
+ + User Keys: {teamData.keys.filter(key => key.user_id).length} + + + Service Account Keys: {teamData.keys.filter(key => !key.user_id).length} + + + Total: {teamData.keys.length} + +
+
+ = ({ - + diff --git a/ui/litellm-dashboard/src/components/teams.tsx b/ui/litellm-dashboard/src/components/teams.tsx index 218f614e4ab..28de55cb2f6 100644 --- a/ui/litellm-dashboard/src/components/teams.tsx +++ b/ui/litellm-dashboard/src/components/teams.tsx @@ -1340,15 +1340,11 @@ const Teams: React.FC = ({ - - 1 day - 1 week - 1 month - +