mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
feat(ui): drop the Beta badge from the Cost Optimization nav item (#43967)
Co-authored-by: Krrish Dholakia <krrishdholakia@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
ca05eca2d3
commit
5e5882244a
2 changed files with 4 additions and 8 deletions
|
|
@ -607,13 +607,13 @@ describe("Sidebar (leftnav)", () => {
|
|||
expect(label).toHaveClass("group-data-[collapsed=true]/sidebar:hidden");
|
||||
});
|
||||
|
||||
it("shows Cost Optimization with a Beta badge and no feature-flag gate", () => {
|
||||
it("shows Cost Optimization without a Beta badge and no feature-flag gate", () => {
|
||||
const { container } = renderWithProviders(<Sidebar {...defaultProps} enableProjectsUI={false} />);
|
||||
|
||||
const costOptimization = container.querySelector('a[href*="cost-optimization"]');
|
||||
expect(costOptimization).not.toBeNull();
|
||||
expect(costOptimization!).toHaveTextContent(/Cost Optimization/);
|
||||
expect(costOptimization!).toHaveTextContent(/Beta/);
|
||||
expect(costOptimization!).toHaveTextContent("Cost Optimization");
|
||||
expect(costOptimization!).not.toHaveTextContent("Beta");
|
||||
|
||||
expect(container.querySelector('a[href*="projects"]')).toBeNull();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -240,11 +240,7 @@ const menuGroups: MenuGroup[] = [
|
|||
page: "cost-optimization",
|
||||
icon: <PiggyBank {...ICON} />,
|
||||
roles: [...all_admin_roles, ...internalUserRoles],
|
||||
label: (
|
||||
<span className="flex items-center gap-2">
|
||||
Cost Optimization <BetaBadge />
|
||||
</span>
|
||||
),
|
||||
label: "Cost Optimization",
|
||||
},
|
||||
{ key: "logs", page: "logs", label: "Logs", icon: <Activity {...ICON} /> },
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue