Skip to content

fix: wire up the Gallery See all button to a dedicated gallery page#404

Open
zigzagdev wants to merge 4 commits into
mainfrom
fix/gallery-see-all-navigation
Open

fix: wire up the Gallery See all button to a dedicated gallery page#404
zigzagdev wants to merge 4 commits into
mainfrom
fix/gallery-see-all-navigation

Conversation

@zigzagdev

Copy link
Copy Markdown
Owner

Summary

  • HeritageGallery's "See all" button rendered whenever a site has more than 6 photos, but HeritageDetailLayout never passed an onOpenGallery handler — clicking it did nothing, so users could never view photos beyond the 6-photo preview grid.
  • Adds a dedicated full-gallery page at /heritages/:id/gallery (path param, since it's a sub-resource of a specific heritage site) showing the complete photo grid, reusing the existing Lightbox for prev/next viewing.
  • Wires HeritageGallery's onOpenGallery in HeritageDetailLayout to navigate there.

Changes

  • feat(gallery): add HeritageGalleryPage (full photo grid + Lightbox)
  • feat(gallery): add HeritageGalleryContainer (fetches heritage detail by :id) + tests
  • feat(routes): wire /heritages/:id/gallery into AppRoutes
  • fix(gallery): wire the "See all" button to navigate there

Closes #403

Test plan

  • tsc --noEmit passes
  • jest — 19 suites / 100 tests passing (4 new tests for HeritageGalleryContainer)
  • Manually visit a heritage detail page with >6 photos, click "See all", confirm the full grid renders and photos open in the Lightbox with prev/next

Renders the full photo grid for a heritage site (no preview cap)
and reuses the existing Lightbox for prev/next viewing.
Fetches the heritage detail by :id and feeds full image list and
Lightbox state to HeritageGalleryPage.
HeritageGallery's "See all" button rendered but did nothing because
onOpenGallery was never passed from HeritageDetailLayout. It now
navigates to the new full gallery page.

Closes #403
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.

fix: wire up the Gallery "See all" button to a dedicated gallery page

1 participant