From ce2c618aad3e197fe86740dcc90ca03bd4f5b185 Mon Sep 17 00:00:00 2001 From: Krish Dholakia Date: Fri, 14 Feb 2025 11:30:49 -0800 Subject: [PATCH] UI Fixes and Improvements (02/14/2025) p1 (#8546) * fix(user_dashboard.tsx): add bounding height to keys table ui prevents table from exceeding page height * fix(create_key_button.tsx): do not require team to be selected when user creating keys - allow personal key creation * fix(team_info.tsx): allow proxy admin to edit/delete team members even when not specifically team admins --- .../src/components/all_keys_table.tsx | 21 +-- .../src/components/create_key_button.tsx | 1 - .../src/components/networking.tsx | 4 +- .../src/components/team/team_info.tsx | 169 +----------------- .../src/components/user_dashboard.tsx | 4 +- 5 files changed, 16 insertions(+), 183 deletions(-) diff --git a/ui/litellm-dashboard/src/components/all_keys_table.tsx b/ui/litellm-dashboard/src/components/all_keys_table.tsx index e520f84b36..6e3a491886 100644 --- a/ui/litellm-dashboard/src/components/all_keys_table.tsx +++ b/ui/litellm-dashboard/src/components/all_keys_table.tsx @@ -277,7 +277,7 @@ export function AllKeysTable({ ]; return ( -
+
{selectedKeyId ? ( ) : ( -
+
- col.id !== 'expander')} - data={keys} - isLoading={isLoading} - getRowCanExpand={() => false} - renderSubComponent={() => <>} - /> +
+ col.id !== 'expander')} + data={keys} + isLoading={isLoading} + getRowCanExpand={() => false} + renderSubComponent={() => <>} + /> +
- )}
diff --git a/ui/litellm-dashboard/src/components/create_key_button.tsx b/ui/litellm-dashboard/src/components/create_key_button.tsx index 38dc242ccc..2de11c14c8 100644 --- a/ui/litellm-dashboard/src/components/create_key_button.tsx +++ b/ui/litellm-dashboard/src/components/create_key_button.tsx @@ -289,7 +289,6 @@ const CreateKey: React.FC = ({ name="team_id" initialValue={team ? team.team_id : null} className="mt-8" - rules={[{ required: true, message: 'Please select a team' }]} > - - - - - - All Proxy Models - - {userModels.map((model) => ( - - {getModelDisplayName(model)} - - ))} - - - - - - - - - - - - - - - - - - - - - Guardrails{' '} - - e.stopPropagation()} - > - - - - - } - name="guardrails" - help="Select existing guardrails or enter new ones" - > -