Refactor/rf005 incidnet tracking status - #70
Conversation
…dels, update mission status and tracking screen to handle new events
…to refactor/RF005-incidnet-tracking-status
…and ensuring operator notes are not empty
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
📝 WalkthroughWalkthroughPR thêm hai sự kiện MissionHub mới ( ChangesXử lý Sự kiện MissionHub: Báo Động Giả và Bàn Giao Bệnh Viện
Sequence DiagramssequenceDiagram
participant SignalR as SignalR Hub
participant MHS as MissionHubService
participant MSN as MissionStatusNotifier
participant ETS as EmergencyTrackingScreen
Note over SignalR,ETS: Sự kiện Báo động Giả
SignalR->>MHS: IncidentFalseAlarm event
MHS->>MHS: Parse IncidentFalseAlarmData
MHS->>MSN: Phát qua incidentFalseAlarmStream
MSN->>MSN: Cập nhật MissionStatus.incidentFalseAlarm
ETS->>ETS: Nhận sự kiện qua listener
ETS->>ETS: _terminateToHome (hiển thị snackbar)
ETS->>ETS: Ngắt MissionHub, reset state
ETS->>ETS: Điều hướng về member_home
Note over SignalR,ETS: Sự kiện Bàn Giao Bệnh Viện
SignalR->>MHS: HospitalHandoverAccepted event
MHS->>MHS: Parse HospitalHandoverAcceptedData
MHS->>MSN: Phát qua hospitalHandoverAcceptedStream
MSN->>MSN: Cập nhật MissionStatus.hospitalHandover*
ETS->>ETS: Nhận sự kiện qua listener
ETS->>ETS: _showHospitalHandoverAcceptedDialog
ETS->>ETS: Hiển thị dialog (tên BV, số ĐT, ghi chú)
ETS->>ETS: Sau xác nhận: _terminateToHome
ETS->>ETS: Ngắt MissionHub, reset state
ETS->>ETS: Điều hướng về member_home
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add new stream subscription listening on IncidentFalseAlarm and NoRescuerFound events to terminate the emergency tracking screen. Update Incident finished detail information with operatorNotes and CancellationReason
Summary by CodeRabbit
Ghi chú phát hành