Skip to content

Application pages ​

Routes are defined in front/src/App.tsx. Except /login and /reset-password, page routes are rendered through DashboardLayout only when the app's user state is present. Startup initializes that state by checking the current user and auth token.

RoutePage implementationAccess
/loginfront/src/components/auth/LoginForm.tsxPublic while signed out
/reset-passwordfront/src/pages/ResetPassword.tsxPublic
/dashboardfront/src/pages/Dashboard.tsxProtected
/leasesfront/src/pages/AllLeases.tsxProtected
/leases/:idfront/src/pages/LeaseDetails.tsxProtected; dynamic id
/leases/createfront/src/pages/CreateLease.tsxProtected
/leases/:id/editfront/src/pages/EditLease.tsxProtected; dynamic id
/reportsfront/src/pages/Reports.tsxProtected
/analyticsfront/src/pages/Analytics.tsxProtected
/calculatorfront/src/pages/Calculator.tsxProtected
/audit-trailsfront/src/pages/AuditTrails.tsxProtected
/profilefront/src/pages/Profile.tsxProtected
/change-passwordfront/src/pages/ChangePassword.tsxProtected
/settingsfront/src/pages/Settings.tsxProtected
/usersfront/src/pages/UserManagement.tsxProtected
/users/createfront/src/pages/CreateUser.tsxProtected
/users/:id/editfront/src/pages/EditUser.tsxProtected; dynamic id
/users/rolesfront/src/pages/UserPermissions.tsxProtected
/departmentsfront/src/pages/DepartmentManagement.tsxProtected
/components-demofront/src/components/ComponentDemo.tsxProtected

/ redirects to /dashboard when signed in and /login otherwise. Unknown routes use the wildcard route and redirect to /. Nested authenticated route elements use an index child rendered by DashboardLayout's Outlet.

See the page-specific guides below. For API behavior, see API Reference.