Commit Graph

29 Commits

Author SHA1 Message Date
yuneng-jiang
34769fdbf4 Merge remote-tracking branch 'origin' into feature/vkey-modal-squashed 2026-03-06 16:51:21 -08:00
yuneng-jiang
2285dc78b9 [Fix] UI - resolve flaky tests from leaked @tremor/react Tooltip timer
Local vi.mock("@tremor/react") overrides in router_settings tests were
clobbering the global setupTests.ts mock, re-introducing the real Tooltip
component which schedules a setTimeout. When jsdom tears down after each
test file, the pending timer fires and hits window is not defined, which
Vitest flags as an unhandled error that can cause false positive failures
in subsequent tests (including the create_mcp_server timeout in CI).

Fix: add Switch to the global @tremor/react mock in setupTests.ts (the
only reason the local overrides existed), then remove the three local
vi.mock("@tremor/react") blocks so all test files inherit the global mock
with properly stubbed Button, Tooltip, and Switch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 10:28:27 -08:00
Dibyo Mukherjee
518cd3ef60 feat(ui): add key creation deep-links with SSO return URL support
Enables deep-linking directly to the key creation modal with prefilled
form data via URL parameters, including support for preserving these
deep-links through SSO authentication flows.

Key Creation Deep-links:
- Auto-open key creation modal via ?create=true parameter
- Prefill form fields from URL parameters (team_id, key_alias, models, etc.)
- Role-based access control for auto-open (requires write access)
- Race condition protection for redirect handling

Example: /ui?create=true&team_id=abc&key_alias=my-key&models=gpt-4,claude-3

SSO Return URL Preservation:
- Cookie-based return URL storage (works across ports for SSO flows)
- URL validation to prevent open redirect attacks
- Support for both dev and production environments

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-26 15:41:54 -05:00
yuneng-jiang
825503fa1b Refactor react-query hooks 2025-12-24 10:13:55 -08:00
yuneng-jiang
dc3bdffaee Migrate MCP servers to react query 2025-12-22 14:33:38 -08:00
yuneng-jiang
0635b1cbf0 rename 2025-12-11 16:33:23 -08:00
yuneng-jiang
52cb54968a Change to useAuthorized hook 2025-12-11 16:28:03 -08:00
yuneng-jiang
c1c8a6937e Renaming + fixing tests 2025-12-11 16:11:09 -08:00
yuneng-jiang
424934296f adding all files 2025-12-11 15:40:26 -08:00
yuneng-jiang
816854e426
Merge pull request #17623 from BerriAI/litellm_usage_page_ui_improvements
[Feature] Logs Spend Enhancements
2025-12-06 19:56:49 -08:00
yuneng-jiang
4e4a2e7ca2 Spend logs spend column enhancement 2025-12-06 16:14:33 -08:00
yuneng-jiang
805a8f0d9f Loading states for Edit Membership modal 2025-12-06 15:27:47 -08:00
yuneng-jiang
5496e622c1 Unit tests 2025-12-03 23:46:09 -08:00
Ishaan Jaffer
c6b8f19adc ui unit tests fix 2025-11-22 14:05:59 -08:00
yuneng-jiang
7b9c409760
Mock tremor's tooltip to fix flaky tests (#16786) 2025-11-18 17:40:50 -08:00
yuneng-jiang
54425eb57b
Fix flaky tests due to antd Notification Manager (#16740) 2025-11-17 19:47:20 -08:00
yuneng-jiang
4de182c98f
[Feature] UI - Organization Usage in Usage Tab (#16614)
* Organization Usage UI

* Resolved build issues

* Added a test
2025-11-15 16:23:48 -08:00
yuneng-jiang
c5496fd61c
[Feature] UI - Move Budgets out of Experimental (#16544)
* Move budget out of experimental and delete budget with friction

* Fixed tests

* Revert non test change
2025-11-12 13:27:02 -08:00
yuneng-jiang
dd053e1d12
[Feature] UI - Add tags in model creation (#16138)
* Add tags in model creation

* Removing unused import in test
2025-10-31 16:26:30 -07:00
Achintya Rajan
b4444ead0d rebased, removed unused imports 2025-10-10 10:25:48 -07:00
Achintya Rajan
87b0ff6ab0 Update CreateKeyPage.expiredToken.test.tsx 2025-10-09 13:58:34 -07:00
Achintya Rajan
fe2d4addfa Update CreateKeyPage.expiredToken.test.tsx 2025-10-08 14:10:09 -07:00
Achintya Rajan
d6852b11ae Create CreateKeyPage.expiredToken.test.tsx 2025-10-08 13:41:00 -07:00
=
5197268a58 added and ran prettier autoformatter 2025-10-04 18:19:48 -07:00
Krrish Dholakia
2de05b4fd8 test: add min test for filtering logic 2025-10-04 14:05:55 -07:00
Krrish Dholakia
509927eec9 test: add vitest for clipboard http scenario 2025-10-04 11:34:12 -07:00
DrQuacks
9a27eb5d0c edited tests to allow build 2025-10-02 18:32:26 -07:00
DrQuacks
a91a7e7750 added testing file for api keys dashboard 2025-10-02 16:17:02 -07:00
=
f80660acd9 vitests for GuardrailViewer components 2025-09-18 16:57:22 -07:00