horoeka-2022 / gardenz

Empowering community gardens in New Zealand
0 stars 1 forks source link

Connect Photo Galleries with DB data - gardens/:id/gallery #50

Closed clementine-smart closed 1 year ago

clementine-smart commented 1 year ago

As a user I want the photo gallery to connect with our database So that I can view images submitted by our users

See the Figma prototype for how the gallery might look (gardens/:id/gallery).

Scope

  1. Note that the photo gallery component work will be done in another ticket, where it uses an array of hard-coded photo data.
  2. Use that photo gallery component to display all images for a garden on the garden's gallery page (gardens/:id/gallery).
  3. User server side gallery routes to retrieve gallery data on the client-side.
  4. Use the consume function in consume.js to make API requests. Search consume in the project to see how other components have used it.

image

User Scenarios

Given I am on a garden page When I click on the Gallery menu button (gardens/:id/gallery) Then I see all of the garden's photos in a scrollable, responsive format