mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
* fix(ui): use one label for sidebar and page title
The Models + Endpoints, Vector Stores, Cost Tracking and UI Theme pages
showed one name in the sidebar and another in the page header, each from
its own i18n key. Each header now reads the sidebar's shell.nav.items key,
and the page-specific title keys are dropped from en and zh-CN.
The models page is now "Model Management" in both places. The other three
keep their sidebar text ("Vector Stores", "Cost Tracking", "UI Theme").
The cost optimization description that pointed users at "Models +
Endpoints" now names "Model Management", and the e2e specs and fixtures
that clicked or asserted the old strings follow the new labels.
* test(ui): scope models heading lookup to the page header
The header breadcrumb is also an h1 and now reads "Model Management",
so the unscoped heading lookup in sidebar.spec matched two elements.
* fix(ui): keep page-owned title keys with matching values
Each page keeps its own title key instead of reading the sidebar's
shell.nav.items key. The four title keys are back in en and zh-CN with
values that match their sidebar labels: "Model Management", "Vector
Stores", "Cost Tracking" and "UI Theme", and the zh-CN equivalents.
132 lines
4.8 KiB
TypeScript
132 lines
4.8 KiB
TypeScript
export type MigratedPage = Readonly<{
|
|
segment: string;
|
|
linkName: string | RegExp;
|
|
group?: string;
|
|
content: Readonly<{ role: "heading" | "tab" | "button"; name: string }> | Readonly<{ text: string }>;
|
|
unlicensedText?: string;
|
|
}>;
|
|
|
|
export const MIGRATED_E2E_PAGES: Readonly<Record<string, MigratedPage>> = {
|
|
"api-keys": { segment: "api-keys", linkName: "Virtual Keys", content: { role: "heading", name: "Virtual Keys" } },
|
|
models: {
|
|
segment: "models-and-endpoints",
|
|
linkName: "Model Management",
|
|
content: { role: "heading", name: "Model Management" },
|
|
},
|
|
"llm-playground": { segment: "playground", linkName: "Playground", content: { role: "tab", name: "Chat" } },
|
|
projects: {
|
|
segment: "projects",
|
|
linkName: /^Projects(?: Beta)?$/,
|
|
content: { role: "heading", name: "Projects" },
|
|
unlicensedText: "This is a LiteLLM Enterprise feature, and requires a valid key to use. Get a trial key here.",
|
|
},
|
|
"access-groups": {
|
|
segment: "access-groups",
|
|
linkName: "Access Groups",
|
|
content: { role: "heading", name: "Access Groups" },
|
|
},
|
|
budgets: { segment: "budgets", linkName: "Budgets", content: { role: "heading", name: "Budgets" } },
|
|
workflows: {
|
|
segment: "workflows",
|
|
linkName: "Workflow Runs",
|
|
group: "Agentic",
|
|
content: { text: "Workflow Runs" },
|
|
},
|
|
"guardrails-monitor": {
|
|
segment: "guardrails-monitor",
|
|
linkName: "Guardrails Monitor",
|
|
content: { role: "heading", name: "Guardrails Monitor" },
|
|
},
|
|
"mcp-servers": {
|
|
segment: "mcp-servers",
|
|
linkName: "MCP Servers",
|
|
content: { role: "heading", name: "MCP Servers" },
|
|
},
|
|
"search-tools": {
|
|
segment: "search-tools",
|
|
linkName: "Search Tools",
|
|
group: "Tools",
|
|
content: { role: "heading", name: "Search Tools" },
|
|
},
|
|
"tag-management": {
|
|
segment: "tag-management",
|
|
linkName: "Tag Management",
|
|
group: "Experimental",
|
|
content: { role: "heading", name: "Tag Management" },
|
|
},
|
|
"vector-stores": {
|
|
segment: "vector-stores",
|
|
linkName: "Vector Stores",
|
|
group: "Tools",
|
|
content: { role: "heading", name: "Vector Stores" },
|
|
},
|
|
memory: { segment: "memory", linkName: "Memory", group: "Agentic", content: { role: "heading", name: "Memory" } },
|
|
policies: { segment: "policies", linkName: "Policies", content: { role: "tab", name: "Policy Simulator" } },
|
|
guardrails: { segment: "guardrails", linkName: "Guardrails", content: { role: "tab", name: "Guardrails" } },
|
|
prompts: {
|
|
segment: "prompts",
|
|
linkName: "Prompts",
|
|
group: "Experimental",
|
|
content: { role: "button", name: "Add New Prompt" },
|
|
},
|
|
"tool-policies": {
|
|
segment: "tool-policies",
|
|
linkName: "Tool Policies",
|
|
group: "Tools",
|
|
content: { role: "heading", name: "Tool Policies" },
|
|
},
|
|
skills: { segment: "skills", linkName: "Skills Hub", content: { role: "heading", name: "Skills Hub" } },
|
|
caching: { segment: "caching", linkName: "Response Cache", content: { role: "tab", name: "Cache Settings" } },
|
|
"cost-tracking": {
|
|
segment: "cost-tracking",
|
|
linkName: "Cost Tracking",
|
|
group: "Settings",
|
|
content: { role: "heading", name: "Cost Tracking" },
|
|
},
|
|
"transform-request": {
|
|
segment: "transform-request",
|
|
linkName: "API Playground",
|
|
group: "Experimental",
|
|
content: { role: "heading", name: "Playground" },
|
|
},
|
|
"ui-theme": {
|
|
segment: "ui-theme",
|
|
linkName: "UI Theme",
|
|
group: "Settings",
|
|
content: { role: "heading", name: "UI Theme" },
|
|
},
|
|
logs: { segment: "logs", linkName: "Logs", content: { role: "tab", name: "Request Logs" } },
|
|
"admin-panel": {
|
|
segment: "admin-panel",
|
|
linkName: "Admin Settings",
|
|
group: "Settings",
|
|
content: { role: "heading", name: "Admin Access" },
|
|
},
|
|
"logging-and-alerts": {
|
|
segment: "logging-and-alerts",
|
|
linkName: "Logging & Alerts",
|
|
group: "Settings",
|
|
content: { role: "tab", name: "Logging Callbacks" },
|
|
},
|
|
"model-hub-table": {
|
|
segment: "model-hub-table",
|
|
linkName: "AI Hub",
|
|
content: { role: "heading", name: "AI Hub" },
|
|
},
|
|
new_usage: { segment: "usage", linkName: "Usage", content: { role: "heading", name: "Usage" } },
|
|
agents: { segment: "agents", linkName: "Agents", group: "Agentic", content: { role: "heading", name: "Agents" } },
|
|
"router-settings": {
|
|
segment: "router-settings",
|
|
linkName: "Router Settings",
|
|
group: "Settings",
|
|
content: { role: "heading", name: "Routing Settings" },
|
|
},
|
|
users: { segment: "users", linkName: "Internal Users", content: { role: "tab", name: "Users" } },
|
|
teams: { segment: "teams", linkName: "Teams", content: { role: "heading", name: "Teams" } },
|
|
organizations: {
|
|
segment: "organizations",
|
|
linkName: "Organizations",
|
|
content: { text: "Click on an organization ID to view its details." },
|
|
unlicensedText: "This is a LiteLLM Enterprise feature, and requires a valid key to use. Get a trial key here.",
|
|
},
|
|
};
|