horoeka-2022 / gardenz

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

Admin Gallery Page - admin/gardens/:id/gallery #65

Open clementine-smart opened 1 year ago

clementine-smart commented 1 year ago

As an administrator I want a gallery management page So that I can view, change and delete photos for our garden

See the figma prototype and use the scenarios below to plan your work. Note that the checkboxes and delete multiple photos feature is a stretch.

Scope

Note that the associated admin/gardens/:id/photo/:id/edit page is in another ticket.

Take some time to research how you might achieve the desired look of the photo components. For example;

  1. Button overlays
  2. Fitting photos into a fixed-size container

User Scenarios

Given I land on the admin gallery page When I click the trash button on any photo Then I see a confirmation dialog asking me to confirm deletion of a photo

Given I have clicked on the trash button And I am shown the confirmation dialog When I click on delete Then the photo is removed from the gallery and our db

Given I have clicked on the trash button And I am shown the confirmation dialog When I click on close Then the photo is kept

STRETCH

Given I have 1 or more photos selected with checkboxes When I click on the Delete button Then I see a confirmation dialog asking me to confirm deletion of multiple photos