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 */}