How bulsu-kbpulido/alertu-admin works
AlertU is a React admin and public incident-reporting application. The main workflow is an administrator signing in, reviewing incoming reports, and managing their status, with dashboards and citizen records supporting operations; members of the public can also submit or view reports. Separate real-time SOS, messaging, and emergency-call capabilities complement report management. The README is only a Vite template description, so capability labels come from the source tree and excerpts; several page-level connections are documented by the SOURCE INDEX rather than inspected implementations.
Main entry points: App.jsx App routing · firebase.js Firebase services · Report_Management.jsx Report management · SOSadminModal.jsx Live SOS response
Components 26
Application
- App routing
src/App.jsx - Admin login
src/pages/Login.jsx - Admin navigation
src/components/Navbar.jsx - UI primitives
src/components/ui - Alert dialog
src/components/ui/alert-dialog.jsx
Incident Reports
- Report creation
src/pages/Create_Reports.jsx - Public reporting
src/pages/PublicReportPage.jsx - Report management
src/pages/Report_Management.jsx - Report review
src/report_utilities/View_Reports.jsx - Archived reports
src/report_utilities/Archived_Routes.jsx - Report distribution
src/pages/Send_Reports.jsx
Admin Operations
- Operations dashboard
src/pages/Dashboard.jsx - Dashboard analytics
src/dashboard_utils - Citizen management
src/pages/Citizen_Management.jsx - Alert management
src/pages/Alert_Management.jsx - New-item tracking
src/hooks/useNewRows.js - Audit logging
src/useAuditLog.js
Live Response
- Live SOS response
src/sos_emergency/SOSadminModal.jsx - SOS history
src/sos_emergency/SOShistorymodal.jsx - Emergency calls
src/admin_call/AdminCallModal.jsx - Messaging
src/components/MessagesDrawer.jsx
Services
- Firebase services
src/firebase.js - Socket client
src/socket.js - AlertU backend
Other components
- Administrator
- Public user
Connections 25
- Administrator → App routing: opens
src/App.jsx - Public user → App routing: opens
src/App.jsx - App routing → Admin login: routes to
src/App.jsx - App routing → Operations dashboard: routes to
src/App.jsx - App routing → Report creation: routes to
src/App.jsx - App routing → Public reporting: routes to
src/App.jsx - App routing → Report management: routes to
src/App.jsx - App routing → Citizen management: routes to
src/App.jsx - App routing → Alert management: routes to
src/App.jsx - App routing → Admin navigation: renders
src/App.jsx - Operations dashboard → Dashboard analytics: uses
- Report management → Report review: uses
- Report review → Archived reports: links to
src/report_utilities/Archived_Routes.jsx - Report management → Report distribution: routes to
- Admin navigation → SOS history: opens
src/components/Navbar.jsx - Live SOS response → Firebase services: updates status
src/sos_emergency/SOSadminModal.jsx - Live SOS response → Socket client: handles events
src/sos_emergency/SOSadminModal.jsx - Emergency calls → Socket client: signals calls
src/admin_call/AdminCallModal.jsx - App routing → Messaging: subscribes to messages
src/App.jsx - New-item tracking → Firebase services: watches records
src/hooks/useNewRows.js - Audit logging → AlertU backend: posts audit events
src/useAuditLog.js - App routing → Firebase services: reads live data
src/App.jsx - Firebase services → AlertU backend: connects to
- App routing → UI primitives: uses controls
- UI primitives → Alert dialog: includes
src/components/ui/alert-dialog.jsx