litellm/ui/litellm-dashboard/src/components/shared
Mateo Wang 567383c503
feat(proxy)!: model family and access group entries in model_max_budget (#47722)
* feat(ui): let the per-model budget field take a model pattern or access group

* feat(proxy): let model_max_budget entries name a model family or access group, shared across replicas

* fix(proxy): open each shared model budget window once for every replica, and match patterns in linear time

Without Redis, the first replica to charge an entry in a new window now opens it in the window spend table and
the others join it, so no flush replaces spend another replica already added. Budget patterns match by splitting
on `*` instead of a regular expression, a refused request names the entry that refused it, and the key form no
longer offers a typed pattern another row already budgets.

* fix(proxy): read the shared budget window from the writer, and keep concurrent first charges on one replica

Opening a shared window now reads the row from the writer, since a lagging read replica could hand a replica its
own start and let a flush replace the others' spend. A charge that waited on the open no longer resets a local
window another charge on the same replica opened meanwhile. Window tests use fixed timestamps.

* fix(proxy): stop a non proxy admin from lifting a team model cap with a looser group or pattern entry

Group and pattern entries now take precedence over other entries, so a team update by anyone but a proxy admin
must keep each new or changed entry within every existing cap it can take precedence over. A pattern can match a
provider-prefixed or wildcard-routed name, so any two patterns count as overlapping, and a model or group entry
counts as outranking every pattern.

* fix(proxy): narrow model budget pattern overlap, keep team caps under key patterns, and accept only typed patterns in the UI

* fix(proxy): keep model family budgets through database blips, team models and key entries

A failed window open no longer restarts the window at this replica's clock, so it cannot wipe shared spend. Spend charged meanwhile stays local and joins the shared window once the database answers

A key entry named after a model replaces only the team entry of that name, so team pattern and group caps still apply. Team-scoped models are gated and charged under their public name, and group lookups see team deployments

The team update guard compares caps by window length and only ranks patterns that can match the same name, including Bedrock vendor patterns behind a bedrock wildcard route

* fix(proxy): refuse team entries that take precedence over a capped model_max_budget entry

A non-proxy-admin could add a carve-out (an exact model, a narrower pattern or
a group) at or under the family cap, and its own counter then multiplied the
team's spend on that family. Any new entry that takes precedence over a capped
entry now needs a proxy admin, and group members include the team's own public
model names so team deployments cannot hide a group overlap.

* test(router): cover team_public_model_names_of

* docs(proxy): name pattern and access group keys in model_max_budget docstrings

* fix(proxy): name the entry holding the cap in the team model budget raise refusal

* fix(proxy): check precedence when a team edit makes an unenforced model_max_budget entry take effect

* fix(proxy): let an org admin give a legacy model_max_budget row a budget_duration at the same or a lower cap

* fix(proxy): keep a legacy model_max_budget row's stored cap when an org admin gives it a budget_duration
2026-10-28 15:40:57 -07:00
..
__fixtures__ feat(ui): inline Lens settings tab and investigation editor (#44479) 2026-10-04 07:20:14 +00:00
charts feat(ui): give Aria usage charts and PDF answer exports (#48094) 2026-10-23 15:54:26 -07:00
DataTable feat(chat): add Moyai UI, model hub, images, and usage metrics (#40557) (#48108) 2026-10-23 23:39:23 +00:00
dotField feat(ui): inline Lens settings tab and investigation editor (#44479) 2026-10-04 07:20:14 +00:00
form refactor(dashboard): migrate to zod 4 and openai 6 (#44345) 2026-10-03 06:53:41 +00:00
search refactor(ui): use the shadcn Kbd primitive for keyboard hints (#48885) 2026-10-28 19:51:24 +00:00
table_cells feat(teams): show caller member spend and budget on Your Teams (#45674) 2026-10-24 17:09:55 -07:00
timeline fix(ui): polish Lens runs loading, reload, and time range menu (#44789) 2026-10-05 21:27:00 -07:00
timeRange refactor(lens): connect LiteLLM to the independent Lens service (#45529) 2026-10-09 16:17:05 -07:00
AdminOnlyNotice.tsx refactor(ui): map hardcoded Tailwind palette classes onto semantic tokens (#37576) 2026-08-19 22:11:44 -07:00
advanced_date_picker.test.tsx feat(ui): configure the default Usage time range (#48207) 2026-10-24 12:20:13 -07:00
advanced_date_picker.tsx feat(ui): configure the default Usage time range (#48207) 2026-10-24 12:20:13 -07:00
Alert.test.tsx refactor(ui): map hardcoded Tailwind palette classes onto semantic tokens (#37576) 2026-08-19 22:11:44 -07:00
Alert.tsx refactor(ui): install the shadcn alert primitive 2026-08-25 21:24:07 -07:00
BadgeLink.test.tsx feat(ui): link organization teams to their team detail pages (#35120) 2026-07-29 17:20:59 -07:00
BadgeLink.tsx feat(ui): link key info header to its user, creator, team, and organization (#37187) 2026-08-17 10:17:28 -07:00
BudgetPeriodTooltip.test.tsx feat(ui): budget period tooltip on key, team, user and org spend tiles (#48487) 2026-10-26 17:05:37 -07:00
BudgetPeriodTooltip.tsx feat(ui): budget period tooltip on key, team, user and org spend tiles (#48487) 2026-10-26 17:05:37 -07:00
chart_loader.test.tsx Add unit tests for 5 untested UI components 2026-03-11 15:46:14 -07:00
chart_loader.tsx fix(ui): give status colours a readable foreground and drop the muted 70% step (#37649) 2026-08-20 10:58:32 -07:00
CopyButton.test.tsx fix(ui): restore clipboard copying in key and log details (#48425) 2026-10-26 11:12:11 -07:00
CopyButton.tsx fix(ui): restore clipboard copying in key and log details (#48425) 2026-10-26 11:12:11 -07:00
CreatedKeyDisplay.test.tsx fix(ui): keep vendor names and agent instructions in AI wording under SI terminology (#48670) 2026-10-27 16:26:01 -07:00
CreatedKeyDisplay.tsx fix(ui): keep vendor names and agent instructions in AI wording under SI terminology (#48670) 2026-10-27 16:26:01 -07:00
CredentialIdentity.tsx fix(credentials): keep credential labels and edits consistent across UI, API, and replicas (#45835) 2026-10-10 16:26:54 -07:00
credentialOptions.test.ts feat(credentials): add display_name and make credential_name immutable on PATCH (#43148) 2026-10-08 23:49:56 -07:00
credentialOptions.ts feat(credentials): add display_name and make credential_name immutable on PATCH (#43148) 2026-10-08 23:49:56 -07:00
date_picker_types.ts refactor(ui): declare DateRangePickerValue locally instead of importing it from tremor 2026-08-14 11:01:43 -07:00
date_range_presets.ts feat(ui): configure the default Usage time range (#48207) 2026-10-24 12:20:13 -07:00
DurationInput.integration.test.tsx fix(lens): preserve full trace access and expose investigation failures (#44406) 2026-10-03 11:52:55 -07:00
DurationInput.tsx fix(lens): preserve full trace access and expose investigation failures (#44406) 2026-10-03 11:52:55 -07:00
EntityLink.test.tsx feat(ui): link the User, Team and Created By cells on the Virtual Keys page 2026-09-10 15:55:03 -07:00
EntityLink.tsx feat(ui): link the User, Team and Created By cells on the Virtual Keys page 2026-09-10 15:55:03 -07:00
ErrorState.tsx fix(ui): show a failed state with Retry on the Logs table, Usage totals and Caching chart when their fetch errors (#47671) 2026-10-20 17:36:08 -07:00
errorUtils.tsx added and ran prettier autoformatter 2025-10-04 18:19:48 -07:00
InheritedBudgetHint.test.tsx fix(ui): show the team member budget on keys without their own budget (#43927) 2026-10-10 12:36:59 -07:00
InheritedBudgetHint.tsx fix(ui): show the team member budget on keys without their own budget (#43927) 2026-10-10 12:36:59 -07:00
Inspector.test.tsx feat(ui): inline Lens settings tab and investigation editor (#44479) 2026-10-04 07:20:14 +00:00
Inspector.tsx feat(ui): inline Lens settings tab and investigation editor (#44479) 2026-10-04 07:20:14 +00:00
InspectorTable.test.tsx feat(ui): add persistent columns and loading skeletons to Lens runs (#44579) 2026-10-05 15:03:37 +00:00
InspectorTable.tsx fix(ui): polish Lens runs loading, reload, and time range menu (#44789) 2026-10-05 21:27:00 -07:00
Meter.test.tsx refactor(ui): move the dashboard onto class-variance-authority (#38125) 2026-08-24 14:10:31 -07:00
Meter.tsx refactor(ui): move the dashboard onto class-variance-authority (#38125) 2026-08-24 14:10:31 -07:00
MultiSelect.test.tsx refactor(ui): migrate the MCP servers pages off antd (#37522) 2026-08-20 00:50:02 +00:00
MultiSelect.tsx feat(chat): add Moyai UI, model hub, images, and usage metrics (#40557) (#48108) 2026-10-23 23:39:23 +00:00
numerical_input.tsx refactor(ui): move the model info edit form off antd Form (#37392) 2026-08-18 17:40:49 -07:00
Page.tsx refactor(ui): compose dashboard pages with shared layouts (#44306) 2026-10-03 01:35:34 +00:00
PageHeader.test.tsx refactor(ui): compose dashboard pages with shared layouts (#44306) 2026-10-03 01:35:34 +00:00
PageHeader.tsx refactor(ui): compose dashboard pages with shared layouts (#44306) 2026-10-03 01:35:34 +00:00
PaginatedMultiSelect.test.tsx fix(ui): reason-gate the remaining server-searched comboboxes 2026-08-27 14:22:10 -07:00
PaginatedMultiSelect.tsx feat(ui): shareable URL state for usage views and users-to-usage deeplinks (#43425) 2026-10-16 16:42:29 -07:00
PaginatedSearchSelect.integration.test.tsx test(ui): address review feedback 2026-09-17 23:46:53 -07:00
PaginatedSearchSelect.tsx fix(ui): preserve cleared shared select values (#40795) 2026-09-11 18:37:08 -07:00
PasswordInput.tsx refactor(ui): migrate the login, onboarding and search tool forms to react-hook-form and shadcn (#37334) 2026-08-18 13:12:27 -07:00
SavingsTiles.tsx fix(proxy): estimate auto-router baseline costs from durable cache history 2026-09-19 12:44:47 -07:00
ScopedSavingsTab.tsx feat(ui): usage pages consume bounded daily activity routes (#43409) 2026-10-01 17:03:09 -07:00
SearchSelect.integration.test.tsx feat(proxy)!: model family and access group entries in model_max_budget (#47722) 2026-10-28 15:40:57 -07:00
SearchSelect.tsx feat(proxy)!: model family and access group entries in model_max_budget (#47722) 2026-10-28 15:40:57 -07:00
ShortcutHints.test.tsx feat(ui): inline Lens settings tab and investigation editor (#44479) 2026-10-04 07:20:14 +00:00
ShortcutHints.tsx refactor(ui): use the shadcn Kbd primitive for keyboard hints (#48885) 2026-10-28 19:51:24 +00:00
Sidebar.test.tsx refactor(ui): move the dashboard onto class-variance-authority (#38125) 2026-08-24 14:10:31 -07:00
Sidebar.tsx fix(ui): make mobile sidebar and top bar responsive (#44603) 2026-10-05 10:56:08 -07:00
SummaryCard.tsx feat(spend): report prompt caching savings as total and gateway-attributed (#38134) 2026-08-28 00:19:06 -07:00
ToolbarSeparator.test.tsx fix(ui): center vertical toolbar dividers 2026-07-25 18:41:06 -07:00
ToolbarSeparator.tsx fix(ui): center vertical toolbar dividers 2026-07-25 18:41:06 -07:00
usePaginatedCombobox.ts fix(ui): let the paginated search select keep what the user types (#38475) 2026-08-27 13:32:20 -07:00
useShortcut.test.tsx feat(ui): inline Lens settings tab and investigation editor (#44479) 2026-10-04 07:20:14 +00:00
useShortcut.ts feat(ui): inline Lens settings tab and investigation editor (#44479) 2026-10-04 07:20:14 +00:00