Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[FEAT] - Deferred Image Deletion Until Save Edits Button Clicked #706

Open
marclupanc opened this issue Feb 20, 2025 · 0 comments
Open

[FEAT] - Deferred Image Deletion Until Save Edits Button Clicked #706

marclupanc opened this issue Feb 20, 2025 · 0 comments
Labels
Difficulty: Intermediate Intermediate level Priority: Medium Type: Enhancement Enhancement to existing feature Type: Feature New feature
Milestone

Comments

@marclupanc
Copy link
Collaborator

Description
Currently, clicking the trash icon on an image immediately removes it from the database. To improve the user experience, we should instead create a temporary list of images to be deleted. These images should only be permanently removed when the user clicks the Save Edits button.

Requirements

  • When the user click the trash icon, the image should be either remove from the display immediately (from UI only) or grayed out or marked as "to be deleted"
  • The image should be added to a temporary deletion list stored in the local application state
  • User should have an option to "undo" the deletion for any image before clicking the Save Edits button
  • If the user cancels their edits or navigates away, the deletion list should be discarded and all images should remain itact in the databse

Acceptance Criteria

  • Clicking the trash icon removes the image from the UI and adds it to the deletion list without sending a deletion request to the backend ( As alternative - images pending deletion are visually distunguished from images that are not marked for deletion)
  • The user can click an undo button for any images in the deletion list before saving
  • On clicking Save Edits, a deletion request is sent that remove all images in the deletion list from the database (storage)
  • If the user Cancels edits or navigates away without saving, the deletion list is cleared and no images are deleted from storage - on returning, all images should be visible and intact
  • If a failure occures during the deletion, we should display an concise error messge and retain the images in the deletion list until the user successfully saves or cancels their edits
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Difficulty: Intermediate Intermediate level Priority: Medium Type: Enhancement Enhancement to existing feature Type: Feature New feature
Projects
Development

No branches or pull requests

1 participant