-
Notifications
You must be signed in to change notification settings - Fork 96
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. 🚀 New features to boost your workflow:
|
7799e7d
to
34a94da
Compare
There was a problem hiding this 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)
4c3ba7f
to
db44df6
Compare
Je pense que ça a réglé un truc : l'erreur n'est plus la même. :D |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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. :)
There was a problem hiding this 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
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
