From 10af792261bd08fb4504fbe745eaa8c1fe038ebb Mon Sep 17 00:00:00 2001 From: Andymick Date: Sat, 18 Jul 2026 16:24:28 +0100 Subject: [PATCH] Remove reviews section from product pages - Delete Reviews.tsx component - Remove Reviews from standard product page - Remove Reviews from made-to-order product page - Simplify page layout by removing review section Co-Authored-By: Claude Haiku 4.5 --- .claude/settings.local.json | 4 +- src/app/made-to-order/[slug]/page.tsx | 5 --- src/app/products/[slug]/page.tsx | 5 --- src/components/Reviews.tsx | 57 --------------------------- 4 files changed, 3 insertions(+), 68 deletions(-) delete mode 100644 src/components/Reviews.tsx diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 1e23609..5816419 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -46,7 +46,9 @@ "Bash(rm -rf .next node_modules/.cache)", "Bash(git commit -m 'Fix JSX syntax errors in DesignCanvas - close bracket issues *)", "Bash(rm -rf craft2prints)", - "Bash(git commit -m 'Add design approval workflow and per-image dimension tracking *)" + "Bash(git commit -m 'Add design approval workflow and per-image dimension tracking *)", + "Bash(git commit -m 'Remove feedback messages to simplify design canvas layout *)", + "Bash(git commit -m 'Remove reviews section from product pages *)" ] } } diff --git a/src/app/made-to-order/[slug]/page.tsx b/src/app/made-to-order/[slug]/page.tsx index 2174d1a..5b2e51e 100644 --- a/src/app/made-to-order/[slug]/page.tsx +++ b/src/app/made-to-order/[slug]/page.tsx @@ -4,7 +4,6 @@ import { prisma } from '@/lib/prisma'; import { toProductDTO } from '@/lib/product'; import { fetchActivePromotions } from '@/lib/promotions'; import ProductCard from '@/components/ProductCard'; -import Reviews from '@/components/Reviews'; const DesignCanvas = dynamic(() => import('@/components/DesignCanvas'), { ssr: false }); @@ -26,10 +25,6 @@ export default async function ProductDetailPage({ params }: { params: { slug: st
-
- -
- {related.length > 0 && (

You might also like

diff --git a/src/app/products/[slug]/page.tsx b/src/app/products/[slug]/page.tsx index 49dc946..79a951d 100644 --- a/src/app/products/[slug]/page.tsx +++ b/src/app/products/[slug]/page.tsx @@ -4,7 +4,6 @@ import { toProductDTO } from '@/lib/product'; import { fetchActivePromotions } from '@/lib/promotions'; import StandardProductView from '@/components/StandardProductView'; import ProductCard from '@/components/ProductCard'; -import Reviews from '@/components/Reviews'; export default async function StandardProductPage({ params }: { params: { slug: string } }) { const activePromotions = await fetchActivePromotions(); @@ -24,10 +23,6 @@ export default async function StandardProductPage({ params }: { params: { slug:
-
- -
- {related.length > 0 && (

You might also like

diff --git a/src/components/Reviews.tsx b/src/components/Reviews.tsx deleted file mode 100644 index 47cc08f..0000000 --- a/src/components/Reviews.tsx +++ /dev/null @@ -1,57 +0,0 @@ -// Placeholder reviews so the product page doesn't look empty. Swap this out for -// real review data (its own Prisma model, or a reviews API) once you're ready. -const SAMPLE_REVIEWS = [ - { - name: 'Priya S.', - rating: 5, - body: 'The print came out exactly how I designed it. Fabric feels heavier than I expected in a good way.', - }, - { - name: 'Marcus T.', - rating: 5, - body: "Uploaded my own logo and it lined up perfectly. Shipping was faster than the estimate too.", - }, - { - name: 'Aisha K.', - rating: 4, - body: 'Great quality overall. Wish there were a couple more color options for this one.', - }, -]; - -function Stars({ rating }: { rating: number }) { - return ( - - {'★'.repeat(rating)} - {'★'.repeat(5 - rating)} - - ); -} - -export default function Reviews() { - const average = - Math.round((SAMPLE_REVIEWS.reduce((s, r) => s + r.rating, 0) / SAMPLE_REVIEWS.length) * 10) / 10; - - return ( -
-
-

Reviews

-
- - - {average} · {SAMPLE_REVIEWS.length} reviews - -
-
- -
- {SAMPLE_REVIEWS.map((r) => ( -
- -

{r.body}

-

{r.name}

-
- ))} -
-
- ); -}