From 4f13f7d3017ce8e8b77c665a50ea434f32d2a77a Mon Sep 17 00:00:00 2001 From: r-dev Date: Sat, 4 Apr 2026 16:39:21 +0200 Subject: [PATCH] =?UTF-8?q?feat(ui)=20:=20clickable=20entity=20links,=20si?= =?UTF-8?q?te=E2=86=92machines=20links,=20DataTable=20fixedLayout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add NuxtLink on component/piece/product names in machine hierarchy (using composantId, pieceId, product.id) - Make site machine count badges clickable → /machines?sites={id} - Add opt-in fixedLayout prop and minWidth to DataTable columns Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/app/components/ComponentItem.vue | 10 +++++++++- frontend/app/components/PieceItem.vue | 10 +++++++++- frontend/app/components/common/DataTable.vue | 5 ++++- .../app/components/machine/MachineProductsCard.vue | 9 ++++++++- frontend/app/components/sites/SiteCard.vue | 11 ++++++----- frontend/app/pages/index.vue | 9 +++++---- frontend/app/shared/types/dataTable.ts | 2 ++ 7 files changed, 43 insertions(+), 13 deletions(-) diff --git a/frontend/app/components/ComponentItem.vue b/frontend/app/components/ComponentItem.vue index cf15a95..bf13921 100644 --- a/frontend/app/components/ComponentItem.vue +++ b/frontend/app/components/ComponentItem.vue @@ -30,7 +30,15 @@

- {{ component.name }} + + {{ component.name }} + + {{ component.name }}

- +
@@ -85,6 +85,7 @@ alignClass(col), { 'hidden sm:table-cell': col.hiddenMobile }, ]" + :style="col.minWidth ? { minWidth: col.minWidth } : undefined" > (), { rowKey: 'id', loading: false, diff --git a/frontend/app/components/machine/MachineProductsCard.vue b/frontend/app/components/machine/MachineProductsCard.vue index 6ae7822..9efa98c 100644 --- a/frontend/app/components/machine/MachineProductsCard.vue +++ b/frontend/app/components/machine/MachineProductsCard.vue @@ -29,7 +29,14 @@ >

- {{ product.name }} + + {{ product.name }} + + {{ product.name }}

@@ -39,10 +40,10 @@
-
+
+
diff --git a/frontend/app/pages/index.vue b/frontend/app/pages/index.vue index 7527fac..ef7f937 100644 --- a/frontend/app/pages/index.vue +++ b/frontend/app/pages/index.vue @@ -141,13 +141,14 @@
- - {{ site.machines?.length || 0 }} - + {{ site.machines?.length || 0 }} machine{{ (site.machines?.length || 0) > 1 ? 's' : '' }} +