From 7a22e402683f91bce1bbff73024c8b9b12ec8a1d Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Fri, 26 Jun 2026 10:36:00 +0100 Subject: [PATCH] feat: reorder criteria and profiles by dragging Add a drag handle to each criterion and profile row, backed by a pointer-based composable that works with mouse and touch. Reordering criteria changes the chart spoke order; reordering profiles changes draw/legend order. Scores are keyed by id, so they follow their row. --- src/components/CriteriaEditor.vue | 31 +++++++++++++++- src/components/ProfilesEditor.vue | 27 +++++++++++++- src/utils/reorder.ts | 62 +++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+), 4 deletions(-) create mode 100644 src/utils/reorder.ts diff --git a/src/components/CriteriaEditor.vue b/src/components/CriteriaEditor.vue index 60c45d1..eae439a 100644 --- a/src/components/CriteriaEditor.vue +++ b/src/components/CriteriaEditor.vue @@ -1,11 +1,24 @@