From 3616c97100af43e7efa71e392877bcca02ce22ef Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 13 Mar 2026 23:50:14 +0000 Subject: [PATCH] ui: rename key type Default to Full Access Co-authored-by: Shivam Rawat --- .../components/organisms/create_key_button.test.tsx | 13 +++++++++++++ .../src/components/organisms/create_key_button.tsx | 4 ++-- .../src/components/templates/key_edit_view.test.tsx | 6 ++++++ .../src/components/templates/key_edit_view.tsx | 4 ++-- 4 files changed, 23 insertions(+), 4 deletions(-) diff --git a/ui/litellm-dashboard/src/components/organisms/create_key_button.test.tsx b/ui/litellm-dashboard/src/components/organisms/create_key_button.test.tsx index 3ed4c80aea5..b26dfd816f2 100644 --- a/ui/litellm-dashboard/src/components/organisms/create_key_button.test.tsx +++ b/ui/litellm-dashboard/src/components/organisms/create_key_button.test.tsx @@ -287,6 +287,19 @@ describe("CreateKey", () => { }); }); + it("should display 'Full Access' label for the default key type option", async () => { + renderWithProviders(); + + act(() => { + fireEvent.click(screen.getByRole("button", { name: /create new key/i })); + }); + + await waitFor(() => { + expect(screen.getByText("Full Access")).toBeInTheDocument(); + expect(screen.queryByText(/^Default$/)).not.toBeInTheDocument(); + }); + }); + it("should include access_group_ids in keyCreateCall payload when access groups are selected", async () => { renderWithProviders(); diff --git a/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx b/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx index 0926b11fe09..3e4acfad021 100644 --- a/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx +++ b/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx @@ -924,9 +924,9 @@ const CreateKey: React.FC = ({ team, teams, data, addKey, autoOp } }} > -