From 244bfdc3e4c5b8f82c423d1cec974f6907902bac Mon Sep 17 00:00:00 2001 From: r-dev Date: Sun, 5 Apr 2026 18:26:05 +0200 Subject: [PATCH] =?UTF-8?q?fix=20:=20code=20review=20=E2=80=94=20correct?= =?UTF-8?q?=2015=20issues=20across=20UX=20overhaul=20(phases=201-4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Critical fixes: - Make MigrateConstructeurLinks migration no-op (legacy tables already dropped) - Add explicit ON CONFLICT (id) target in RestoreConstructeurLinks migration - Replace N+1 queries with 4 bulk GROUP BY in ConstructeurStatsController - Declare missing versionListRef template ref in machine detail page - Add missing await on removeMachineDocument, cast activeTab as string Important fixes: - Add lang="ts" to ToastContainer and constructeurs page - Type entityType as union in UsedInSection/useUsedIn - Remove dead duration param from showError - Update back-link props to new /catalogues/* URLs (3 pages) - Replace raw error blocks with EmptyState in component/piece detail pages - Type handleFillEntity params and machineInfoCardRef Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/app/components/ToastContainer.vue | 4 +- .../app/components/common/UsedInSection.vue | 2 +- frontend/app/composables/useToast.ts | 4 +- frontend/app/composables/useUsedIn.ts | 2 +- frontend/app/pages/component/[id]/index.vue | 33 ++++---- frontend/app/pages/constructeurs.vue | 2 +- frontend/app/pages/machine/[id].vue | 9 ++- frontend/app/pages/piece/[id].vue | 22 ++---- frontend/app/pages/product/[id]/index.vue | 2 +- ...rsion20260405_MigrateConstructeurLinks.php | 64 +-------------- ...405_RestoreConstructeurLinksFromBackup.php | 6 +- .../ConstructeurStatsController.php | 78 +++++++++++-------- 12 files changed, 92 insertions(+), 136 deletions(-) diff --git a/frontend/app/components/ToastContainer.vue b/frontend/app/components/ToastContainer.vue index 93c9682..36f14f1 100644 --- a/frontend/app/components/ToastContainer.vue +++ b/frontend/app/components/ToastContainer.vue @@ -67,7 +67,7 @@ -