How acrasiajuramento/alert-cia works
ALERT-CIA is an emergency-response operations application for an MDRRMO command center, with a companion news scraper. The principal workflow runs from incident monitoring through dispatch and field response to Patient Care Report (PCR) handoff, review, and export. Supporting branches provide public information, GIS warnings, analytics, audit history, and ambulance management. Device-saved PCR drafts and queued changes can sync when connectivity returns. The scraper’s run and article-analysis entry points are visible in sampled source; other subsystem wiring is based on README capabilities and the file tree.
Main entry points: App.jsx Application Shell · supabase Cloud Data Services · PCRModule.jsx PCR Workflow · pages Dispatch Workflow
Components 23
Response Operations
- Application Shell
src/app/App.jsx - Role Access
src/app/access/rbac.js - Incident Monitoring
src/app/pages - Dispatch Workflow
src/app/pages - Ambulance Units
src/app/components/AmbulanceUnitManager.jsx - PCR Workflow
src/app/pages/PCRModule.jsx - PCR Export
src/app/utils/pcrStorage.js - Audit History
src/app/pages/AuditLogs.jsx
Mapping and Public Info
- GIS Mapping
src/app/components/map - Public Views
src/app/pages/public - Public Advisories
src/app/pages/AdvisoryModule.jsx - Analytics Reports
src/app/pages/Analytics.jsx
Data and Sync
- Cloud Data Services
src/app/services/supabase - Device Draft Store
src/app/db - Offline Sync Engine
src/app/sync/sync-engine.js - Connectivity Manager
src/app/network/connection-manager.js
News Scraper
- Scraper Review
src/app/pages/ScraperReview.jsx - Scraper API
alert-cia-scraper/src/app/api/run/route.js - Article Analysis API
alert-cia-scraper/src/app/api/analyze/route.js - Scraper Runtime
alert-cia-scraper/src/lib/runScraper.js
Other components
- Operators and Responders
- Supabase
- News Sources
Connections 34
- Operators and Responders → Application Shell: uses
- Application Shell → Role Access: checks roles
- Application Shell → Incident Monitoring: routes to
- Application Shell → Dispatch Workflow: routes to
- Application Shell → PCR Workflow: routes to
- Incident Monitoring → Cloud Data Services: loads incidents
- Dispatch Workflow → Cloud Data Services: manages dispatches
- Dispatch Workflow → Ambulance Units: manages units
- Dispatch Workflow → PCR Workflow: hands off response
- PCR Workflow → Cloud Data Services: stores and reviews
- PCR Workflow → Device Draft Store: saves drafts
- PCR Workflow → PCR Export: exports report
- Cloud Data Services → Supabase: reads and writes
- PCR Workflow → Offline Sync Engine: queues changes
- Offline Sync Engine → Device Draft Store: reads and updates
- Offline Sync Engine → Cloud Data Services: delivers cloud changes
- Offline Sync Engine → Connectivity Manager: checks connection
- Connectivity Manager → Supabase: checks health
- Application Shell → GIS Mapping: routes to
- GIS Mapping → Cloud Data Services: loads map data
- Application Shell → Public Views: routes to
- Public Views → Cloud Data Services: loads public data
- Application Shell → Public Advisories: routes to
- Public Advisories → Cloud Data Services: manages advisories
- Application Shell → Analytics Reports: routes to
- Analytics Reports → Cloud Data Services: loads metrics
- Application Shell → Audit History: routes to
- Audit History → Cloud Data Services: loads audit history
- Application Shell → Scraper Review: routes to
- Scraper Review → Scraper API: requests scraper runs
- Scraper API → Scraper Runtime: runs job
- Scraper Runtime → News Sources: fetches reports
- Scraper Review → Article Analysis API: requests analysis
- Article Analysis API → News Sources: analyzes supplied article