Skip to content
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

[FO - Form étape désordres] Ajouter des messages warning sur les récap désordres #2567

Merged
merged 1 commit into from
May 17, 2024

Conversation

hmeneuvrier
Copy link
Collaborator

Ticket

#2362

Description

Ajout de warning sur les 3 récap du formulaires si aucun désordre n'a été sélectionné

Changements apportés

  • Ajout d'une fonction dans le store pour vérifier si des désordres ont été cochés
  • ajout de warning dans les json
  • ajout d'un warning dans le composant SignalementFormOverview

Pré-requis

Tests

  • Faire un signalement en tant qu'occupant en choisissant "batiment" et "logement", sélectionnez des catégories, mais pas de désordres, aller jusqu'au bout du formulaire (sans valider) et vérifier l'affichage des warning sur les 3 récapitulatifs (récap batiment, récap désordres et récap global)
  • une fois au bout, éditer les désordres, et choisir un désordre dans une catégorie batiment, vérifier que les 3 warnings ne s'affichent plus
  • Faire la même chose en tant que tiers

@hmeneuvrier hmeneuvrier changed the title add warning if no desordres #2362 [FO - Form étape désordres] Ajouter des messages warning sur les récap désordres May 15, 2024
Copy link

sonarcloud bot commented May 15, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

"slug": "desordres_renseignes_previous",
"action": "resolve:findPreviousScreen",
"customCss": "fr-btn--secondary fr-btn--icon-left fr-icon-arrow-left-line"
"type": "SignalementFormWarning",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

J'ai envoyé un message à Mathilde pour voir si c'est ok que le warning apparaisse sous le champ précisions.
Si à son retour elle dit que ce n'est pas ok, il faudra déplacer ce warning pour le mettre dans le composant SignalementFormDisorderOverview

Copy link
Collaborator

@emilschn emilschn left a comment

Choose a reason for hiding this comment

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

OK lecture et tests !

Copy link
Collaborator

@sfinx13 sfinx13 left a comment

Choose a reason for hiding this comment

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

Lecture et test OK

@sfinx13 sfinx13 merged commit efcc6fd into develop May 17, 2024
3 checks passed
@sfinx13 sfinx13 deleted the feature/2362-fo-form-warning-on-recap-desordres branch May 17, 2024 15:06
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.

None yet

3 participants