dimitriosxmi / ArtistsReferenceOrganizer

Neue Fische Capstone Project
https://artists-reference-organizer.vercel.app
0 stars 0 forks source link

Feature/us10/delete folder button #29

Closed dimitriosxmi closed 1 year ago

dimitriosxmi commented 1 year ago

Please take a moment to review this ❤️ Goal: US10 (and US11) TL; DR: Folders and Entries must have a delete button, the button must have the same behaviour on both, clicking it will show a delete request window, clicking cancel or outside the window will close it, clicking delete button will delete the given folder or entry. Deleting a folder doesn't delete the entries assigned to it.

Deployment

+ Add DeleteRequest component
# Handles the request of DELETE method for deleting a folder/ entry.

+ Add DeleteButton component
# Handles the toggling on of the Delete Request component.

! Update entry.js api page
# Handles the DELETE method for deleting an entry by id.

! Update folder.js api page
# Handles the DELETE method for deleting a folder by id.

! Update entries.js api page
# Handles the PUT method for removing the entrySelectedFolder
# property from all entries with the specific folder id of the folder
# that is currently being deleted.

! Update /folder/[folderId].js page
# Uses the DeleteButton component.

! Update [entryId].js page
# Uses the DeleteButton component.
CarstenJahnke commented 1 year ago

U made it Bro! 🤪🚀

dimitriosxmi commented 1 year ago

U made it Bro! 🤪🚀

Yo bro thnx for the review! ❤️