litellm/ui/litellm-dashboard/src/utils
ryan-crabbe-berri 71d1bfb70a feat(ui): link the User, Team and Created By cells on the Virtual Keys page
The key detail page already walks out to the user, team and org behind a key,
but the Virtual Keys table rendered those same values as dead text, so getting
to a team meant copying its alias and searching the Teams page.

User, Team and Created By now render through the shared IdentityCell with an
href, the same hover-highlight-and-chevron affordance the Key column already
uses.

Sentinel ids do not get a link, since they have no detail page to open.
Rather than repeat that check at every call site, teamDetailHref and
userDetailHref now return undefined for "litellm-dashboard" and
"default_user_id", the way modelGroupHref already does for model grants, and
EntityLink falls back to plain text when it has no href, the way BadgeLink
already does. Both sentinels move into src/utils/sentinels.ts instead of
staying as string literals scattered across components.

Claude-Session: https://claude.ai/code/session_01NfwfQhamRNnSqgXMUjf3h4
2026-09-10 15:55:03 -07:00
..
budgetUtils.ts Show absolute date in Budget Reset column 2026-04-23 15:57:22 -07:00
capabilities.test.ts fix(proxy): let org admins view their organization's usage (#37235) 2026-08-18 14:44:36 -07:00
capabilities.ts fix(proxy): let org admins view their organization's usage (#37235) 2026-08-18 14:44:36 -07:00
cookieUtils.test.ts test(ui): split the vitest suite into unit, component, integration and type projects (#37488) 2026-08-19 20:40:14 +00:00
cookieUtils.ts fix(ui): break logout redirect loop across origins (#29360) 2026-05-30 19:02:29 -07:00
dataUtils.test.ts test(ui): split the vitest suite into unit, component, integration and type projects (#37488) 2026-08-19 20:40:14 +00:00
dataUtils.ts refactor(ui): codemod every toast call site onto lib/toast and delete the antd-era facades (#37253) 2026-08-18 18:24:49 +00:00
debounceConstants.ts refactor(ui): standardize debounce waits behind shared DEBOUNCE_WAIT_MS constant (#33040) 2026-07-13 12:19:57 -07:00
entityLinks.test.ts feat(ui): link the User, Team and Created By cells on the Virtual Keys page 2026-09-10 15:55:03 -07:00
entityLinks.ts feat(ui): link the User, Team and Created By cells on the Virtual Keys page 2026-09-10 15:55:03 -07:00
errorPatterns.ts added and ran prettier autoformatter 2025-10-04 18:19:48 -07:00
errorUtils.test.ts Add unit tests for 5 previously untested UI dashboard files 2026-03-16 12:53:20 -07:00
errorUtils.ts style(ui): run prettier --write across the dashboard (#29622) 2026-06-04 11:37:54 -07:00
jwtUtils.test.ts useAuthorized refactor 2026-02-04 16:37:45 -08:00
jwtUtils.ts useAuthorized refactor 2026-02-04 16:37:45 -08:00
keyExpiryUtils.test.ts fix(ui): require new expiration when regenerating an expired key (#29838) 2026-06-06 09:18:19 -07:00
keyExpiryUtils.ts fix(ui): require new expiration when regenerating an expired key (#29838) 2026-06-06 09:18:19 -07:00
keyUpdateUtils.test.ts Key Max Budget Removal Error Fix 2025-10-17 12:04:58 -07:00
keyUpdateUtils.ts Key Max Budget Removal Error Fix 2025-10-17 12:04:58 -07:00
licenseUtils.test.ts feat(ui): show exact license expiration date in usage cards 2026-07-15 16:52:21 -07:00
licenseUtils.ts feat(ui): show exact license expiration date in usage cards 2026-07-15 16:52:21 -07:00
localStorageUtils.test.ts test(ui): split the vitest suite into unit, component, integration and type projects (#37488) 2026-08-19 20:40:14 +00:00
localStorageUtils.ts feat: hide new badges 2025-12-31 10:42:34 -08:00
maskedSecretUtils.ts fix(ui): stop credential edit from persisting the masked api key (#33797) 2026-07-17 18:25:24 -07:00
mcpHeaderUtils.test.ts feat(mcp): Add tool call and tool list support via UI for Oauth mcps (#28454) 2026-05-22 09:04:04 -07:00
mcpHeaderUtils.ts fix(mcp): load MCP tool configuration tools via the OBO/passthrough-aware GET path (#29960) 2026-06-08 19:58:51 -07:00
mcpTokenStore.test.ts test(ui): split the vitest suite into unit, component, integration and type projects (#37488) 2026-08-19 20:40:14 +00:00
mcpTokenStore.ts refactor(ui): route MCP session tokens through the shared storage helper 2026-08-04 14:15:29 -07:00
mcpToolCrudClassification.test.ts Add unit tests for 5 previously untested UI dashboard files 2026-03-16 12:53:20 -07:00
mcpToolCrudClassification.ts feat(ui): group MCP tools by CRUD risk category in allowlist panels (#23403) 2026-03-11 21:15:25 -07:00
modelPermissions.test.ts fix(ui): withhold team-scoped model writes from view-only sessions too 2026-08-30 10:01:44 -07:00
modelPermissions.ts fix(ui): withhold team-scoped model writes from view-only sessions too 2026-08-30 10:01:44 -07:00
pkce.ts Extract shared PKCE helpers into src/utils/pkce.ts 2026-04-16 10:35:52 -07:00
promptCacheUsage.test.ts feat(ui): show provider prompt cache tokens in chat response metrics (#36827) 2026-08-13 16:58:14 -07:00
promptCacheUsage.ts feat(ui): show provider prompt cache tokens in chat response metrics (#36827) 2026-08-13 16:58:14 -07:00
proxyUtils.test.ts style(ui): run prettier --write across the dashboard (#29622) 2026-06-04 11:37:54 -07:00
proxyUtils.ts added and ran prettier autoformatter 2025-10-04 18:19:48 -07:00
ptuDatetime.test.ts feat(ptu): PTU inputs on the model form and flat cost on the Usage page (#35393) 2026-08-10 11:05:06 -07:00
ptuDatetime.ts feat(ptu): PTU inputs on the model form and flat cost on the Usage page (#35393) 2026-08-10 11:05:06 -07:00
ptuModelInfo.test.ts feat(ptu): gate PTU flat-cost attribution behind an opt-in env var (#36138) 2026-08-10 12:23:20 -07:00
ptuModelInfo.ts feat(ptu): gate PTU flat-cost attribution behind an opt-in env var (#36138) 2026-08-10 12:23:20 -07:00
ptuValidation.test.ts fix(ptu): stop per-token billing on a PTU-configured deployment (#36829) 2026-08-13 20:16:12 -07:00
ptuValidation.ts refactor(ui): move the model info edit form off antd Form (#37392) 2026-08-18 17:40:49 -07:00
returnUrlUtils.test.ts test(ui): split the vitest suite into unit, component, integration and type projects (#37488) 2026-08-19 20:40:14 +00:00
returnUrlUtils.ts fix(ui): navigate to /ui/login/ with trailing slash via hard navigation (#33561) 2026-07-16 12:18:55 -07:00
roles.test.ts feat(ui): add per-key Savings tab to key detail page (#37693) 2026-08-21 14:50:02 -07:00
roles.ts feat(ui): add per-key Savings tab to key detail page (#37693) 2026-08-21 14:50:02 -07:00
searchUtils.test.ts feat(ui): add search to Agent Hub tab and admin agents table 2026-09-01 11:46:58 -07:00
searchUtils.ts feat(ui): add search to Agent Hub tab and admin agents table 2026-09-01 11:46:58 -07:00
secureStorage.ts style(ui): run prettier --write across the dashboard (#29622) 2026-06-04 11:37:54 -07:00
sentinels.ts feat(ui): link the User, Team and Created By cells on the Virtual Keys page 2026-09-10 15:55:03 -07:00
tabRoutes.test.ts refactor(ui): extract shared tab-routing helpers and adopt them in Models + Endpoints (#34435) 2026-07-23 16:36:25 -07:00
tabRoutes.ts refactor(ui): route the sidebar by pathname and shrink the ?page= shim to a redirect table 2026-09-05 16:44:11 -07:00
teamUtils.test.ts Deprecate useTeam in favor of react query 2025-12-23 20:15:42 -08:00
teamUtils.ts Deprecate useTeam in favor of react query 2025-12-23 20:15:42 -08:00
textUtils.test.ts Adding unit testing coverage 2026-01-03 17:25:46 -08:00
textUtils.ts [Feature] UI - Add LiteLLM Params to Edit Model (#16496) 2025-11-11 18:52:11 -08:00
uiHref.test.ts refactor(ui): route the sidebar by pathname and shrink the ?page= shim to a redirect table 2026-09-05 16:44:11 -07:00
uiHref.ts refactor(ui): route the sidebar by pathname and shrink the ?page= shim to a redirect table 2026-09-05 16:44:11 -07:00