mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
* fix(ui): forward refs through ui primitives and fail tests on swallowed refs Under React 18 a ref passed to a plain function component is dropped with only a dev console warning, so Base UI render-prop triggers composed over our shadcn-style primitives silently stop working (the tooltip just never opens; ui/badge.tsx hit exactly this on the shared DataTable branch). Label, Separator, Skeleton, UiLoadingSpinner and the Table family now use React.forwardRef like Button and Input already did, a contract test pins ref delivery for each, and setupTests turns React's ref warning into a test failure so the next primitive that swallows a ref fails CI instead of shipping a dead tooltip * fix(ui): include captured ref warnings in the tripwire error The afterEach tripwire threw a fixed message and discarded the collected React warnings, so a failure never said which component swallowed the ref. Append the captured warnings (component name + stack) to the thrown error. |
||
|---|---|---|
| .. | ||
| eslint-rules | ||
| CreateKeyPage.expiredToken.test.tsx | ||
| fetch-location-rule.test.ts | ||
| lint-budget-lib.test.ts | ||
| setupTests.ts | ||
| test-utils.tsx | ||
| top_key_view.test.tsx | ||