litellm/tests/e2e/ui/tests
ryan-crabbe-berri f369fbb310
feat(ui): keep cost optimization tabs and filters in the URL (#41463)
* feat(ui): persist caching and cost page state in the URL

Caching keeps its tab, date range, key and model filters and the open error drilldown in the query string. Cost Tracking keeps which sections are open, the discount sub-tab and the calculator period. Cost Optimization keeps its tab, the shared date range, the savings view, the cache leakage grouping and sort, and the auto-router sub-tab and router. Tabs go through useUrlTab so unknown or role-hidden values fall back and are cleared, and the caching query now sends local calendar days so it matches the days in the URL

* fix(ui): address review on caching-cost url state

The caching activity query goes back to sending UTC days, because /global/activity/cache_hits filters on UTC days and has no timezone parameter. The URL keeps local days and the query now covers them in full again, with a timezone-pinned regression test. This supersedes the previous commit message, which said the query sends local days

The Overall savings toggle stores the shared SavingsAccumulation values (?savings=per-interval), which is the value the key savings view uses. useDailyActivityRange takes the date range as a required argument so no unused in-memory range is created, and the URL range hook no longer creates a second one either. The local visited-tabs hook is renamed useVisitedUrlTabs so it does not shadow the shared useVisitedTabs. Tests now cover unpadded URL days, an unknown ?leak_by= and the checked radio for an unknown ?period=

* feat(ui): keep cost optimization tabs and filters in the URL

The page tab now resolves against the full static tab list and the role
decides only what renders. A proxy-admin-only link opened by another role
falls back to Overall and keeps ?tab= in the URL, so it still works once
an admin role arrives, and the hidden panel never mounts.

The prompt caching requests table keeps its filter in ?requests_filter=.
The selected auto-router stays in local state because AutoRouterUsageView
is also rendered by the user and key detail views.

Tab changes from Base UI are matched against the tab list before they reach
the URL setter.

* test(ui): cover cost optimization tab links across roles, slow role and login

---------

Co-authored-by: Yuneng Jiang <yuneng@berri.ai>
2026-11-27 10:34:43 -08:00
..
auth ci: remove CircleCI (#50950) 2026-11-11 15:38:27 -08:00
budgets fix(ui): use one English name per admin UI concept (#52968) 2026-11-20 09:47:32 -08:00
costOptimization feat(ui): keep cost optimization tabs and filters in the URL (#41463) 2026-11-27 10:34:43 -08:00
guardrails refactor(ui): migrate guardrail and policy forms onto form kit (#54621) 2026-11-26 16:26:01 -08:00
integrationCritical refactor(ui): move customer hierarchy forms onto the form kit (#54566) 2026-11-26 16:50:51 -08:00
internal-user test(e2e): expect only key-creating teams in the Create Key team dropdown (#53543) 2026-11-22 07:53:16 +00:00
internal-viewer feat(ui): redesign the virtual key overview, header and loading state (#53514) 2026-11-21 22:02:34 -08:00
login feat(ui): show the new LiteLLM logo on the login page (#52789) 2026-11-18 22:53:21 -08:00
logs test(e2e): follow the Aria sidebar move and the Skills Hub rename in UI specs (#50453) 2026-11-06 14:59:01 -08:00
mcp refactor(ui): migrate MCP operations forms to the form kit (#54557) 2026-11-26 23:36:59 -08:00
migration fix(ui): align observability and portal page headers (#53283) 2026-11-21 14:27:53 -08:00
modelHub refactor(ui): move AI Hub visibility forms onto the form kit (#54512) 2026-11-25 16:28:41 -08:00
modelsPage test(e2e): expect the Models refresh action on the tab row again (#54205) 2026-11-24 10:39:12 -08:00
navigation fix(ui): use one label for sidebar and page title (#53466) 2026-11-21 15:33:32 -08:00
playground feat(ui): redesign the playground chat around a single composer and inspector (#46934) 2026-10-16 14:04:36 -07:00
prompts refactor(ui): move skill and prompt editor forms onto the form kit (#54577) 2026-11-26 16:36:55 -08:00
proxy-admin refactor(ui): move membership forms onto the form kit (#54629) 2026-11-27 10:04:42 -08:00
settings refactor(ui): move notification settings forms onto the form kit (#54559) 2026-11-27 10:05:35 -08:00
tables test: repair two CI tests broken by intentional changes 2026-09-05 12:02:48 -07:00
tagManagement test(ci): repair stale tests and flaky CI infrastructure (#43983) 2026-10-01 17:46:43 +00:00
team-admin test(ui-e2e): read the virtual key from its own pre in the Save your Key dialog (#47408) 2026-10-19 15:06:35 -07:00
usage feat(ui): add PDF export to the Usage page export modal (#53951) 2026-11-23 16:46:16 -08:00
users refactor(ui): move membership forms onto the form kit (#54629) 2026-11-27 10:04:42 -08:00