mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
* 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> |
||
|---|---|---|
| .. | ||
| a2a | ||
| access_control | ||
| batches | ||
| claude_code | ||
| cli_harness | ||
| codex | ||
| coverage_registry | ||
| gateway | ||
| guardrails | ||
| llm_translation | ||
| logging | ||
| management | ||
| mcp | ||
| migrations | ||
| other | ||
| perf | ||
| quota_management | ||
| router | ||
| ui | ||
| AGENTS.md | ||
| conftest.py | ||
| CONTRIBUTING.md | ||
| e2e_config.py | ||
| e2e_db.py | ||
| e2e_http.py | ||
| e2e_metadata.py | ||
| fixture_bundle.py | ||
| fixture_canonical.py | ||
| fixture_mode.py | ||
| fixture_profile.py | ||
| idp.py | ||
| idp_realm.json | ||
| junit_properties.py | ||
| lifecycle.py | ||
| memory_readings.py | ||
| models.py | ||
| otel_client.py | ||
| PROVIDER_CACHE.md | ||
| provider_cache.py | ||
| provider_cache_redis.py | ||
| provider_cache_routing.py | ||
| provider_edge.py | ||
| provider_edge_bedrock.py | ||
| proxy_client.py | ||
| pytest.ini | ||
| transport.py | ||