diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 0e42372..3d23ffd 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -164,7 +164,8 @@ "Bash(git commit -m 'Feat: Add loading spinner for made-to-order page *)", "Bash(git commit -m 'Revert: Remove loading spinner - was slowing down page *)", "Bash(git commit -m 'Fix: Show approved designs in customer account so they can order *)", - "Bash(git commit -m 'Fix: Link approved designs to review page, not personalization *)" + "Bash(git commit -m 'Fix: Link approved designs to review page, not personalization *)", + "Bash(git commit -m 'Feat: Show estimated delivery date on design review page *)" ] } } diff --git a/src/app/designs/[id]/review/page.tsx b/src/app/designs/[id]/review/page.tsx index 3802620..bfecbf4 100644 --- a/src/app/designs/[id]/review/page.tsx +++ b/src/app/designs/[id]/review/page.tsx @@ -22,6 +22,7 @@ interface DesignApproval { color: string; size: string | null; status: string; + expectedDeliveryDate: string | null; } export default function DesignReviewPage({ params }: { params: { id: string } }) { @@ -167,6 +168,11 @@ export default function DesignReviewPage({ params }: { params: { id: string } })
Price: £{((design.product.personalisedPrice ?? design.product.effectivePrice) / 100).toFixed(2)}
+ {design.expectedDeliveryDate && ( ++ Est. delivery: {new Date(design.expectedDeliveryDate).toLocaleDateString(undefined, { dateStyle: 'medium' })} +
+ )}