mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix: remove submitted mcp new badge
This commit is contained in:
parent
e9697b26bc
commit
7ae84c2b84
2 changed files with 18 additions and 5 deletions
|
|
@ -96,6 +96,23 @@ describe("MCPServers", () => {
|
|||
});
|
||||
});
|
||||
|
||||
it("should not show a new badge on the Submitted MCPs tab", async () => {
|
||||
vi.mocked(networking.fetchMCPServers).mockResolvedValue([]);
|
||||
vi.mocked(networking.fetchMCPServerHealth).mockResolvedValue([]);
|
||||
|
||||
const queryClient = createQueryClient();
|
||||
render(
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<MCPServers {...defaultProps} />
|
||||
</QueryClientProvider>,
|
||||
);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(screen.getByRole("tab", { name: "Submitted MCPs" })).toBeInTheDocument();
|
||||
});
|
||||
expect(screen.queryByRole("tab", { name: /Submitted MCPs\s+New/i })).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("should render mocked MCP servers data in the table", async () => {
|
||||
// Mock MCP servers data
|
||||
const mockServers = [
|
||||
|
|
|
|||
|
|
@ -501,11 +501,7 @@ const MCPServers: React.FC<MCPServerProps> = ({ accessToken, userRole, userID })
|
|||
<Tab>Semantic Filter</Tab>
|
||||
<Tab>Network Settings</Tab>
|
||||
{isAdminRole(userRole) && (
|
||||
<Tab>
|
||||
<span className="flex items-center gap-2">
|
||||
Submitted MCPs <NewBadge />
|
||||
</span>
|
||||
</Tab>
|
||||
<Tab>Submitted MCPs</Tab>
|
||||
)}
|
||||
{isProxyAdminRole(userRole) && (
|
||||
<Tab>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue