How anddr28/112-project works
This is a role-based training simulator for emergency dispatchers: teachers manage scenarios and lessons, students complete assigned exercises in a simulated 112 workstation, and results are evaluated for review. The graph preserves the documented AI call simulation, scenario management, dispatch workflow, service-status handling, and assessment/reporting capabilities. Frontend routing and selected API calls are evidenced by excerpts; backend domain links and some UI-to-feature relationships are not sampled, so those connections are omitted or marked unverified.
Main entry points: router.tsx Role Routes · index.ts API Selector · Arm112Page.tsx 112 Workstation · evaluation Evaluation
Components 25
Access and API
- Authentication
frontend/src/app/auth.ts - Role Routes
frontend/src/app/router.tsx - API Selector
frontend/src/shared/api/index.ts - HTTP API
frontend/src/shared/api/httpApi.ts
Training Management
- Scenario Editor
frontend/src/features/scenario/ScenarioEditor.tsx - Scenario Management
go-core/internal/scenarios - Lesson Management
frontend/src/pages/teacher/LessonListPage.tsx - Lesson Service
go-core/internal/lessons - Student Lessons
frontend/src/pages/student/StudentLessonPage.tsx
Dispatch Simulation
- Incoming Call
frontend/src/pages/student/IncomingCallPage.tsx - 112 Workstation
frontend/src/pages/student/Arm112Page.tsx - Incident Card
frontend/src/features/incident-card/IncidentCard.tsx - Attempt Runtime
frontend/src/features/attempt-runtime/useAttemptRuntime.ts - Service Status
frontend/src/features/incident-card/ServicesBar.tsx - DDS Workspace
frontend/src/features/dds/DdsWorkspace.tsx - Dialogue Engine
go-core/internal/dialogue - AI Jobs
go-core/internal/aijobs
Assessment and Operations
- Evaluation
go-core/internal/evaluation - Evaluation View
frontend/src/features/evaluation/EvaluationView.tsx - Attempt Report
frontend/src/pages/teacher/AttemptReportPage.tsx - Scoring
go-core/internal/scoring - Persistent Data
go-core/internal/store
Other components
- Teacher
- Student
- Administrator
Connections 29
- Teacher → Role Routes: opens workspace
frontend/src/app/router.tsx - Student → Role Routes: opens workspace
frontend/src/app/router.tsx - Administrator → Role Routes: opens workspace
frontend/src/app/router.tsx - Role Routes → Scenario Editor: routes to
- Role Routes → Lesson Management: routes to
frontend/src/app/router.tsx - Role Routes → Student Lessons: routes to
frontend/src/app/router.tsx - Role Routes → Incoming Call: routes to
frontend/src/app/router.tsx - Role Routes → 112 Workstation: routes to
frontend/src/app/router.tsx - Role Routes → Attempt Report: routes to
frontend/src/app/router.tsx - Role Routes → Authentication: checks role
frontend/src/app/router.tsx - Authentication → API Selector: requests session
frontend/src/app/auth.ts - API Selector → HTTP API: selects HTTP
frontend/src/shared/api/index.ts - 112 Workstation → Incident Card: presents dispatch
- 112 Workstation → Attempt Runtime: tracks attempt
- Attempt Runtime → API Selector: saves draft
frontend/src/features/attempt-runtime/useAttemptRuntime.ts - Attempt Runtime → API Selector: posts events
frontend/src/features/attempt-runtime/useAttemptRuntime.ts - Service Status → API Selector: updates status
frontend/src/features/incident-card/ServicesBar.tsx - DDS Workspace → Service Status: uses status panel
- Student → Incoming Call: receives simulated call
- Scenario Editor → Scenario Management: manages scenarios
- Lesson Management → Lesson Service: manages lessons
- Incoming Call → Dialogue Engine: simulates dialogue
- Dialogue Engine → AI Jobs: requests AI work
- 112 Workstation → Evaluation: submits work for assessment
- Evaluation → Scoring: scores actions
- Evaluation → Persistent Data: persists results
- Evaluation → Evaluation View: provides results
- Evaluation View → Attempt Report: supports review
- Teacher → Attempt Report: reviews results