litellm/ui/litellm-dashboard/src
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
..
app test(ui): drive fields with change events where the typing is not the behaviour (#37495) 2026-08-19 12:11:37 -07:00
components test(ui): drive fields with change events where the typing is not the behaviour (#37495) 2026-08-19 12:11:37 -07:00
contexts refactor(ui): move dashboard toasts from antd message/notification onto sonner (#37207) 2026-08-17 18:22:41 -07:00
data feat(ui): shadcn migration foundation: Tailwind v4, shadcn init, antd cascade fix (#31995) 2026-07-02 19:02:27 -07:00
hooks 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
lib test(ui): drive fields with change events where the typing is not the behaviour (#37495) 2026-08-19 12:11:37 -07:00
utils refactor(ui): move the model info edit form off antd Form (#37392) 2026-08-18 17:40:49 -07:00
autorouter_presets.json feat(ui): add Lite mixed-provider auto-router preset (#37068) 2026-08-17 10:07:01 -07:00
types.ts added and ran prettier autoformatter 2025-10-04 18:19:48 -07:00