diff --git a/ui/litellm-dashboard/src/components/view_users.tsx b/ui/litellm-dashboard/src/components/view_users.tsx index cb4af7c42d80..bdf425049aa0 100644 --- a/ui/litellm-dashboard/src/components/view_users.tsx +++ b/ui/litellm-dashboard/src/components/view_users.tsx @@ -79,6 +79,7 @@ const ViewUserDashboard: React.FC = ({ teams, setKeys, }) => { + const [searchTerm,setSearchTerm] = useState(); const [userListResponse, setUserListResponse] = useState(null); const [userData, setUserData] = useState(null); const [endUsers, setEndUsers] = useState(null); @@ -233,45 +234,54 @@ const ViewUserDashboard: React.FC = ({ return ( -
-
- Showing Page {currentPage } of {totalPages} -
-
- - +
); } return ( -
- - +
+

Internal Users

+
+ setSearchTerm(e.target.value)} + /> + - -
+ /> +
+
+ + - +
User ID @@ -284,7 +294,9 @@ const ViewUserDashboard: React.FC = ({ - {userData.map((user: any) => ( + {userData + ?.filter((user) => user?.user_email?.toLowerCase().includes(searchTerm?.toLowerCase() || '')) + ?.map((user: any) => ( {user.user_id || "-"} {user.user_email || "-"}