From 3b0c71538368175c4d976985c8b17122fba3f913 Mon Sep 17 00:00:00 2001 From: levig Date: Sun, 5 Jul 2026 01:12:02 -0300 Subject: [PATCH 1/2] refactor(users): use the shared FilterBar on the Users page Replace the inline search + app filter JSX with the shared FilterBar component, passing the existing search and app-filter state as props. Behavior is unchanged. --- src/components/pages/UsersPage/index.tsx | 61 +++++++++--------------- 1 file changed, 22 insertions(+), 39 deletions(-) diff --git a/src/components/pages/UsersPage/index.tsx b/src/components/pages/UsersPage/index.tsx index 32b808b..dd18305 100644 --- a/src/components/pages/UsersPage/index.tsx +++ b/src/components/pages/UsersPage/index.tsx @@ -1,19 +1,12 @@ import { useEffect, useState, useMemo } from "react" -import { Users, Inbox, Search, Filter } from "lucide-react" +import { Users, Inbox } from "lucide-react" import { toast } from "sonner" import { usersAPI, appsAPI } from "@/services/api" import type { UserListResponse, UserRoleResponse, AppResponse } from "@/types" import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs" -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue, -} from "@/components/ui/select" -import { Input } from "@/components/ui/input" import { LoadingSpinner } from "@/components/common/LoadingSpinner" import { EmptyState } from "@/components/common/EmptyState" +import { FilterBar } from "@/components/common/FilterBar" import { InfoTooltip } from "@/components/common/InfoTooltip" import { AccessRequestsSection } from "@/components/pages/AccessRequestsSection" import { UserCard } from "./UserCard" @@ -97,36 +90,26 @@ export default function UsersPage() {
-
-
- - setSearch(e.target.value)} - className="pl-9 bg-surface border-areia/20" - /> -
-
- - -
- - {filteredUsers.length} result{filteredUsers.length !== 1 ? "s" : ""} - -
+ ({ value: app.app_key, label: app.name })), + ], + }, + ]} + resultLabel={`${filteredUsers.length} result${filteredUsers.length !== 1 ? "s" : ""}`} + /> {filteredUsers.length === 0 ? ( Date: Wed, 15 Jul 2026 17:01:47 -0300 Subject: [PATCH 2/2] chore(ci): empty commit to re-trigger CI checks Co-Authored-By: Claude Opus 4.8 (1M context)