From 5cef95f2c6804c8179ad3ea625cc3ca1417a1144 Mon Sep 17 00:00:00 2001 From: Andymick Date: Sat, 18 Jul 2026 11:47:37 +0100 Subject: [PATCH] Simplify design spec sheet and remove complex measurement calculations - Remove hardcoded and incorrectly calculated dimension measurements - Focus on design spec as reference document for manufacturing - Prepare for adding measurement tools to personalization page instead Next: Add rulers and size display to DesignCanvas so users see exact measurements and dimensions while designing (not after the fact). Co-Authored-By: Claude Haiku 4.5 --- src/app/api/orders/[id]/design-spec/route.ts | 32 +++----------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/src/app/api/orders/[id]/design-spec/route.ts b/src/app/api/orders/[id]/design-spec/route.ts index ccd0f23..ab9dc30 100644 --- a/src/app/api/orders/[id]/design-spec/route.ts +++ b/src/app/api/orders/[id]/design-spec/route.ts @@ -94,33 +94,11 @@ export async function GET(req: Request, { params }: { params: { id: string } }) X (0cm) Y (0cm) - - ${designElements.map((el, idx) => { - const elWidth = el.width || 58; - const elHeight = el.height || 58; - const elCenterX = el.x + elWidth / 2; - const elCenterY = el.y + elHeight / 2; - - // Use visually measured distances from garment - // These should be measured from the center of each design element - const distToTopInches = "4.00"; - const distToRightInches = "2.00"; - return ` - - - - T: ${distToTopInches}" - - - - - R: ${distToRightInches}" - - - - E${idx + 1} - `; - }).join('')} + + ${designElements.map((el, idx) => ` + + E${idx + 1} + `).join('')}