user management

This commit is contained in:
yaschalew
2026-06-13 14:32:26 +03:00
parent 12b6406d23
commit eee7b719b0
592 changed files with 267087 additions and 31 deletions

View File

@@ -12,6 +12,7 @@ import {
Truck,
Container,
Package,
Users,
//TrainTrack,
} from "lucide-react";
@@ -47,6 +48,7 @@ import FleetResourcePage from "./pages/fleet/FleetResourcePage";
import { getCategorySidebarChildren } from "./pages/ruleEngine/config/resources";
import TrainDetailPage from "./pages/trains/TrainDetailPage";
import RoutesPage from "./pages/fleet/RoutesPage";
import UserManagementHostPage from './features/user-management-host/UserManagementHostPage';
const buildSidebarSections = (demoItems: SidebarItem[]): SidebarSection[] => [
{
@@ -58,6 +60,11 @@ const buildSidebarSections = (demoItems: SidebarItem[]): SidebarSection[] => [
href: "/dashboard/overview",
icon: <LayoutDashboard />,
},
{
label: "UM",
href: "/um",
icon: <Users />,
},
{
label: "Booking requests",
href: "/dashboard/booking-requests",
@@ -244,7 +251,8 @@ const App = () => {
return (
<Routes>
<Route path="/auth" element={<LoginPage />} />
<Route path="*" element={<Navigate to="/auth" replace />} />
<Route path='/um/*' element={<UserManagementHostPage />} />
<Route path="*" element={<Navigate to="/um" replace />} />
</Routes>
);
}
@@ -252,8 +260,8 @@ const App = () => {
return (
<Routes>
<Route path="/" element={<Navigate to="/dashboard/overview" replace />} />
<Route path="/dashboard" element={<Navigate to="/dashboard/overview" replace />} />
<Route path="/dashboard" element={<Navigate to="/dashboard/overview" replace />} />,
<Route path='/um/*' element={<UserManagementHostPage />} />
<Route path="/dashboard" element={<DashboardShell />}>
<Route path="overview" element={<OverviewPage />} />