From 9e303426a72b10aa31f43e0b6e4283cd30c8a86c Mon Sep 17 00:00:00 2001 From: Matthieu Date: Mon, 16 Mar 2026 11:59:51 +0100 Subject: [PATCH] fix(slots) : filter slot select options server-side instead of client-side PieceSelect, ProductSelect and ComposantSelect were loading up to 200 items then filtering client-side by typeId. If the matching items were not in the first 200, the dropdown appeared empty. Now each select component uses API Platform filters (typePiece, typeProduct, typeComposant) to fetch only relevant items server-side, with local state to avoid overwriting the global catalog cache. Co-Authored-By: Claude Opus 4.6 (1M context) --- app/components/ComposantSelect.vue | 58 ++++++++++++++---------------- app/components/PieceSelect.vue | 58 ++++++++++++++---------------- app/components/ProductSelect.vue | 58 ++++++++++++++---------------- app/composables/useComposants.ts | 24 +++++++++---- app/composables/usePieces.ts | 27 ++++++++++---- app/composables/useProducts.ts | 23 ++++++++---- 6 files changed, 135 insertions(+), 113 deletions(-) diff --git a/app/components/ComposantSelect.vue b/app/components/ComposantSelect.vue index 13ea2b5..4675700 100644 --- a/app/components/ComposantSelect.vue +++ b/app/components/ComposantSelect.vue @@ -25,7 +25,7 @@