litellm/ui/litellm-dashboard/src/lib
yuneng-jiang 4bb3152cc5
test(ui): drive fields with change events where the typing is not the behaviour (#37495)
user.type dispatches one event per character and re-renders the whole form on
each one, so a test that only needs a field to hold a value pays for every
keystroke. Where the value is all the test wants, fireEvent.change sets it in
one go.

Measured against a control on the same tree: the 100 converted files went from
654s to 619s of CPU, 5.4% cheaper, while the files nobody touched drifted 1.2%
the other way. Modest, and honest about it.

Rolled out one file at a time, running each before and after and keeping the
conversion only where the file stayed green. That rejected 35 files, all cases
where the keystrokes are the behaviour: Base UI comboboxes drive their filter
from real keyboard input and ignore a raw change event, and the same goes for
autocompletes, debounces and key handlers. Those keep user.type.
2026-08-19 12:11:37 -07:00
..
forms test(ui): drive fields with change events where the typing is not the behaviour (#37495) 2026-08-19 12:11:37 -07:00
http Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_pr35110_itpm_otpm 2026-08-18 16:11:12 -07:00
assetPaths.test.ts fix(ui): harden provider logo map typing and bundled asset guard (#34163) 2026-07-21 16:11:38 -07:00
assetPaths.ts fix(ui): harden provider logo map typing and bundled asset guard (#34163) 2026-07-21 16:11:38 -07:00
autorouter_presets.test.ts feat(ui): configure the auto router's heuristic scorer from the Admin UI (#37216) 2026-08-18 01:10:13 +00:00
autorouter_presets.ts fix(UI): add default model pin to complexity router UI (#36615) 2026-08-17 10:04:23 -07:00
cva.config.ts feat(ui): shadcn migration foundation: Tailwind v4, shadcn init, antd cascade fix (#31995) 2026-07-02 19:02:27 -07:00
serverRootPath.ts fix(ui): render logos under a custom server_root_path (#31156) 2026-06-24 17:13:10 -07:00
toast.test.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
toast.ts refactor(ui): move dashboard toasts from antd message/notification onto sonner (#37207) 2026-08-17 18:22:41 -07:00