Store: product image gallery on the detail page #22

Open
opened 2026-07-25 13:45:49 +00:00 by yuris · 0 comments
Owner

Target

apps/store/app/products/[slug]/page.tsx and a small client gallery component.

Change

  • The detail page currently renders only images[0]. Add a thumbnail strip that swaps the displayed main image.
  • Keep the existing placeholder when images is empty.
  • Keep plain <img> (no image proxy exists under static export).

Constraints

  • Compatible with output: "export"; no new dependencies; no catalog contract change.

Acceptance

  • Products with multiple images show selectable thumbnails that change the main image.
  • Products with one or zero images render unchanged.
  • Verify at http://localhost:3001/products/ via devenv up.

Non-goals

  • Lightbox/zoom libraries.
  • Exposing price or stock.
## Target `apps/store/app/products/[slug]/page.tsx` and a small client gallery component. ## Change - The detail page currently renders only `images[0]`. Add a thumbnail strip that swaps the displayed main image. - Keep the existing placeholder when `images` is empty. - Keep plain `<img>` (no image proxy exists under static export). ## Constraints - Compatible with `output: "export"`; no new dependencies; no catalog contract change. ## Acceptance - Products with multiple images show selectable thumbnails that change the main image. - Products with one or zero images render unchanged. - Verify at http://localhost:3001/products/<slug> via `devenv up`. ## Non-goals - Lightbox/zoom libraries. - Exposing price or stock.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yuris/garage#22
No description provided.