mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
chore(ui): remove stale "New" badges from the dashboard
The badges flagged UI that shipped a while ago, so they no longer tell anyone anything. Dropped all four render sites: the Settings and Admin Settings items in the left nav, the UI Settings tab in the admin panel, and the Submitted MCPs tab. The NewBadge component stays so the next genuinely new surface can use it again. BetaBadge and the "hide new badges" account toggle are untouched, since that toggle still gates BetaBadge.
This commit is contained in:
parent
cdb60af024
commit
8915134864
3 changed files with 5 additions and 24 deletions
|
|
@ -10,7 +10,6 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@
|
|||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
||||
import { Info, TriangleAlert } from "lucide-react";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import NewBadge from "@/components/common_components/NewBadge";
|
||||
import { useBaseUrl } from "@/components/constants";
|
||||
import { toast } from "@/lib/toast";
|
||||
import { addAllowedIP, deleteAllowedIP, getAllowedIPs, getSSOSettings } from "@/components/networking";
|
||||
|
|
@ -378,12 +377,7 @@ const AdminPanel: React.FC<AdminPanelProps> = ({ proxySettings }) => {
|
|||
},
|
||||
{
|
||||
key: "ui-settings",
|
||||
label: (
|
||||
<span className="flex items-center gap-1.5">
|
||||
UI Settings
|
||||
<NewBadge />
|
||||
</span>
|
||||
),
|
||||
label: "UI Settings",
|
||||
children: (
|
||||
<div className="flex flex-col gap-4">
|
||||
<UISettings />
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ import {
|
|||
AlertDialogHeader,
|
||||
AlertDialogTitle,
|
||||
} from "@/components/ui/alert-dialog";
|
||||
import NewBadge from "@/components/common_components/NewBadge";
|
||||
import React, { useEffect, useState, useMemo, useCallback } from "react";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { useMCPServers } from "@/app/(dashboard)/hooks/mcpServers/useMCPServers";
|
||||
|
|
@ -538,8 +537,8 @@ const MCPServers: React.FC<MCPServerProps> = ({ accessToken, userRole, userID })
|
|||
</TabsTrigger>
|
||||
)}
|
||||
{isAdminRole(userRole) && (
|
||||
<TabsTrigger value="submitted" className="flex-none gap-2 rounded-none px-4 py-2">
|
||||
Submitted MCPs <NewBadge />
|
||||
<TabsTrigger value="submitted" className="flex-none rounded-none px-4 py-2">
|
||||
Submitted MCPs
|
||||
</TabsTrigger>
|
||||
)}
|
||||
</TabsList>
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@ import {
|
|||
rolesWithWriteAccess,
|
||||
} from "../utils/roles";
|
||||
import BetaBadge from "./BetaBadge";
|
||||
import NewBadge from "./common_components/NewBadge";
|
||||
import SidebarAccountMenu from "./SidebarAccountMenu/SidebarAccountMenu";
|
||||
import SidebarUsageCard from "./SidebarUsageCard";
|
||||
import { MIGRATED_PAGES, migratedHref, legacyPageHref } from "@/utils/migratedPages";
|
||||
|
|
@ -320,11 +319,7 @@ const menuGroups: MenuGroup[] = [
|
|||
{
|
||||
key: "settings",
|
||||
page: "settings",
|
||||
label: (
|
||||
<span className="flex items-center gap-2">
|
||||
Settings <NewBadge />
|
||||
</span>
|
||||
),
|
||||
label: "Settings",
|
||||
icon: <SettingsIcon {...ICON} />,
|
||||
roles: all_admin_roles,
|
||||
children: [
|
||||
|
|
@ -345,14 +340,7 @@ const menuGroups: MenuGroup[] = [
|
|||
{
|
||||
key: "admin-panel",
|
||||
page: "admin-panel",
|
||||
label: (
|
||||
<span className="flex items-center gap-2">
|
||||
Admin Settings{" "}
|
||||
<NewBadge dot>
|
||||
<span />
|
||||
</NewBadge>
|
||||
</span>
|
||||
),
|
||||
label: "Admin Settings",
|
||||
icon: <SettingsIcon {...ICON} />,
|
||||
roles: all_admin_roles,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue