mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
Moves all 58 antd Button JSX sites across 24 files onto the shadcn Button, leaving zero antd Button importers. Prop mapping follows what already merged rather than a new convention: type="primary" to the default variant, a bare button to outline (the house default), type="text" to ghost, type="link" to link, type="dashed" to outline plus border-dashed, danger to destructive, size="small" to sm, htmlType to type, block to w-full, the icon prop to a child, and loading to disabled plus aria-busy. Icon-only buttons take the matching icon-* size. Inline style props that had a direct utility equivalent moved to className, and the opacity toggle on the create key submit is dropped since the base cva already carries disabled:opacity-50. Base UI's Button defaults type to "button" for native buttons, the same default antd used, so bare buttons inside a form do not start submitting. guardrail_info.tsx and tag_info.tsx lose their last antd import, so their no-restricted-imports suppressions are pruned. The other 22 files keep other antd symbols and keep their entries. One behavior change: the MCP transports docs link now opens in a new tab, matching every other external docs link in the dashboard, instead of navigating the dashboard away. The ModelSettingsModal loading assertion moves off antd's spinner element onto aria-busy, which is what the rest of the suite already asserts; that markup cannot survive removing antd. |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||