From 87234e5be8db5c5d4d04a359d9293328d4605878 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 23 Apr 2026 13:11:40 +0000 Subject: [PATCH] feat(ui): TeamsFilters to shadcn - @tremor Select/SelectItem + raw + inline SVG icons \u2192 shadcn Select/Input/Button + lucide Search/Filter/User/RotateCcw. - Active-filter indicator dot (blue) preserved inline. Gates: TS \u2713 | Build \u2713. Co-authored-by: yuneng-jiang --- .../teams/components/TeamsFilters.tsx | 122 +++++++----------- 1 file changed, 48 insertions(+), 74 deletions(-) diff --git a/ui/litellm-dashboard/src/app/(dashboard)/teams/components/TeamsFilters.tsx b/ui/litellm-dashboard/src/app/(dashboard)/teams/components/TeamsFilters.tsx index 04c65ffe268..5c130e681e4 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/teams/components/TeamsFilters.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/teams/components/TeamsFilters.tsx @@ -1,4 +1,14 @@ -import { Select, SelectItem } from "@tremor/react"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { Input } from "@/components/ui/input"; +import { Button } from "@/components/ui/button"; +import { Filter, RotateCcw, Search, User } from "lucide-react"; +import { cn } from "@/lib/utils"; import React from "react"; import { Organization } from "@/components/networking"; @@ -7,7 +17,10 @@ interface TeamsFiltersProps { organizations: Organization[] | null; showFilters: boolean; onToggleFilters: (toggle: boolean) => void; - onChange: (key: K, value: FilterState[K]) => void; + onChange: ( + key: K, + value: FilterState[K], + ) => void; onReset: () => void; } @@ -29,107 +42,68 @@ const TeamsFilters = ({ }: TeamsFiltersProps) => { return (
- {/* Search and Filter Controls */}
- {/* Team Alias Search */}
- + onChange("team_alias", e.target.value)} /> - - -
- {/* Filter Button */} - - - {/* Reset Filters Button */} - + + +
- {/* Additional Filters */} {showFilters && (
- {/* Team ID Search */}
- + onChange("team_id", e.target.value)} /> - - -
- {/* Organization Dropdown */}