From ac61d95ac8abcc4268ce2947267a8069e21410fb Mon Sep 17 00:00:00 2001 From: Andymick Date: Sat, 18 Jul 2026 10:25:37 +0100 Subject: [PATCH] Add design element details (size, position, rotation) to order detail page --- src/app/admin/orders/[id]/page.tsx | 74 ++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/src/app/admin/orders/[id]/page.tsx b/src/app/admin/orders/[id]/page.tsx index 649dffe..201b5f3 100644 --- a/src/app/admin/orders/[id]/page.tsx +++ b/src/app/admin/orders/[id]/page.tsx @@ -130,6 +130,80 @@ export default async function OrderDetailPage({ params }: { params: { id: string )} + + {(hasFrontDesign || hasBackDesign) && ( +
+

Design details

+ {hasFrontDesign && design.front.length > 0 && ( +
+

Front design elements:

+
+ {(design.front as any[]).map((el, idx) => ( +
+ {el.type === 'text' ? ( +
+

+ Text: "{el.text}" +

+

+ Font: {el.fontFamily} {el.fontSize}px · Color: {el.fill} +

+

+ Position: x={Math.round(el.x)}px, y={Math.round(el.y)}px · Rotation: {Math.round(el.rotation)}° +

+
+ ) : ( +
+

Image

+

+ Size: {Math.round(el.width)}px × {Math.round(el.height)}px +

+

+ Position: x={Math.round(el.x)}px, y={Math.round(el.y)}px · Rotation: {Math.round(el.rotation)}° +

+
+ )} +
+ ))} +
+
+ )} + {hasBackDesign && design.back.length > 0 && ( +
+

Back design elements:

+
+ {(design.back as any[]).map((el, idx) => ( +
+ {el.type === 'text' ? ( +
+

+ Text: "{el.text}" +

+

+ Font: {el.fontFamily} {el.fontSize}px · Color: {el.fill} +

+

+ Position: x={Math.round(el.x)}px, y={Math.round(el.y)}px · Rotation: {Math.round(el.rotation)}° +

+
+ ) : ( +
+

Image

+

+ Size: {Math.round(el.width)}px × {Math.round(el.height)}px +

+

+ Position: x={Math.round(el.x)}px, y={Math.round(el.y)}px · Rotation: {Math.round(el.rotation)}° +

+
+ )} +
+ ))} +
+
+ )} +
+ )} ); })}