From 408025bb366964f2dd2df4a9ce2ab7cdc2e54df1 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Mon, 6 Apr 2026 15:02:07 +0200 Subject: [PATCH] feat(21-01): enhance catalog detail page with Add to Collection button - Add image placeholder (package icon) when no imageUrl exists - Add 'Add to Collection' button stub between specs and description - Button styled per D-10, logs to console (actual flow wired in Phase 22) - Consistent layout with item detail page --- .../routes/global-items/$globalItemId.tsx | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/src/client/routes/global-items/$globalItemId.tsx b/src/client/routes/global-items/$globalItemId.tsx index a591e8b..c6a227a 100644 --- a/src/client/routes/global-items/$globalItemId.tsx +++ b/src/client/routes/global-items/$globalItemId.tsx @@ -55,15 +55,27 @@ function GlobalItemDetail() { {/* Image */} - {item.imageUrl && ( -
+
+ {item.imageUrl ? ( {`${item.brand} -
- )} + ) : ( +
+ + + +
+ )} +
{/* Header */}
@@ -114,6 +126,17 @@ function GlobalItemDetail() { )}
+ {/* Add to Collection */} +
+ +
+ {/* Description */} {item.description && (