As a user
I want to click a button to delete an entry
so that I can remove entries that I don't need anymore
Description
Acceptance Criteria
[x] Entry view page must have a Delete button on the top right
[x] Delete button must have the text ❌ Delete Entry
[x] Clicking the Delete button must open up a Delete request
[x] Delete request must contain the text Are you sure you want to delete this entry? on the top center
[x] Delete request must have a 2 buttons placed horizontally undeneath the text
[x] Delete request left button must have the text Confirm Deletion
[x] Clicking the left button inside Delete request must delete the entry from the database AND navigate the user to the dashboard route / IF however the entry had a value of a folder on it's selected folder property than the user must be navigated to the specific folder route
[x] Delete request right button must have the text Cancel
[x] Clicking the right button inside Delete request must close the Delete request
[x] Clicking outside the Delete request must close the Delete request
Tasks
[x] switch to main branch and perform a git pull in the terminal
[x] create the branch feature/us11/delete-entry-button and navigate into it
[x] update DeleteButton component
[x] update DeleteRequest component
[x] apply to EntryView page the DeleteButton component with the proper props
Value Proposition
As a user I want to click a button to delete an entry so that I can remove entries that I don't need anymore
Description
Acceptance Criteria
Entry view
page must have aDelete
button on the top rightDelete
button must have the text❌ Delete Entry
Delete
button must open up aDelete request
Delete request
must contain the textAre you sure you want to delete this entry?
on the top centerDelete request
must have a 2 buttons placed horizontally undeneath the textDelete request
left button must have the textConfirm Deletion
Delete request
must delete the entry from the database AND navigate the user to the dashboard route/
IF however the entry had a value of a folder on it'sselected folder
property than the user must be navigated to the specific folder routeDelete request
right button must have the textCancel
Delete request
must close theDelete request
Delete request
must close theDelete request
Tasks
main
branch and perform agit pull
in the terminalfeature/us11/delete-entry-button
and navigate into itDeleteButton
componentDeleteRequest
componentEntryView
page theDeleteButton
component with the proper propsPrevious US Next US