From 84970a352d2c7e6e640c257d7ea932b91cf59547 Mon Sep 17 00:00:00 2001
From: matthieu
Date: Sun, 8 Mar 2026 17:30:45 +0100
Subject: [PATCH] refactor(frontend) : extract ProductDocumentsInline to reduce
PieceItem under 500 lines
Co-Authored-By: Claude Opus 4.6
---
app/components/PieceItem.vue | 71 ++-------------------
app/components/ProductDocumentsInline.vue | 78 +++++++++++++++++++++++
2 files changed, 82 insertions(+), 67 deletions(-)
create mode 100644 app/components/ProductDocumentsInline.vue
diff --git a/app/components/PieceItem.vue b/app/components/PieceItem.vue
index acc5260..ff643bd 100644
--- a/app/components/PieceItem.vue
+++ b/app/components/PieceItem.vue
@@ -165,65 +165,10 @@
{{ info.label }} :
{{ info.value }}
-
-
Documents du produit
-
-
-
-
![]()
-
-
-
-
-
- {{ document.name }}
-
-
- {{ document.mimeType || 'Inconnu' }} • {{ formatSize(document.size) }}
-
-
-
-
-
-
-
-
-
+