litellm/ui/litellm-dashboard/e2e_tests
ryan-crabbe-berri 3ad385a8a4
feat(ui): migrate budgets, workflows, and guardrails-monitor to path routes (#30236)
* feat(ui): cut budgets, workflows, and guardrails-monitor over to path routes

Continues the page-by-page App Router migration (#30185, #30226). All
three legacy switch arms passed only accessToken, so each route wrapper
is a thin useAuthorized() + render. MIGRATED_PAGES routes the sidebar
and redirects the legacy ?page= URLs; the e2e fixture picks all three
up in the migration smoke and sidebar specs automatically.

* refactor(ui): colocate budgets, workflows, and guardrails-monitor components

budgets and workflow_runs were imported only by the legacy switch, so
they move wholesale into their route folders; the budgetItem type
hoists into the shared useBudgets hook, which owns the API response
shape, so the hooks layer no longer imports from a page folder.
GuardrailsMonitor keeps LogViewer, mockData, and MetricCard at the
shared src/components home because ToolDetail and ToolPolicies import
them; the rest moves. eslint suppressions are re-keyed accordingly.

* fix(ui): restore MetricCard test-utils path and merge duplicate import

MetricCard.test.tsx got the moved-tree depth rewrite before being moved
back to src/components/GuardrailsMonitor, leaving a five-level path
that escapes the project root; the suite failed at import. Also merge
the two imports from useBudgets in budget_panel.tsx. Both flagged by
Greptile.
2026-06-11 14:27:40 -07:00
..
fixtures feat(ui): migrate budgets, workflows, and guardrails-monitor to path routes (#30236) 2026-06-11 14:27:40 -07:00
helpers style(ui): run prettier --write across the dashboard (#29622) 2026-06-04 11:37:54 -07:00
tests feat(ui): migrate playground to path routing and colocate its files (#30185) 2026-06-11 12:07:17 -07:00
constants.ts test(e2e): assert internal-user navbar identity is scoped to that user (#29077) 2026-05-30 00:29:30 -07:00
globalSetup.ts feat(ui): migrate projects and access-groups to path routes (#30226) 2026-06-11 13:20:21 -07:00
migration.serverRootPath.config.ts test(ui): data-driven App Router migration E2E smoke (default + server-root-path) (#29974) 2026-06-09 10:40:01 -07:00
playwright.config.ts style(ui): run prettier --write across the dashboard (#29622) 2026-06-04 11:37:54 -07:00
run_e2e.sh test(e2e): cover PROXY_LOGOUT_URL redirect on Logout (#29080) 2026-05-30 18:19:04 -07:00
serverRootPath.config.ts refactor(ui): extract auth state into AuthContext (#28910) 2026-05-26 17:53:03 -07:00