From facac907d19c7840c43b9798c0f57cc4957f3923 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 23 Apr 2026 19:41:39 +0000 Subject: [PATCH] feat(ui): transform_request to shadcn - antd Button + @tremor Title + @ant-design CopyOutlined \u2192 shadcn Button + lucide Copy + native

/

. - All inline style attributes swept to Tailwind classes with semantic tokens (border-border / text-muted-foreground / bg-muted). Transform button keeps categorical bg-black accent; file added to .eslintrc overrides. Gates: TS \u2713 | Build \u2713. Co-authored-by: yuneng-jiang --- ui/litellm-dashboard/.eslintrc.json | 1 + .../src/components/transform_request.tsx | 150 +++++------------- 2 files changed, 41 insertions(+), 110 deletions(-) diff --git a/ui/litellm-dashboard/.eslintrc.json b/ui/litellm-dashboard/.eslintrc.json index af7cc8f07cd..f6f3b359c7c 100644 --- a/ui/litellm-dashboard/.eslintrc.json +++ b/ui/litellm-dashboard/.eslintrc.json @@ -88,6 +88,7 @@ "src/components/policies/policy_test_panel.tsx", "src/components/mcp_tools/McpCrudPermissionPanel.tsx", "src/components/mcp_tools/OAuthFormFields.tsx", + "src/components/transform_request.tsx", "src/components/permissions/VectorStorePermissions.tsx", "src/components/permissions/AgentPermissions.tsx", "src/components/permissions/MCPServerPermissions.tsx", diff --git a/ui/litellm-dashboard/src/components/transform_request.tsx b/ui/litellm-dashboard/src/components/transform_request.tsx index cc68972d009..63b193ccc8d 100644 --- a/ui/litellm-dashboard/src/components/transform_request.tsx +++ b/ui/litellm-dashboard/src/components/transform_request.tsx @@ -1,7 +1,6 @@ import React, { useState } from "react"; -import { Button } from "antd"; -import { CopyOutlined } from "@ant-design/icons"; -import { Title } from "@tremor/react"; +import { Button } from "@/components/ui/button"; +import { Copy } from "lucide-react"; import { transformRequestCall } from "./networking"; import NotificationsManager from "./molecules/notifications_manager"; interface TransformRequestPanelProps { @@ -128,128 +127,56 @@ ${formattedBody} }; return ( -
- Playground -

See how LiteLLM transforms your request for the specified provider.

-
+
+

Playground

+

+ See how LiteLLM transforms your request for the specified provider. +

+
{/* Original Request Panel */} -
-
-

Original Request

-

+

+
+

Original Request

+

The request you would send to LiteLLM /chat/completions endpoint.