mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-01 22:15:17 +02:00
The live region announced the advisory and steering state on every change, but a failed or invalid poll only set the visible status to offline. The live region kept the last known message, so during an outage a screen-reader user could still hear "No steering is required" from a poll that had already failed. That is worse than silence, because stale guidance reads as current. Route announcements through a single helper and have the failure path replace the guidance with a message saying the data is unavailable and the counts are unknown. The helper still suppresses a repeat of the same message, so a continuing outage stays quiet and recovery speaks again. Cover the success then failure and failure then recovery sequences at runtime. Reverting just the failure-path announcement fails the new assertion, and the unmutated view passes all of them. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>