Skip to content

feat(dsoc): support multiple images per project#45

Merged
ZeeshanAdilButt merged 1 commit into
mainfrom
dsoc-project-gallery
May 29, 2026
Merged

feat(dsoc): support multiple images per project#45
ZeeshanAdilButt merged 1 commit into
mainfrom
dsoc-project-gallery

Conversation

@ZeeshanAdilButt

Copy link
Copy Markdown
Collaborator

Summary

Re-lands the project gallery feature. This commit was on PR #42 but landed on the branch after that PR merged, so it never reached `main`. Production currently has no gallery picker in the admin edit/create form, which is why @ZeeshanAdilButt couldn't add multiple images.

  • Schema: `DSOCProject.gallery: string[]` (default `[]`)
  • Admin create + edit forms: multi-file picker, per-thumbnail remove, upload progress + error states
  • Project detail page: thumbnail grid above long description, click-to-zoom lightbox

Backward compatible. `featuredImage` stays as the required cover used in listings; projects with no `gallery` render exactly as before.

Test plan

  • Edit a project, select 3 images at once in "Additional Images (Gallery)" → all three preview thumbnails appear
  • Click X on one thumbnail → it removes
  • Save → reload edit page → previously-saved gallery is loaded
  • Open the public project detail page → gallery grid renders, click image opens lightbox, click outside or X closes
  • Existing projects with no gallery render unchanged

🤖 Generated with Claude Code

Adds an optional image gallery alongside the existing required
featuredImage cover.

- Schema: DSOCProject.gallery: string[] (default [])
- Admin create + edit forms get a multi-file gallery picker with
  inline previews, per-thumbnail remove, and progress/error states.
  Reuses the existing Cloudinary upload route.
- Project detail page renders the gallery as a thumbnail grid above
  the long description with a click-to-zoom lightbox.

Backward compatible: existing projects with no gallery render exactly
as before. featuredImage stays the required cover used in listings.
@ZeeshanAdilButt ZeeshanAdilButt merged commit c7796bf into main May 29, 2026
2 checks passed
@ZeeshanAdilButt ZeeshanAdilButt deleted the dsoc-project-gallery branch May 29, 2026 04:29
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