How mendozagabii/mabini-meo works
This is a municipal road-project management application: staff sign in, work with road projects, inspections, maintenance, and related administrative modules, while API routes enforce access and persist records. The sampled routes show annual validation, workflow notifications, and inspection logging alongside the core record flow. Supabase is the documented persistence layer; AI prioritization, analytics, and user administration are also represented in the tree. The README gives no product detail, so links from UI modules to API routes are omitted where source evidence is unavailable.
Main entry points: App.tsx Application shell · supabase-data.ts Record translation · api.ts API access helpers · route.ts Road API
Components 26
Application experience
- Application shell
src/app/App.tsx - Sign in
src/app/components/LoginPage.tsx - Dashboard
src/app/components/Dashboard.tsx
Road operations
- Road projects
src/app/components/LocalRoadList.tsx - Project editor
src/app/components/LocalRoadForm.tsx - Inspections
src/app/components/InspectionModule.tsx - Maintenance
src/app/components/MaintenanceModule.tsx - AI prioritization
src/app/components/AIPredictionModule.tsx - Analytics
src/app/components/AnalyticsDashboard.tsx
Validation and workflow
- User administration
src/app/components/UserManagementModule.tsx - Validation rules
src/lib/project-form-validation.ts - Validation workflow
src/lib/project-validation-workflow.ts - Reminder scheduling
src/lib/validation-reminders.ts - Email notifications
src/lib/notifications.ts - Activity logging
src/lib/activity-log-client.ts
API and services
- Road API
src/app/api/local-road/route.ts - Inspection API
src/app/api/inspections/route.ts - Maintenance API
src/app/api/maintenance/route.ts - Reminder API
src/app/api/validation-reminders/route.ts - AI priority API
src/app/api/ai-priority/route.ts - Authentication API
src/app/api/auth/login/route.ts - API access helpers
src/lib/api.ts
Persistence
- Record translation
src/lib/supabase-data.ts - Supabase clients
src/lib/supabase.ts - Supabase database
Other components
- Staff user
Connections 30
- Staff user → Application shell: uses
src/app/App.tsx - Application shell → Sign in: renders
src/app/App.tsx - Application shell → Dashboard: renders
src/app/App.tsx - Application shell → Road projects: renders
src/app/App.tsx - Application shell → Project editor: renders
src/app/App.tsx - Application shell → Inspections: renders
src/app/App.tsx - Application shell → Maintenance: renders
src/app/App.tsx - Application shell → AI prioritization: renders
src/app/App.tsx - Application shell → Analytics: renders
src/app/App.tsx - Application shell → User administration: renders
src/app/App.tsx - Road API → API access helpers: checks access
src/app/api/local-road/route.ts - Road API → Validation rules: validates dates
src/app/api/local-road/route.ts - Road API → Email notifications: notifies workflow
src/app/api/local-road/route.ts - Road API → Record translation: reads and saves
src/app/api/local-road/route.ts - Inspection API → Record translation: reads and saves
src/app/api/inspections/route.ts - Inspection API → Email notifications: notifies workflow
src/app/api/inspections/route.ts - Inspection API → Activity logging: logs client activity
- Maintenance API → API access helpers: checks access
src/app/api/maintenance/route.ts - Maintenance API → Record translation: reads and saves
src/app/api/maintenance/route.ts - Reminder API → Reminder scheduling: finds due reminders
src/app/api/validation-reminders/route.ts - Reminder API → Record translation: loads and records
src/app/api/validation-reminders/route.ts - Reminder API → Email notifications: sends reminders
src/app/api/validation-reminders/route.ts - Reminder API → API access helpers: checks access
src/app/api/validation-reminders/route.ts - AI priority API → Record translation: loads records
src/app/api/ai-priority/route.ts - AI priority API → API access helpers: uses API helpers
src/app/api/ai-priority/route.ts - Authentication API → Supabase clients: authenticates
src/app/api/auth/login/route.ts - API access helpers → Supabase clients: checks sessions
src/lib/api.ts - Record translation → Supabase clients: uses clients
src/lib/supabase-data.ts - Supabase clients → Supabase database: connects to
src/lib/supabase.ts - Record translation → Supabase database: reads and writes
src/lib/supabase-data.ts