How xolane3/amanzi_mpilo works
Amanzi Mpilo is a frontend for monitoring University of Johannesburg greywater systems. The main workflow is to view campus summaries, open a branch dashboard for tank and water-safety status, then navigate to branch reports. Separate routes provide login/signup and an administrative purchaser/system view. The README describes a backend in the original full-stack app, but this repository tree contains no backend implementation; the map therefore shows only the available frontend. Some route details are represented from documented capabilities and route registration, not inspected implementation.
Main entry points: dashboard.tsx Branch dashboard · ui UI primitives · routeTree.gen.ts Route registry · index.tsx Campus overview
Components 18
Navigation and access
- Router setup
src/router.tsx - Route registry
src/routeTree.gen.ts - Campus overview
src/routes/index.tsx - Login
src/routes/login.tsx - Signup
src/routes/signup.tsx - Admin dashboard
src/routes/admin-dashboard.tsx
Water monitoring
- Branch dashboard
src/routes/dashboard.tsx - Branch reports
src/routes/reports.tsx - Branch data
src/lib/branches.ts - Tank visualization
src/components/TankIcon.tsx - Sensor display
src/components/SensorCard.tsx - Reuse destinations
src/components/ReuseDestinations.tsx
Shared frontend
- Notifications
src/components/NotificationsPanel.tsx - Profile and settings
src/components/ProfileMenu.tsx - Application shell
src/routes/__root.tsx - UI primitives
src/components/ui - Class utilities
src/lib/utils.ts
Other components
- Operator
Connections 33
- Operator → Campus overview: opens overview
src/routes/index.tsx - Operator → Login: opens login
- Operator → Signup: opens signup
- Router setup → Route registry: configures routes
src/router.tsx - Route registry → Campus overview: registers route
src/routeTree.gen.ts - Route registry → Branch dashboard: registers route
src/routeTree.gen.ts - Route registry → Branch reports: registers route
src/routeTree.gen.ts - Route registry → Login: registers route
src/routeTree.gen.ts - Route registry → Signup: registers route
src/routeTree.gen.ts - Route registry → Admin dashboard: registers route
src/routeTree.gen.ts - Campus overview → Branch dashboard: links to
src/routes/index.tsx - Campus overview → Branch reports: links to
src/routes/index.tsx - Campus overview → Branch data: reads branch list
src/routes/index.tsx - Branch dashboard → Branch data: loads branch
src/routes/dashboard.tsx - Branch dashboard → Branch reports: links to
src/routes/dashboard.tsx - Branch reports → Branch data: uses branch data
src/routes/reports.tsx - Branch dashboard → Tank visualization: renders
src/routes/dashboard.tsx - Branch dashboard → Sensor display: renders
src/routes/dashboard.tsx - Branch dashboard → Reuse destinations: renders
src/routes/dashboard.tsx - Branch dashboard → Notifications: renders
src/routes/dashboard.tsx - Branch dashboard → Profile and settings: renders
src/routes/dashboard.tsx - Campus overview → Profile and settings: renders
src/routes/index.tsx - Admin dashboard → Notifications: renders
src/routes/admin-dashboard.tsx - Admin dashboard → Profile and settings: renders
src/routes/admin-dashboard.tsx - Campus overview → UI primitives: uses controls
src/routes/index.tsx - Branch dashboard → UI primitives: uses controls
src/routes/dashboard.tsx - Login → UI primitives: uses controls
src/routes/login.tsx - Signup → UI primitives: uses controls
src/routes/signup.tsx - Branch reports → UI primitives: uses controls
src/routes/reports.tsx - Notifications → UI primitives: uses controls
src/components/NotificationsPanel.tsx - Profile and settings → UI primitives: uses controls
src/components/ProfileMenu.tsx - Application shell → UI primitives: uses notifications UI
src/routes/__root.tsx - UI primitives → Class utilities: uses class helper
src/components/ui/button.tsx