Skip to content

ETQ Usager utilisant un lecteur d'écran, je veux que le titre du lien de modification d'un dossier déposé reprenne l'intitulé visible #11623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 26, 2025

Conversation

inseo
Copy link
Contributor

@inseo inseo commented Apr 28, 2025

Ajout du numéro de dossier au lien de téléchargement de l'attestation

Après

Avant

Ajout de la traduction au lien de téléchargement du dossier

Après

Avant

Ajout d'une étiquette à la navigation d'un dossier

Après

Avant

Harmonisation du titre d'un lien et de son intitulé visible

Après

Avant

Copy link

codecov bot commented Apr 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.07%. Comparing base (87e0def) to head (e7e58e4).
Report is 153 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main   #11623       +/-   ##
===========================================
+ Coverage   57.29%   83.07%   +25.78%     
===========================================
  Files        1249     1249               
  Lines       27278    27278               
  Branches     5591     5591               
===========================================
+ Hits        15629    22662     +7033     
+ Misses      11649     4616     -7033     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@inseo inseo force-pushed the a11y-various branch 7 times, most recently from 7799e7d to 34a94da Compare April 29, 2025 12:31
@inseo inseo changed the title ETQ Usager d'un lecteur d'écran, je veux que le titre du lien de modification d'un dossier déposé reprenne l'intitulé visible ETQ Usager utilisant un lecteur d'écran, je veux que le titre du lien de modification d'un dossier déposé reprenne l'intitulé visible Apr 29, 2025
Copy link
Member

@colinux colinux left a comment

Choose a reason for hiding this comment

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

Pour que le test sur le mailer passe, j'ai l'impression qu'il faut aussi passer dossier_id dans app/models/mails/initiated_mail.rb ligne 32 (vu depuis app/mailers/notification_mailer.rb ligne 115)

@inseo inseo force-pushed the a11y-various branch 2 times, most recently from 4c3ba7f to db44df6 Compare May 2, 2025 12:42
@inseo
Copy link
Contributor Author

inseo commented May 2, 2025

Pour que le test sur le mailer passe, j'ai l'impression qu'il faut aussi passer dossier_id dans app/models/mails/initiated_mail.rb ligne 32 (vu depuis app/mailers/notification_mailer.rb ligne 115)

Je pense que ça a réglé un truc : l'erreur n'est plus la même. :D

Copy link
Member

Choose a reason for hiding this comment

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

Le test échoue ici car il ya une situation (au moins) où on affiche le lien sans être dans le contexte du dossier: quand on affiche la page d'aperçu du message de fin de dépôt aux administrateurs. Dans ce cas on veut leur afficher le lien visible (sans être actif pour autant) pour qu'ils voient à quoi ça ressemble. Et donc ton changement échoue car le nom du fichier à télécharger ne peut pas être génér2.

Pour éviter d'avoir trop d'opérateurs ternaires sur plusieurs lignes j'ai l'impression qu'on pourrait faire ça :

- if dossier.present?
  = link_to "#{t('views.users.dossiers.merci.download_dossier')} (PDF)",  dossier_path(dossier, format: :pdf), download: "#{t('views.users.dossiers.show.header.download', dossier_id: dossier.id)}", class: 'fr-btn fr-btn--secondary fr-btn--icon-left fr-icon-download-line', **external_link_attributes
- else # contexte d'aperçu du message en fin dépôt pour les admins
  = link_to "#{t('views.users.dossiers.merci.download_dossier')} (PDF)",  "#", download: "Mon dossier", class: 'fr-btn fr-btn--secondary fr-btn--icon-left fr-icon-download-line', **external_link_attributes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ton correctif a bien corrigé l'erreur.
Mais une nouvelle l'a (encore) remplacée. :s

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Je me permets un petit up. :)

Copy link
Member

@colinux colinux left a comment

Choose a reason for hiding this comment

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

finalement les tests sont passés, je merge

@colinux colinux added this pull request to the merge queue May 26, 2025
Merged via the queue into main with commit e2f7b28 May 26, 2025
28 of 29 checks passed
@colinux colinux deleted the a11y-various branch May 26, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants