feat(catalog) : M7 — écran Modification d'un stockage /admin/storages/{id}/edit (ERP-218) #170
Open
tristan
wants to merge 1 commits from
feat/erp-218-storage-edit-form into feat/erp-217-storage-create-form
pull from: feat/erp-218-storage-edit-form
merge into: MALIO-DEV:feat/erp-217-storage-create-form
MALIO-DEV:develop
MALIO-DEV:feat/erp-217-storage-create-form
MALIO-DEV:feat/erp-216-storages-list-page
MALIO-DEV:feat/erp-215-tests-storage
MALIO-DEV:feat/erp-214-storage-export-xlsx
MALIO-DEV:feat/erp-213-storage-provider-processor
MALIO-DEV:feat/erp-212-entite-storage
MALIO-DEV:feat/erp-211-migration-storage
MALIO-DEV:feat/erp-210-permissions-catalog-storages
MALIO-DEV:feat/erp-202-product-export-xlsx
MALIO-DEV:feat/erp-201-storage-type-expose-seed
MALIO-DEV:feat/erp-200-product-provider-processor
MALIO-DEV:feat/erp-199-entites-product-storagetype
MALIO-DEV:feat/erp-198-migration-schema-m6-produit
MALIO-DEV:feat/erp-197-permissions-catalog-products
MALIO-DEV:feat/erp-190-ecran-modification-ticket-pesee
MALIO-DEV:feat/erp-189-ecran-ajouter-ticket-pesee
MALIO-DEV:feat/erp-188-liste-tickets-pesee
MALIO-DEV:chore/erp-174-migration-mixgraine
MALIO-DEV:feature/ERP-138-rbac-technique-providers
MALIO-DEV:feature/ERP-137-export-xlsx-prestataires
MALIO-DEV:feature/ERP-136-validations-rg-server-side
MALIO-DEV:feature/ERP-135-sous-ressources-provider
MALIO-DEV:feature/ERP-134-provider-processor-cloisonnement-site
MALIO-DEV:feature/M6-field-sales
MALIO-DEV:feature/ERP-88-sous-ressources-m2
MALIO-DEV:feature/ERP-89-validators-m2
MALIO-DEV:refactor/refonte-contact-suppression-inline-back
MALIO-DEV:feat/admin-tables-filter-pagination
MALIO-DEV:main
No Reviewers
Labels
Clear labels
back
blocked
breaking
db
front
infra
M0-Categorie
M1-Client
M2-Fournisseur
M3-Prestataire
M4-Transporteur
M5-Ticket-pesee
M6-Produit
M7-Stockage
type/chore
type/ci
type/docs
type/feat
type/fix
type/perf
type/refactor
type/test
wip
Backend PHP / Symfony / API Platform
Bloqué par une dépendance externe
Breaking change — impact API / contrat
Migrations Doctrine / schéma BDD
Frontend Nuxt / Vue / @malio/layer-ui
Docker / nginx / config infra
M0 — Catégories
M1 — Clients
M2 — Fournisseurs
M3 — Prestataires
M4 — Transporteurs
M5 — Tickets de pesée
M6 — Catalogue produit
M7 — Stockage
Tâche de maintenance (bump, conf, etc.)
CI / pipeline / workflows
Documentation
Nouvelle fonctionnalité
Correction de bug
Amélioration de performance
Refacto sans changement fonctionnel
Ajout ou modification de tests
Work in progress — ne pas merger
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: MALIO-DEV/Starseed#170
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "feat/erp-218-storage-edit-form"
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?
Écran de modification d'un stockage (admin-only), empilé sur ERP-217 (#169) — base =
feat/erp-217-storage-create-form.Contenu
/admin/storages/{id}/edit, gatecatalog.storages.manage(redirection liste sinon).useStorage(id)(GET /api/storages/{id}, Hydra pour les IRI des relations).useStorageForm:prefill(storage)mappe la sélection (site/type en IRI, numéro, états) ;submit()bascule enPATCH /api/storages/{id}quandstorageIdest défini (RG-7.08).useFormErrors./admin/storages).Fichiers
frontend/modules/catalog/composables/useStorageForm.ts(+storageId,prefill, branche PATCH)frontend/modules/catalog/composables/useStorage.ts(nouveau)frontend/modules/catalog/pages/admin/storages/[id]/edit.vue(nouveau)frontend/modules/catalog/composables/__tests__/useStorageForm.spec.ts(+3 tests édition)frontend/i18n/locales/fr.json(admin.storages.edit.*+toast.updateSuccess)Vérifications
make nuxt-test: ✅ 746 tests- Route /admin/storages/{id}/edit, gate catalog.storages.manage, détail via useStorage (GET /api/storages/{id}) - Formulaire factorisé create/edit dans useStorageForm : prefill + bouton « Enregistrer » → PATCH /api/storages/{id} (RG-7.08) - Mêmes champs/validations que l'ajout (RG-7.01→7.06), erreurs 422 inline par champ - 409 doublon (site, type, numéro, exclut le courant côté back) → inline sous Numéro + toast - Pas d'onglets (HP-M7-06) ; libellés i18n edit.* + toast.updateSuccess - Tests Vitest useStorageForm mode édition (prefill + PATCH + 409)View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.