From 5c61e3794247785f9dc792a249c42ce5be63e84c Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Wed, 1 Apr 2026 16:29:16 -0700 Subject: [PATCH] feat(ui): consolidate Team Member Settings into accordion in edit team form Moves default_team_member_models + per-member budget/key/tpm/rpm fields into a collapsible "Team Member Settings" panel. Keeps the top-level form focused on team-wide settings (team models, team budget, tpm/rpm). --- .../src/components/team/TeamInfo.tsx | 135 ++++++++++-------- 1 file changed, 76 insertions(+), 59 deletions(-) diff --git a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx index ca84b470b6e..ec5bcc5b128 100644 --- a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx +++ b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx @@ -20,7 +20,7 @@ import { isProxyAdminRole } from "@/utils/roles"; import { EditOutlined, InfoCircleOutlined, SaveOutlined } from "@ant-design/icons"; import { ArrowLeftIcon } from "@heroicons/react/outline"; import { Badge, Card, Grid, Text, TextInput, Title } from "@tremor/react"; -import { Button, Form, Input, Select, Switch, Tabs, Tooltip } from "antd"; +import { Button, Collapse, Form, Input, Select, Switch, Tabs, Tooltip } from "antd"; import MessageManager from "@/components/molecules/message_manager"; import { CheckIcon, CopyIcon } from "lucide-react"; import React, { useEffect, useMemo, useState } from "react"; @@ -873,26 +873,6 @@ const TeamInfoView: React.FC = ({ /> - - Default Member Models{" "} - - - - - } - name="default_team_member_models" - > - - - - - - - form.setFieldValue("team_member_budget_duration", value)} - value={form.getFieldValue("team_member_budget_duration")} - /> - - - - - - - - - - - - - + Team Member Settings, + children: ( +
+

+ Optional defaults applied when members join this team. All fields can be overridden per member. +

+ + Default Model Access{" "} + + + + + } + name="default_team_member_models" + > + prev.models !== cur.models}> + {({ getFieldValue }) => { + const teamModels = getFieldValue("models") || info.models || []; + return ( +