diff --git a/apps/storefront/app/products/[slug]/page.tsx b/apps/storefront/app/products/[slug]/page.tsx index bfe9b76..03e3974 100644 --- a/apps/storefront/app/products/[slug]/page.tsx +++ b/apps/storefront/app/products/[slug]/page.tsx @@ -55,7 +55,7 @@ export default async function ProductPage({ params }: Params) { {product.garment}

- {product.artworkTitle} + {product.title}

From the{' '} diff --git a/apps/storefront/app/shop/page.tsx b/apps/storefront/app/shop/page.tsx index a664c97..ebf4991 100644 --- a/apps/storefront/app/shop/page.tsx +++ b/apps/storefront/app/shop/page.tsx @@ -14,13 +14,16 @@ export const metadata: Metadata = { export default async function ShopPage() { const products = await dataProvider.listProducts(); + const designSlugs = new Set(suppliedShopDesigns.map((d) => d.slug)); + const clothingDesigns = products.filter((p) => designSlugs.has(p.slug)); + const availablePieces = products.filter((p) => !designSlugs.has(p.slug)); return ( @@ -32,25 +35,30 @@ export default async function ShopPage() { Clothing designs

- Every supplied shirt and worn-piece image lives here in Shop, linked to the artwork it - carries. + Studio-supplied shirts you can buy as-is — open a piece to choose size, add to bag, and + leave a review.

- + {clothingDesigns.length === 0 ? ( +
+ +
+ ) : ( + + )} - {products.length === 0 ? ( -
- -
- ) : ( + {availablePieces.length === 0 ? null : (