litellm/tests/e2e/ui/fixtures/pages.ts
yuneng-jiang 63d2f4fef7
refactor(ui): remove the deprecated API Reference page (#51246)
The API Reference page was already behind a deprecation banner. This deletes
the /ui/api-reference route and its components, the Developer Tools sidebar
entry and page description, the legacy ?page=api_ref redirects, and the i18n
strings only that page used.

Old ?page=api_ref and ?page=api-reference bookmarks now fall through to the
dashboard like any other unknown page id, since there is no replacement page.

Tests that listed the page are updated: the sidebar and legacy-route vitest
files, the uiHref examples, the e2e sidebar fixtures and Internal Viewer nav
check, and the UI path detection unit test.
2026-11-11 22:55:32 +00:00

32 lines
935 B
TypeScript

/**
* Enum for all page query parameters supported in the app.
* These values correspond to the `page` query parameter used in the URL.
*/
export enum Page {
ApiKeys = "api-keys",
Models = "models",
LlmPlayground = "llm-playground",
Users = "users",
Teams = "teams",
Organizations = "organizations",
AdminPanel = "admin-panel",
LoggingAndAlerts = "logging-and-alerts",
Budgets = "budgets",
Guardrails = "guardrails",
Agents = "agents",
Prompts = "prompts",
TransformRequest = "transform-request",
RouterSettings = "router-settings",
UiTheme = "ui-theme",
CostTracking = "cost-tracking",
CostOptimization = "cost-optimization",
ModelHubTable = "model-hub-table",
Caching = "caching",
Logs = "logs",
McpServers = "mcp-servers",
SearchTools = "search-tools",
ToolPolicies = "tool-policies",
TagManagement = "tag-management",
VectorStores = "vector-stores",
NewUsage = "new_usage",
}