How soniey/safe2go works
Safe2Go is a simulated township hazard and operations dashboard, not a backend service. The main workflow routes staff through hazard views, combines shared road, flood, tree, camera, and incident data, and supports incident response, team management, and reporting. Tree inspections and incident-response actions use browser storage; the README explicitly notes that readings and detections are simulated and there is no database. Edges reflect the README and source-index references or excerpts provided; unsampled implementation details are not inferred.
Main entry points: App.jsx Route and access control · incidentStore.js Incident response store · sharedData.js Shared hazard data · Reports.jsx Audit and reports
Components 22
Application shell
- Route and access control
src/App.jsx - Demo session
src/utils/demoSession.jsx - Operations overview
src/pages/Overview.jsx
Hazard intelligence
- Flood and weather
src/pages/FloodWeather.jsx - Tree risk inspections
src/pages/TreeRisk.jsx - Tree risk adapter
src/utils/treeRisk.js - Road vision
src/pages/RoadVision.jsx - Camera feed view
src/components/road-vision/CameraFeed.jsx - Camera detections
src/data/roadVision.js
Incident response
- Incident center
src/pages/Incidents.jsx - Incident queue and detail
src/components/incidents/IncidentQueue.jsx - Incident response store
src/utils/incidentStore.js
Field operations
- Maintenance team registry
src/pages/MaintenanceTeams.jsx - Team registry data
src/utils/teamRegistry.js - Staff field jobs
src/pages/StaffJobs.jsx - Job actions
src/components/staff/JobCard.jsx
Reports and shared data
- Shared hazard data
src/utils/sharedData.js - Audit and reports
src/pages/Reports.jsx - Report generation
src/utils/reports.js - Report document
src/components/ReportDocument.jsx
Other components
- Township staff
- Browser local storage
Connections 34
- Township staff → Route and access control: opens routes
README.md - Route and access control → Demo session: provides session
src/App.jsx - Route and access control → Operations overview: routes to
src/App.jsx - Route and access control → Flood and weather: routes to
src/App.jsx - Route and access control → Tree risk inspections: routes to
src/App.jsx - Route and access control → Road vision: routes to
src/App.jsx - Route and access control → Incident center: routes to
src/App.jsx - Route and access control → Maintenance team registry: routes to
src/App.jsx - Route and access control → Staff field jobs: routes to
src/App.jsx - Route and access control → Audit and reports: routes to
src/App.jsx - Flood and weather → Shared hazard data: reads data
src/pages/FloodWeather.jsx - Tree risk inspections → Tree risk adapter: updates inspections
README.md - Road vision → Shared hazard data: reads data
src/pages/RoadVision.jsx - Road vision → Camera feed view: renders feed
src/pages/RoadVision.jsx - Camera feed view → Camera detections: shows detections
- Operations overview → Shared hazard data: reads data
src/pages/Overview.jsx - Shared hazard data → Incident response store: reads incidents
src/utils/sharedData.js - Shared hazard data → Tree risk adapter: reads trees
src/utils/sharedData.js - Shared hazard data → Camera detections: loads detections
src/utils/sharedData.js - Incident center → Incident queue and detail: renders queue
src/pages/Incidents.jsx - Incident center → Incident response store: reads and updates
src/pages/Incidents.jsx - Incident response store → Team registry data: loads teams
src/utils/incidentStore.js - Incident response store → Tree risk adapter: loads trees
src/utils/incidentStore.js - Incident response store → Browser local storage: persists actions
README.md - Maintenance team registry → Team registry data: manages teams
src/pages/MaintenanceTeams.jsx - Team registry data → Browser local storage: persists teams
src/utils/teamRegistry.js - Staff field jobs → Job actions: renders jobs
src/pages/StaffJobs.jsx - Staff field jobs → Incident response store: updates workflow
src/pages/StaffJobs.jsx - Job actions → Incident response store: reads job state
src/components/staff/JobCard.jsx - Tree risk adapter → Browser local storage: persists inspections
README.md - Audit and reports → Incident response store: reads incidents
src/pages/Reports.jsx - Audit and reports → Report generation: builds report
src/pages/Reports.jsx - Audit and reports → Report document: renders preview
src/pages/Reports.jsx - Report document → Incident response store: reads incident data
src/components/ReportDocument.jsx