litellm/ui/litellm-dashboard/src
shin-bot-litellm e2fa31edce feat(ui): add license expiration display to usage indicator (#20763)
* feat(ui): add license expiration display to usage indicator

- Add getLicenseInfo() function to networking.tsx that calls /health/license
- Display license expiration as human-readable 'X days remaining' or 'Expires in X months'
- Show warning styling (yellow) if license expires in < 30 days
- Show error styling (red) if license is expired
- Fetch license info in parallel with usage data for efficiency
- Include license type display in expanded card view
- Compact UI suitable for sidebar widget

* fix: timezone mismatch in license expiration calculation

Addresses Greptile review feedback - forces UTC midnight for expiration
date and normalizes current date to local midnight to prevent off-by-one
errors in days remaining calculation.

---------

Co-authored-by: Shin <shin@openclaw.dev>
2026-02-11 15:46:33 +05:30
..
app Merge pull request #20910 from BerriAI/litellm_ui_hide_usage_modal 2026-02-10 20:07:40 -08:00
components feat(ui): add license expiration display to usage indicator (#20763) 2026-02-11 15:46:33 +05:30
contexts refactor: Directly use Ant Design's notification hook instead of App.useApp for notification management. 2026-02-06 15:35:11 +05:30
hooks [UI] M2M OAuth2 UI Flow (#20794) 2026-02-09 19:28:02 -08:00
lib added and ran prettier autoformatter 2025-10-04 18:19:48 -07:00
utils useAuthorized refactor 2026-02-04 16:37:45 -08:00
types.ts added and ran prettier autoformatter 2025-10-04 18:19:48 -07:00