feat(frontend): AI emergency report UI (banner + history cards) - #361
Merged
Conversation
GiZano
force-pushed
the
feat/frontend-ai-reports
branch
from
August 5, 2026 15:27
8c15311 to
65073c8
Compare
GiZano
force-pushed
the
feat/frontend-ai-reports
branch
from
August 5, 2026 21:32
095db7c to
74c2809
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Consumes the new
EMERGENCY_REPORTWebSocket messages (v1.2.0 AI Emergency Reports) and presents them inline in the mobile app.Changes
WebSocketContext.tsx— handlesEMERGENCY_REPORTmessages: trackslastReport, pushes to the alert store, fires a notification;AlertMessagenow carriesalert_id.useAlertStore.ts— newreportsmap keyed byalert_idplusaddReport; cleared withclearAlerts.AlertHistoryList.tsx— renders a report card for each history alert: full summary + recommendations whenCOMPLETED, or a "Report non disponibile" badge whenFAILED.app/(tabs)/index.tsx— inlineAiReportCardbanner for the latest alert.__tests__/useAlertStore.test.ts— report add/replace/clear coverage.Verification
Notes
ai_reportschannel (part of the Backend PR) at runtime.