From c9054e5b4dd1c5d6ebe112652a8b9a97f22dbf96 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Thu, 12 Feb 2026 14:26:41 +0100 Subject: [PATCH] feat(categories): add bidirectional piece/component category conversion Add a "Convertir" button on piece and component category lists that allows converting an entire category (and all its items) between piece and component. Includes a modal with eligibility checks and blocker display. Co-Authored-By: Claude Opus 4.6 --- .../model-types/ConversionModal.vue | 172 ++++++++++++++++++ app/components/model-types/ManagementView.vue | 30 +++ app/components/model-types/Table.vue | 25 +++ app/services/modelTypes.ts | 30 +++ 4 files changed, 257 insertions(+) create mode 100644 app/components/model-types/ConversionModal.vue diff --git a/app/components/model-types/ConversionModal.vue b/app/components/model-types/ConversionModal.vue new file mode 100644 index 0000000..22ba69d --- /dev/null +++ b/app/components/model-types/ConversionModal.vue @@ -0,0 +1,172 @@ + + + diff --git a/app/components/model-types/ManagementView.vue b/app/components/model-types/ManagementView.vue index 86f182a..3b96f39 100644 --- a/app/components/model-types/ManagementView.vue +++ b/app/components/model-types/ManagementView.vue @@ -29,12 +29,21 @@ :total="total" :limit="limit" :offset="offset" + :category="selectedCategory" @related="openRelatedModal" @edit="openEditPage" @delete="confirmDelete" + @convert="openConversionModal" @update:offset="onOffsetChange" /> + +