From 5d49a661ed0b071a689fdcc08e7b98be5e09f0eb Mon Sep 17 00:00:00 2001 From: LandaMm Date: Wed, 25 Jun 2025 11:55:52 +0200 Subject: [PATCH] feat: add roles & groups page --- web/src/App.tsx | 5 +++++ web/src/hooks/barItems.tsx | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/web/src/App.tsx b/web/src/App.tsx index e17c501..dda663f 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -28,6 +28,7 @@ import VerifyReviewPage from "./pages/Verify/Review"; import AdminUserSessionsPage from "./pages/Admin/UserSessions"; import AdminServiceSessionsPage from "./pages/Admin/ServiceSessions"; import AdminAppPermissionsPage from "./pages/Admin/AppPermissions"; +import AdminRolesGroupsPage from "./pages/Admin/RolesGroups"; const router = createBrowserRouter([ { @@ -100,6 +101,10 @@ const router = createBrowserRouter([ { index: true, element: }, ], }, + { + path: "roles-groups", + children: [{ index: true, element: }], + }, ], }, ], diff --git a/web/src/hooks/barItems.tsx b/web/src/hooks/barItems.tsx index a910823..f604635 100644 --- a/web/src/hooks/barItems.tsx +++ b/web/src/hooks/barItems.tsx @@ -1,6 +1,7 @@ import { useAuth } from "@/store/auth"; import { Blocks, + ContactRound, EarthLock, Home, KeyRound, @@ -107,6 +108,12 @@ export const useBarItems = (): [Item[], (item: Item) => boolean] => { tab: "admin.app-permissions", pathname: "/admin/app-permissions", }, + { + icon: , + title: "Roles & Groups", + tab: "admin.roles-groups", + pathname: "/admin/roles-groups", + }, ] : []), ],