feat(transport) : écran ajout transporteur — layout + formulaire principal (ERP-165) #122
Reference in New Issue
Block a user
Delete Branch "feat/erp-165-carrier-new"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Layout onglets + POST /api/carriers. Ticket ERP-165.
⚠️ Stack sur #121 (ERP-164, branche
feat/erp-164-carriers-list, non encore mergée) : à merger APRÈS #121. Tant que #121 n'est pas mergé, ce diff inclut ses commits.Périmètre : page /carriers/new (layout + barre d'onglets Qualimat/Adresses/Contacts/Prix à validation incrémentale), formulaire principal (Nom / Certification / Affréter) → POST /api/carriers, composable useCarrierForm (POST principal + PATCH partiels par onglet). Champs conditionnels + saisie assistée QUALIMAT au ticket suivant (ERP-166).
Review front — ERP-165 (écran ajout, formulaire principal)
Verdict : mergeable (1 réserve UX à confirmer).
Fidèle à
clients/new.vue: erreurs 422 inline viauseFormErrors, appels{ toast: false }, bouton Valider toujours actif, payload qui omet les champs vides pour laisser la 422 métier porter sur le bon champ. Tests pertinents (pré-check nom vide, payload exact, headersld+json, 409, 422 mappé, gating onglets).Findings
name), le code faitsetError('name', …)ETtoast.error(…)→ doublon visuel (l'erreur est déjà affichée inline sous le champ). C'est toléré par la référenceuseCategoryForm(RG-1.07), donc pas une violation stricte, mais à trancher côté UX : l'inline seul suffirait.patchCarrier,editMode,validated,buildMainPayload) ne sont pas encore consommées (placeholders des tickets suivants) — assumé, couvert par les tests, pas de code mort réel.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.