MTES-MCT / rapportnav2

:boat: Outil de rapportage pour le dispositif de contrôle et surveillance des Affaires Maritimes pour le littoral français
https://beta.gouv.fr/startups/rapportnav.html
4 stars 1 forks source link

feature(347) Improvement of infraction form field management based on target type #362

Closed aleckvincent closed 5 days ago

aleckvincent commented 6 days ago

[UPDATE]

Cas :

  1. Personne physique On affiche "Identité de la personne controlée" identityControlledPerson

  2. Personne morale On affiche "Identité de la personne morale controlée" identityControlledPerson

  3. Véhicule On affiche le champ immatriculation du véhicule vesselIdentifier

  4. Véhicule de type vessel On garde ce qu'on avait déjà, à savoir vesselSize vesselType vesselIdentifier identityControlledPerson

github-actions[bot] commented 6 days ago

Coverage Report for frontend

Status Category Percentage Covered / Total
🟢 Lines 79.03% (🎯 50%) 1911 / 2418
🟢 Statements 78.82% (🎯 50%) 1992 / 2527
🟢 Functions 75.75% (🎯 50%) 503 / 664
🟢 Branches 72.76% (🎯 50%) 831 / 1142
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
frontend/src/features/pam/mission/components/elements/actions/action-control-env.tsx 90% 83.33% 100% 94.44% 33, 205
frontend/src/features/pam/mission/components/elements/infractions/env-infraction-add-new-target.tsx 100% 87.5% 100% 100%
frontend/src/features/pam/mission/components/elements/infractions/env-infraction-target-added-by-unit-form.tsx 83.33% 100% 66.66% 83.33% 64, 80, 90
Generated in workflow #1073
xtiannyeto commented 6 days ago
  1. Véhicule On affiche le champ immatriculation du véhicule vesselIdentifier et identityControlledPerson ;)