From a477e6c85ee73cfd250cc22859ed2b884daf8cf8 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 23 Apr 2026 20:44:18 +0000 Subject: [PATCH] feat(ui): pricing_calculator/index to shadcn - antd Button/Radio.Group/Radio.Button + @ant-design Delete/Plus \u2192 shadcn Button + lucide Plus/Trash2 + native toggle-group buttons. - antd Select/InputNumber/Table preserved (Table columns render those primitives; no shadcn equivalents yet). Gates: TS \u2713 | Build \u2713. Co-authored-by: yuneng-jiang --- .../pricing_calculator/index.tsx | 60 ++++++++++++------- 1 file changed, 40 insertions(+), 20 deletions(-) diff --git a/ui/litellm-dashboard/src/components/CostTrackingSettings/pricing_calculator/index.tsx b/ui/litellm-dashboard/src/components/CostTrackingSettings/pricing_calculator/index.tsx index 426d832bfe6..2fcea2906af 100644 --- a/ui/litellm-dashboard/src/components/CostTrackingSettings/pricing_calculator/index.tsx +++ b/ui/litellm-dashboard/src/components/CostTrackingSettings/pricing_calculator/index.tsx @@ -1,6 +1,8 @@ import React, { useState, useCallback } from "react"; -import { Table, Select, InputNumber, Button, Radio } from "antd"; -import { DeleteOutlined, PlusOutlined } from "@ant-design/icons"; +import { Table, Select, InputNumber } from "antd"; +import { Button } from "@/components/ui/button"; +import { cn } from "@/lib/utils"; +import { Plus, Trash2 } from "lucide-react"; import { PricingCalculatorProps, ModelEntry } from "./types"; import MultiCostResults from "./multi_cost_results"; import { useMultiCostEstimate } from "./use_multi_cost_estimate"; @@ -155,13 +157,15 @@ const PricingCalculator: React.FC = ({ width: 50, render: (_: unknown, record: ModelEntry) => ( ), }, ]; @@ -169,16 +173,32 @@ const PricingCalculator: React.FC = ({ return (
- handleTimePeriodChange(e.target.value)} - size="small" - optionType="button" - buttonStyle="solid" - > - Per Day - Per Month - +
+ + +
= ({ size="small" footer={() => ( )}