Skip to content

feat: add storefront gallery with admin CRUD#45

Merged
mighty840 merged 2 commits into
mainfrom
feat/storefront-gallery
May 14, 2026
Merged

feat: add storefront gallery with admin CRUD#45
mighty840 merged 2 commits into
mainfrom
feat/storefront-gallery

Conversation

@mighty840
Copy link
Copy Markdown
Owner

Summary

  • Adds a public photo gallery to the storefront at /gallery with category filter chips (Food, Interior, Garden, Events) and a lightbox modal.
  • Adds the Gallery link to all storefront header variants and the i18n strings across 6 locales (en, de, es, fr, it, pt).
  • New GalleryImage Prisma model + migration, backed by a public GET /api/gallery endpoint and staff-only CRUD endpoints.
  • New admin page Design → Gallery for managing images: add, edit, hide/show, reorder, delete.
  • Seeds ~13 sample images across the four categories so the page is populated out of the box.

Covers item 2 of the Moksha post-pitch backlog (website gallery section).

Test plan

  • Visit /gallery on the storefront → grid renders, category chips filter, clicking an image opens lightbox
  • Switch languages via the storefront language switcher → category labels and subtitle translate
  • In admin, navigate to Design → Gallery → list shows all images grouped by category
  • Add a new image via the form → appears on storefront immediately
  • Hide an image in admin → it disappears from storefront
  • Delete an image → confirms via dialog and removes from both

🤖 Generated with Claude Code

mighty840 and others added 2 commits May 14, 2026 13:25
Adds a public photo gallery to the storefront under /gallery with
category filter chips (Food, Interior, Garden, Events) and a
lightbox modal. The Gallery nav link is added to the shared header
templates and the classic/elegant headers.

A new GalleryImage Prisma model backs the feature, with a
public GET /api/gallery endpoint and staff-only CRUD endpoints.
Admins can manage images at /design/gallery: add, edit, toggle
active, reorder, and delete. Seed populates ~13 sample images
across the four categories.

All six storefront locales (en, de, es, fr, it, pt) get a new
gallery namespace plus a nav.gallery key.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds integration tests for GET /api/gallery (public),
GET /api/gallery/admin (staff full list), POST/PATCH/DELETE
gallery routes. Covers auth gating, input validation, and
happy paths.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mighty840 mighty840 force-pushed the feat/storefront-gallery branch from 5ac46eb to 86a17a3 Compare May 14, 2026 11:25
@mighty840 mighty840 merged commit 8171d88 into main May 14, 2026
8 checks passed
@mighty840 mighty840 deleted the feat/storefront-gallery branch May 14, 2026 12:34
@mighty840 mighty840 mentioned this pull request May 14, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant