How useriswild7099/sahayak-dashboard- works
This is a browser-based caseworker and survivor-support application for managing atrocity cases and multilingual check-ins through simulated IVR and SMS. Caseworkers review a queue and case details, initiate a voice check-in, and the IVR engine records responses; the app persists completed check-ins and requests a therapy-model score. Scheduling, SMS, privacy, and ethics are additional product capabilities visible in the tree and excerpts. Evidence is partial, so uncertain component wiring is omitted; browser storage and the optional custom model endpoint are shown where supported.
Main entry points: App.tsx Application shell · storageService.ts Case and check-in store · ivrEngine.ts IVR engine · therapyModelService.ts Therapy model
Components 21
Casework
- Application shell
src/App.tsx - Case queue
src/components/CaseworkerQueue.tsx - Case details
src/components/CaseDetailModal.tsx - Edit case
src/components/EditCaseRecordModal.tsx - Schedule interaction
src/components/ScheduleInteractionModal.tsx - Batch runner
src/components/ScheduledBatchRunnerModal.tsx - Privacy portal
src/components/CitizenPrivacyPortal.tsx - Ethical charter
src/components/EthicalCharterModal.tsx
Outreach
- Phone simulator
src/components/IVRPhoneSimulator.tsx - IVR engine
src/services/ivrEngine.ts - DTMF audio
src/services/dtmfAudioService.ts - SMS service
src/services/smsService.ts - Scheduler
src/services/schedulerService.ts
Assessment
- Therapy model
src/services/therapyModelService.ts
State and data
- Case and check-in store
src/services/storageService.ts - Initial case data
src/data/mockCases.ts - Domain types
src/types/ivr.ts
Other components
- Caseworker
- Survivor
- Browser storage
- Custom model endpoint
Connections 23
- Caseworker → Application shell: uses
- Survivor → Phone simulator: responds through
- Application shell → Case queue: renders
- Application shell → Phone simulator: renders
- Application shell → Privacy portal: renders
- Application shell → Ethical charter: renders
- Application shell → Case details: renders
- Application shell → Case and check-in store: reads and updates
- Application shell → IVR engine: registers completion
- Phone simulator → IVR engine: controls session
- IVR engine → DTMF audio: plays tones
- IVR engine → Application shell: returns completed record
- Application shell → Therapy model: scores completed case
- Application shell → Case and check-in store: stores check-in
- Case and check-in store → Browser storage: persists
- Case and check-in store → Initial case data: initializes from
- SMS service → Case and check-in store: reads case data
- Scheduler → Case and check-in store: reads due cases
- Scheduler → SMS service: dispatches SMS
- Scheduler → IVR engine: queues IVR
- Therapy model → Case and check-in store: reads and updates cases
- Therapy model → SMS service: reads messages
- Therapy model → Custom model endpoint: posts analysis