Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

ui fix

Ishaan Jaffer7e2d6f2355d6
diff --git a/ui/litellm-dashboard/src/components/common_components/MemberTable.tsx b/ui/litellm-dashboard/src/components/common_components/MemberTable.tsx
index 3392158afe8..a41b7c341e5 100644
--- a/ui/litellm-dashboard/src/components/common_components/MemberTable.tsx
+++ b/ui/litellm-dashboard/src/components/common_components/MemberTable.tsx
@@ -17,6 +17,7 @@ export interface MemberTableProps {
roleTooltip?: string;
extraColumns?: ColumnsType<Member>;
showDeleteForMember?: (member: Member) => boolean;
+ emptyText?: string;
}
export default function MemberTable({
@@ -29,6 +30,7 @@ export default function MemberTable({
roleTooltip,
extraColumns = [],
showDeleteForMember,
+ emptyText,
}: MemberTableProps) {
const baseColumns: ColumnsType<Member> = [
{
@@ -109,6 +111,7 @@ export default function MemberTable({
pagination={false}
size="small"
scroll={{ x: "max-content" }}
+ locale={emptyText ? { emptyText } : undefined}
/>
{onAddMember && canEdit && (
<Button icon={<UserAddOutlined />} type="primary" onClick={onAddMember}>
diff --git a/ui/litellm-dashboard/src/components/organization/organization_view.test.tsx b/ui/litellm-dashboard/src/components/organization/organization_view.test.tsx
index 4320ad6c698..a54c7e1fbaa 100644
--- a/ui/litellm-dashboard/src/components/organization/organization_view.test.tsx
+++ b/ui/litellm-dashboard/src/components/organization/organization_view.test.tsx
@@ -1,5 +1,6 @@
import React from "react";
import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
import { vi, test, expect } from "vitest";
import OrganizationInfoView from "./organization_view";
@@ -105,6 +106,7 @@ test("should display empty state when organization has no members", async () =>
const { organizationInfoCall } = await import("../networking");
(organizationInfoCall as unknown as ReturnType<typeof vi.fn>).mockResolvedValueOnce(mockOrg);
+ const user = userEvent.setup();
render(
<OrganizationInfoView
organizationId="org_123"
@@ -117,6 +119,12 @@ test("should display empty state when organization has no members", async () =>
/>,
);
+ await waitFor(() => {
+ expect(screen.getByText("Acme Corp")).toBeInTheDocument();
+ });
+
+ await user.click(screen.getByRole("tab", { name: "Members" }));
+
await waitFor(() => {
expect(screen.getByText("No members found")).toBeInTheDocument();
});
diff --git a/ui/litellm-dashboard/src/components/organization/organization_view.tsx b/ui/litellm-dashboard/src/components/organization/organization_view.tsx
index d009f8b5342..4bbcc9f43b0 100644
--- a/ui/litellm-dashboard/src/components/organization/organization_view.tsx
+++ b/ui/litellm-dashboard/src/components/organization/organization_view.tsx
@@ -371,6 +371,7 @@ const OrganizationInfoView: React.FC<OrganizationInfoProps> = ({
onAddMember={() => setIsAddMemberModalVisible(true)}
roleColumnTitle="Organization Role"
extraColumns={orgExtraColumns}
+ emptyText="No members found"
/>
</div>
),