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.
| Route | Page implementation | Access |
|---|---|---|
/login | front/src/components/auth/LoginForm.tsx | Public while signed out |
/reset-password | front/src/pages/ResetPassword.tsx | Public |
/dashboard | front/src/pages/Dashboard.tsx | Protected |
/leases | front/src/pages/AllLeases.tsx | Protected |
/leases/:id | front/src/pages/LeaseDetails.tsx | Protected; dynamic id |
/leases/create | front/src/pages/CreateLease.tsx | Protected |
/leases/:id/edit | front/src/pages/EditLease.tsx | Protected; dynamic id |
/reports | front/src/pages/Reports.tsx | Protected |
/analytics | front/src/pages/Analytics.tsx | Protected |
/calculator | front/src/pages/Calculator.tsx | Protected |
/audit-trails | front/src/pages/AuditTrails.tsx | Protected |
/profile | front/src/pages/Profile.tsx | Protected |
/change-password | front/src/pages/ChangePassword.tsx | Protected |
/settings | front/src/pages/Settings.tsx | Protected |
/users | front/src/pages/UserManagement.tsx | Protected |
/users/create | front/src/pages/CreateUser.tsx | Protected |
/users/:id/edit | front/src/pages/EditUser.tsx | Protected; dynamic id |
/users/roles | front/src/pages/UserPermissions.tsx | Protected |
/departments | front/src/pages/DepartmentManagement.tsx | Protected |
/components-demo | front/src/components/ComponentDemo.tsx | Protected |
/ 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.