Skip to content

fix: 1223 vocalisation toasts#1195

Open
olivier-rabot wants to merge 1 commit intomainfrom
fix/1223-rgaa-restitution-toaster
Open

fix: 1223 vocalisation toasts#1195
olivier-rabot wants to merge 1 commit intomainfrom
fix/1223-rgaa-restitution-toaster

Conversation

@olivier-rabot
Copy link
Contributor

@olivier-rabot olivier-rabot commented Feb 18, 2026

Ticket(s) lié(s)

https://jira-mcas.atlassian.net/jira/software/c/projects/VAO/boards/336?selectedIssue=VAO-1233

Description

Force la restitution des toasts

Screenshot / liens loom

Check-list

  • Ma branche est rebase sur main
  • Des tests ont été écrits pour tous les endpoints créés ou modifiés
  • Refacto "à la volée" des parties sur lesquelles j'ai codée
  • Plus de console.log
  • J'ai ajouté une validation de schéma sur la route que j'ai ajouté ou modifié
  • J'ai converti les fichiers vue en <script lang="ts">
  • Mon code est en Typescript (autant que possible)

Testing instructions

@olivier-rabot olivier-rabot self-assigned this Feb 18, 2026
@revu-bot revu-bot bot requested a review from revu-bot February 18, 2026 17:22
@olivier-rabot olivier-rabot marked this pull request as ready for review February 18, 2026 17:24
Copy link
Collaborator

@revu-bot revu-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

This PR implements a workaround for screen reader vocalization of toast notifications by creating a separate live region. While the approach addresses the immediate accessibility issue, there are several CRITICAL and IMPORTANT concerns that need attention:

Severity Issue Impact
CRITICAL Missing Vue imports Code will fail at runtime
IMPORTANT Race condition with nested timeouts Unreliable screen reader announcements
IMPORTANT Toast removal not handled Memory leak and stale announcements
MINOR Magic numbers without explanation Reduced maintainability

The core strategy (separate live region + aria-live="off" on alerts) is sound, but the implementation needs refinement for production reliability.

Copy link
Collaborator

@revu-bot revu-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An error occurred: Error processing line comments: Unknown GitHub error shape: {}

Revu logs

<div
v-if="liveMessage"
role="status"
aria-live="polite"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rendre dynamique l'aria-live, sinon on perd la logique alert -> aria-live=assertive et polite -> aria-live=polite

@sonarqubecloud
Copy link

@tokenbureau
Copy link

tokenbureau bot commented Feb 24, 2026

🎉 Deployment for commit 36f3e7d :

Ingresses
Docker images
  • 📦 docker pull harbor.fabrique.social.gouv.fr/vao/vao/backend:sha-36f3e7dc2986e03df3303e300d76d9edcdfc147f
  • 📦 docker pull harbor.fabrique.social.gouv.fr/vao/vao/cron:sha-36f3e7dc2986e03df3303e300d76d9edcdfc147f
  • 📦 docker pull harbor.fabrique.social.gouv.fr/vao/vao/external-api:sha-36f3e7dc2986e03df3303e300d76d9edcdfc147f
  • 📦 docker pull harbor.fabrique.social.gouv.fr/vao/vao/frontend-bo:sha-36f3e7dc2986e03df3303e300d76d9edcdfc147f
  • 📦 docker pull harbor.fabrique.social.gouv.fr/vao/vao/frontend-usagers:sha-36f3e7dc2986e03df3303e300d76d9edcdfc147f
  • 📦 docker pull harbor.fabrique.social.gouv.fr/vao/vao/migrations:sha-36f3e7dc2986e03df3303e300d76d9edcdfc147f
  • 📦 docker pull maildev/maildev:2.1.0
Debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants