From a7415964a718bef7c08af6d6399afd778e45b841 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Thu, 26 Mar 2026 16:51:34 +0100 Subject: [PATCH] feat(machine) : single save button + link versioning display - Replace auto-save-on-blur with single "Enregistrer" button - Add Cancel button that resets local state - Expose saveFieldDefinitions via defineExpose on MachineInfoCard - Remove standalone save button from MachineCustomFieldDefEditor - Add saveAllMachineCustomFields batch method - Add submitEdition/cancelEdition/saving/canSubmit to orchestrator - Show diff summary badges in version list entries - Show link changes in restore modal description Co-Authored-By: Claude Opus 4.6 (1M context) --- app/components/common/EntityVersionList.vue | 19 +++++++ app/components/common/VersionRestoreModal.vue | 1 + .../machine/MachineCustomFieldDefEditor.vue | 18 ++----- app/components/machine/MachineInfoCard.vue | 16 ++---- .../useMachineDetailCustomFields.ts | 53 +++++++++++++++++++ app/composables/useMachineDetailData.ts | 40 ++++++++++++++ app/composables/useMachineDetailUpdates.ts | 3 +- app/pages/machine/[id].vue | 49 +++++++++++++++-- 8 files changed, 166 insertions(+), 33 deletions(-) diff --git a/app/components/common/EntityVersionList.vue b/app/components/common/EntityVersionList.vue index c37d370..9d35218 100644 --- a/app/components/common/EntityVersionList.vue +++ b/app/components/common/EntityVersionList.vue @@ -53,6 +53,15 @@ {{ formatDate(entry.createdAt) }} · {{ entry.actor.label }} +
+ + {{ formatDiffEntry(String(field), change) }} + +