mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
* feat(ui): shadcn migration foundation: Tailwind v4, shadcn init, antd cascade fix
Upgrade the dashboard from Tailwind v3 to v4 with CSS-first config: the
official upgrade codemod renamed utilities across 151 files, and
tailwind.config.js (plus the dead tailwind.config.ts) is replaced by
@theme tokens, @source globs, and @plugin directives in globals.css. The
Tremor safelist becomes @source inline patterns and the legacy tremor
theme tokens carry over verbatim. ui_colors.json was build-time only and
fed the dying Tremor palette, so its brand values are inlined and the
file removed; runtime theming replaces that path next.
shadcn is initialized with a hand-authored components.json (rsc,
cssVariables, baseColor gray) pointing utils at the existing
lib/cva.config.ts, which now exports cn (cva beta cx + twMerge) instead
of adding class-variance-authority as a second variant library. The two
ad-hoc cn helpers fold into it. Button lands as the canary primitive,
adapted to cva beta and React 18 forwardRef, with tests covering the
variant, twMerge, asChild, and ref seams. --radius is 0.5rem so the
shadcn radius scale reproduces Tailwind defaults and legacy rounded-*
classes render unchanged.
antd v5 emits unlayered CSS-in-JS that would beat every layered v4
utility, so AntdGlobalProvider now wraps the app in StyleProvider layer
and ConfigProvider cssVar, and globals.css declares
@layer theme, base, antd, components, utilities. antd wins over
preflight but yields to utilities, which is what lets migrated shadcn
pages coexist with legacy antd pages. Preflight stays global with the
three v3 behaviors pinned (default border color, button cursor,
placeholder color).
* fix(ui): restore tremor opacity tints removed by tailwind v4
Tailwind v4 removed the *-opacity-* utilities, but the precompiled
@tremor/react dist still composes them with shade-500 palette classes
(bg-opacity-10 over bg-<color>-500 etc.), so Badge, BadgeDelta, Callout,
light Icon and Button, BarList, and ProgressBar lost their tints and
rendered solid 500-shade fills. Adversarial review caught it; the
original smoke pages only exercised antd Tags.
tremor-v3-compat.css restores exactly the pairs tremor emits: for each
of the 22 safelisted colors, bg-opacity-{10,20,40}, hover/group-hover
bg-opacity-{20,30}, and ring-opacity-{20,40} against the -500 shade,
via color-mix into the utilities layer. Tremor's colorPalette maps both
background and iconRing to 500, so the -500 pairing covers every
composition in the dist; dark: variants are inert until dark mode ships.
The shim dies with @tremor/react at the end of the migration.
The upgrade codemod also missed two hand-rolled modal scrims using
bg-black bg-opacity-{30,50} (solid black under v4); now bg-black/30 and
bg-black/50. Removed the docker/build_admin_ui.sh copy of
enterprise_colors.json into the deleted ui_colors.json; that build-time
rebrand path is retired and its runtime replacement lands with the
theming phase.
* fix(ui): pair ring-opacity-40 with shade 300 in tremor compat shim
Tremor's colorPalette maps ring to shade 300, and the only consumer of
ring-opacity-40 (Icon variant outlined) composes it with that shade,
so the shade-500 rows were dead and outlined icon rings would render
at full opacity. Latent today (no dashboard usage of the outlined
variant); caught by adversarial review. ring-opacity-20 stays at 500
(iconRing), matching Badge and BadgeDelta.
146 lines
2.5 KiB
JSON
146 lines
2.5 KiB
JSON
{
|
|
"reportAny": {
|
|
"limit": 37484
|
|
},
|
|
"reportArgumentType": {
|
|
"limit": 2721
|
|
},
|
|
"reportAssignmentType": {
|
|
"limit": 330
|
|
},
|
|
"reportAttributeAccessIssue": {
|
|
"limit": 519
|
|
},
|
|
"reportCallIssue": {
|
|
"limit": 131
|
|
},
|
|
"reportConstantRedefinition": {
|
|
"limit": 59
|
|
},
|
|
"reportDeprecated": {
|
|
"limit": 326
|
|
},
|
|
"reportDuplicateImport": {
|
|
"limit": 42
|
|
},
|
|
"reportExplicitAny": {
|
|
"limit": 10397
|
|
},
|
|
"reportFunctionMemberAccess": {
|
|
"limit": 11
|
|
},
|
|
"reportGeneralTypeIssues": {
|
|
"limit": 227
|
|
},
|
|
"reportIncompatibleMethodOverride": {
|
|
"limit": 78
|
|
},
|
|
"reportIncompatibleVariableOverride": {
|
|
"limit": 12
|
|
},
|
|
"reportInconsistentOverload": {
|
|
"limit": 18
|
|
},
|
|
"reportIndexIssue": {
|
|
"limit": 39
|
|
},
|
|
"reportInvalidTypeForm": {
|
|
"limit": 35
|
|
},
|
|
"reportInvalidTypeVarUse": {
|
|
"limit": 5
|
|
},
|
|
"reportMatchNotExhaustive": {
|
|
"limit": 2
|
|
},
|
|
"reportMissingParameterType": {
|
|
"limit": 5900
|
|
},
|
|
"reportMissingTypeArgument": {
|
|
"limit": 15918
|
|
},
|
|
"reportMissingTypeStubs": {
|
|
"limit": 41
|
|
},
|
|
"reportOperatorIssue": {
|
|
"limit": 9
|
|
},
|
|
"reportOptionalCall": {
|
|
"limit": 7
|
|
},
|
|
"reportOptionalIterable": {
|
|
"limit": 6
|
|
},
|
|
"reportOptionalMemberAccess": {
|
|
"limit": 1086
|
|
},
|
|
"reportOptionalOperand": {
|
|
"limit": 6
|
|
},
|
|
"reportOptionalSubscript": {
|
|
"limit": 17
|
|
},
|
|
"reportPossiblyUnboundVariable": {
|
|
"limit": 78
|
|
},
|
|
"reportPrivateUsage": {
|
|
"limit": 2438
|
|
},
|
|
"reportRedeclaration": {
|
|
"limit": 12
|
|
},
|
|
"reportReturnType": {
|
|
"limit": 226
|
|
},
|
|
"reportTypedDictNotRequiredAccess": {
|
|
"limit": 30
|
|
},
|
|
"reportUndefinedVariable": {
|
|
"limit": 5
|
|
},
|
|
"reportUnknownArgumentType": {
|
|
"limit": 45905
|
|
},
|
|
"reportUnknownLambdaType": {
|
|
"limit": 113
|
|
},
|
|
"reportUnknownMemberType": {
|
|
"limit": 40556
|
|
},
|
|
"reportUnknownParameterType": {
|
|
"limit": 20418
|
|
},
|
|
"reportUnknownVariableType": {
|
|
"limit": 32168
|
|
},
|
|
"reportUnnecessaryCast": {
|
|
"limit": 177
|
|
},
|
|
"reportUnnecessaryComparison": {
|
|
"limit": 1025
|
|
},
|
|
"reportUnnecessaryContains": {
|
|
"limit": 7
|
|
},
|
|
"reportUnnecessaryIsInstance": {
|
|
"limit": 1212
|
|
},
|
|
"reportUntypedBaseClass": {
|
|
"limit": 165
|
|
},
|
|
"reportUntypedFunctionDecorator": {
|
|
"limit": 33
|
|
},
|
|
"reportUnusedClass": {
|
|
"limit": 33
|
|
},
|
|
"reportUnusedFunction": {
|
|
"limit": 206
|
|
},
|
|
"reportUnusedImport": {
|
|
"limit": 1005
|
|
},
|
|
"reportUnusedVariable": {
|
|
"limit": 1297
|
|
}
|
|
}
|