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]

fix(ui): drop deprecation banners from kept features and make the rest permanent (#46314)

yuneng-jiangbdc0893c2816
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPNetworkSettings.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPNetworkSettings.tsx
index 2fd62c7f1ef..c421f1a932e 100644
--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPNetworkSettings.tsx
+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPNetworkSettings.tsx
@@ -14,7 +14,6 @@ import {
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { UiLoadingSpinner } from "@/components/ui/ui-loading-spinner";
-import { DeprecationBanner } from "@/components/DeprecationBanner";
import { toast } from "@/lib/toast";
import {
getGeneralSettingsCall,
@@ -317,7 +316,6 @@ const MCPNetworkSettings: React.FC<MCPNetworkSettingsProps> = ({ accessToken })
return (
<div className="space-y-6 p-4">
- <DeprecationBanner featureName="MCP Network Settings and the internal-network-only flag" />
<div>
<p className="text-lg font-semibold">Private IP Ranges</p>
<p className="mt-1 text-sm text-muted-foreground">
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/memory/page.integration.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/memory/page.integration.test.tsx
index 40773381587..2ef684a6ce7 100644
--- a/ui/litellm-dashboard/src/app/(dashboard)/memory/page.integration.test.tsx
+++ b/ui/litellm-dashboard/src/app/(dashboard)/memory/page.integration.test.tsx
@@ -49,10 +49,4 @@ describe("Memory page access by role", () => {
await waitFor(() => expect(requestedUrls().filter((url) => url.includes("/v1/memory"))).toEqual([]));
},
);
-
- it("hides the deprecation banner along with the page body for a denied role", () => {
- renderAs("Internal User");
-
- expect(screen.queryByText(/draft deprecation list/i)).not.toBeInTheDocument();
- });
});
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/memory/page.tsx b/ui/litellm-dashboard/src/app/(dashboard)/memory/page.tsx
index 7b1b6223372..1ba2ece9f84 100644
--- a/ui/litellm-dashboard/src/app/(dashboard)/memory/page.tsx
+++ b/ui/litellm-dashboard/src/app/(dashboard)/memory/page.tsx
@@ -1,7 +1,6 @@
"use client";
import { MemoryView } from "./_components/MemoryView";
-import { DeprecationBanner } from "@/components/DeprecationBanner";
import { AdminOnlyNotice } from "@/components/shared/AdminOnlyNotice";
import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
import useCan from "@/app/(dashboard)/hooks/useCan";
@@ -14,10 +13,5 @@ export default function Memory() {
return <AdminOnlyNotice pageTitle="Memory" />;
}
- return (
- <>
- <DeprecationBanner featureName="Memory" />
- <MemoryView accessToken={accessToken} userID={userId} userRole={userRole} />
- </>
- );
+ return <MemoryView accessToken={accessToken} userID={userId} userRole={userRole} />;
}
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/playground/page.tsx b/ui/litellm-dashboard/src/app/(dashboard)/playground/page.tsx
index bb5612e7367..fa5f76317de 100644
--- a/ui/litellm-dashboard/src/app/(dashboard)/playground/page.tsx
+++ b/ui/litellm-dashboard/src/app/(dashboard)/playground/page.tsx
@@ -7,7 +7,6 @@ import CompareUI from "@/app/(dashboard)/playground/components/compareUI/Compare
import ComplianceUI from "@/app/(dashboard)/playground/components/complianceUI/ComplianceUI";
import SystemOneUI from "@/app/(dashboard)/playground/components/systemOneUI/SystemOneUI";
import BetaBadge from "@/components/BetaBadge";
-import { DeprecationBanner } from "@/components/DeprecationBanner";
import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
import { fetchProxySettings } from "@/utils/proxyUtils";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
@@ -100,7 +99,6 @@ export default function PlaygroundPage() {
<SystemOneUI accessToken={accessToken} disabledPersonalKeyCreation={disabledPersonalKeyCreation} />
</TabsContent>
<TabsContent value="agent-builder" className="mt-0 h-full data-hidden:hidden" keepMounted>
- <DeprecationBanner featureName="The Playground's Agent Builder" />
<AgentBuilderView
accessToken={accessToken}
token={token}
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/prompts/page.tsx b/ui/litellm-dashboard/src/app/(dashboard)/prompts/page.tsx
index 7e251844a2c..e181aa51be7 100644
--- a/ui/litellm-dashboard/src/app/(dashboard)/prompts/page.tsx
+++ b/ui/litellm-dashboard/src/app/(dashboard)/prompts/page.tsx
@@ -1,15 +1,9 @@
"use client";
import PromptsPanel from "./_components";
-import { DeprecationBanner } from "@/components/DeprecationBanner";
import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
export default function Prompts() {
const { accessToken, userRole } = useAuthorized();
- return (
- <>
- <DeprecationBanner featureName="Prompt Management" />
- <PromptsPanel accessToken={accessToken} userRole={userRole} />
- </>
- );
+ return <PromptsPanel accessToken={accessToken} userRole={userRole} />;
}
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/workflows/page.integration.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/workflows/page.integration.test.tsx
index 5281ba626e1..6aa7119b034 100644
--- a/ui/litellm-dashboard/src/app/(dashboard)/workflows/page.integration.test.tsx
+++ b/ui/litellm-dashboard/src/app/(dashboard)/workflows/page.integration.test.tsx
@@ -50,9 +50,9 @@ describe("Workflows page access by role", () => {
},
);
- it("hides the deprecation banner along with the page body for a denied role", () => {
- renderAs("Internal User");
+ it("shows an admin the deprecation notice", () => {
+ renderAs("Admin");
- expect(screen.queryByText(/draft deprecation list/i)).not.toBeInTheDocument();
+ expect(screen.getByRole("alert")).toHaveTextContent("Workflows");
});
});
diff --git a/ui/litellm-dashboard/src/components/DeprecationBanner.test.tsx b/ui/litellm-dashboard/src/components/DeprecationBanner.test.tsx
index 596ad2a1626..ead6785bfd4 100644
--- a/ui/litellm-dashboard/src/components/DeprecationBanner.test.tsx
+++ b/ui/litellm-dashboard/src/components/DeprecationBanner.test.tsx
@@ -1,44 +1,20 @@
import { render, screen } from "@testing-library/react";
-import userEvent from "@testing-library/user-event";
import { describe, expect, it } from "vitest";
import { DeprecationBanner } from "./DeprecationBanner";
describe("DeprecationBanner", () => {
- it("names the deprecated feature in the heading and the body", () => {
- render(<DeprecationBanner featureName="Memory" />);
+ it("names the deprecated feature", () => {
+ render(<DeprecationBanner featureName="Workflows" />);
- expect(screen.getByText("Memory is on a draft deprecation list")).toBeInTheDocument();
- expect(screen.getByText(/Memory is one of several experimental features/)).toBeInTheDocument();
- });
-
- it("states the target removal date and that the list is not final", () => {
- render(<DeprecationBanner featureName="Memory" />);
-
- expect(screen.getByText(/as early as September 1, 2026/)).toBeInTheDocument();
- expect(screen.getByText(/This list is a draft and is not final/)).toBeInTheDocument();
+ expect(screen.getByRole("alert")).toHaveTextContent("Workflows");
});
it("links to the deprecation discussion in a new tab without leaking the opener", () => {
- render(<DeprecationBanner featureName="Memory" />);
+ render(<DeprecationBanner featureName="Workflows" />);
const link = screen.getByRole("link", { name: "deprecation discussion" });
expect(link).toHaveAttribute("href", "https://github.com/BerriAI/litellm/discussions/32090");
expect(link).toHaveAttribute("target", "_blank");
expect(link).toHaveAttribute("rel", "noopener noreferrer");
});
-
- it("exposes a named close control", () => {
- render(<DeprecationBanner featureName="Memory" />);
-
- expect(screen.getByRole("button", { name: /close/i })).toBeInTheDocument();
- });
-
- it("hides the banner once the close control is used", async () => {
- const user = userEvent.setup();
- render(<DeprecationBanner featureName="Memory" />);
-
- await user.click(screen.getByRole("button", { name: /close/i }));
-
- expect(screen.queryByText("Memory is on a draft deprecation list")).not.toBeInTheDocument();
- });
});
diff --git a/ui/litellm-dashboard/src/components/DeprecationBanner.tsx b/ui/litellm-dashboard/src/components/DeprecationBanner.tsx
index 9df34636f82..75541e4087c 100644
--- a/ui/litellm-dashboard/src/components/DeprecationBanner.tsx
+++ b/ui/litellm-dashboard/src/components/DeprecationBanner.tsx
@@ -1,52 +1,26 @@
"use client";
-import React, { useState } from "react";
+import React from "react";
import Link from "next/link";
-import { Info, X } from "lucide-react";
+import { Info } from "lucide-react";
+import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
const DEPRECATION_DISCUSSION_URL = "https://github.com/BerriAI/litellm/discussions/32090";
-const DEPRECATION_TARGET_DATE = "September 1, 2026";
interface DeprecationBannerProps {
featureName: string;
}
-export const DeprecationBanner: React.FC<DeprecationBannerProps> = ({ featureName }) => {
- const [isClosed, setIsClosed] = useState(false);
-
- if (isClosed) {
- return null;
- }
-
- return (
- <div
- role="alert"
- className="mb-4 flex items-start gap-3 rounded-lg border border-border bg-muted/50 px-4 py-3 text-sm"
- >
- <Info className="mt-0.5 size-4 shrink-0 text-muted-foreground" />
- <div className="min-w-0 flex-1">
- <p className="font-medium">{`${featureName} is on a draft deprecation list`}</p>
- <p className="mt-1 break-words text-muted-foreground">
- {`${featureName} is one of several experimental features we're considering removing, potentially as early as ${DEPRECATION_TARGET_DATE}. This list is a draft and is not final. If you rely on this feature, please share feedback on the `}
- <Link
- href={DEPRECATION_DISCUSSION_URL}
- target="_blank"
- rel="noopener noreferrer"
- className="underline underline-offset-4"
- >
- deprecation discussion
- </Link>
- .
- </p>
- </div>
- <button
- type="button"
- aria-label="Close"
- onClick={() => setIsClosed(true)}
- className="shrink-0 rounded-md p-0.5 text-muted-foreground transition-colors hover:text-foreground"
- >
- <X className="size-4" />
- </button>
- </div>
- );
-};
+export const DeprecationBanner: React.FC<DeprecationBannerProps> = ({ featureName }) => (
+ <Alert className="mb-4">
+ <Info />
+ <AlertTitle>{`${featureName} is deprecated`}</AlertTitle>
+ <AlertDescription>
+ {`${featureName} will be removed in the near future. See the `}
+ <Link href={DEPRECATION_DISCUSSION_URL} target="_blank" rel="noopener noreferrer">
+ deprecation discussion
+ </Link>
+ {" for details."}
+ </AlertDescription>
+ </Alert>
+);