Skip to content

Feat/employee receives bdc with or without lic - #928

Open
rzafari42 wants to merge 6 commits into
masterfrom
feat/employee-receives-bdc-with-or-without-lic
Open

Feat/employee receives bdc with or without lic#928
rzafari42 wants to merge 6 commits into
masterfrom
feat/employee-receives-bdc-with-or-without-lic

Conversation

@rzafari42

Copy link
Copy Markdown
Contributor

@tristanrobert

tristanrobert commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

- Keep the "Envoyer" button visible regardless of send status
- Guard submit against empty inputs and surface a field-level error
- Drop the now-unused required/disabled validation logic
- Add the "remis au format papier" checkbox directly inside
  ControlSendEmailNoLicModal, driven by handDelivered/handleHandDeliveredChange
- Disable the driver email field based on handDelivered instead of a
  derived disableDriverInput prop
- Only show the "Remis au conducteur (via Mobilic)" badge in LIC context,
  since it reflects availability in the driver's Mobilic account
@sonarqubecloud

Copy link
Copy Markdown

@gaspard-lonchampt gaspard-lonchampt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟠 Défaut forAdmin inversé dans le hook (useControlBulletinActions.js)

Le défaut est false (conducteur), alors que le back-end a for_admin=True (gestionnaire) et que le comportement historique était « gestionnaire ». Tous les appelants actuels passent forAdmin explicitement, donc pas de bug actif, mais un futur appel handleSend(emails) sans le flag enverrait silencieusement au conducteur. Je suggère dʼaligner le défaut sur true (ou de rendre le paramètre obligatoire) pour rester cohérent avec le back.

🟠 À confirmer : double pastille « Remis au conducteur » (ControllerControlBottomMenu.js)

Sur un contrôle LIC, la pastille « Remis au conducteur (via Mobilic) » (condition isBulletinAvailableForDriver && !isNoLicContext) peut coexister avec la nouvelle « Remis au conducteur (papier/via email) » (condition sentToDriver || handDelivered). Deux pastilles « Remis au conducteur » côte à côte : voulu (deux canaux distincts) ou redondant ?

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.

3 participants