so that I can manage my entries and remove any that are no longer needed or were added by mistake.
Description
Acceptance criteria
Each entry in the listed emotion record is accompanied by a "Delete" button.
Clicking the "Delete" button triggers a confirmation dialog.
The dialog serves to prevent accidental deletions by asking the user to confirm their intention.
The dialog includes options for both confirming the deletion and cancelling the action.
The cancellation option allows the user to back out of the deletion process if selected by mistake or changed mind.
Upon confirmation, the entry is permanently removed from the list.
Tasks
[ ] Create and switch to the feature branch feature/delete-emotion-entry
[ ] Add logic to delete entry from EmotionRecordsList and show updated EmotionRecordsList
[ ] Add delete button to each li item of EmotionRecordsList
[ ] Implement confirm message including two buttons, clicking the "yes" button calls the delete function,
clicking "no" closes the confirmation message
[ ] Add logic which renders confirmation message on clicking the delete button
Delete emotion entry
Value Proposition
As a user
I want to delete a recorded entry of my emotions,
so that I can manage my entries and remove any that are no longer needed or were added by mistake.
Description
Acceptance criteria
Tasks
feature/delete-emotion-entry
EmotionRecordsList
and show updatedEmotionRecordsList
delete button
to eachli item
ofEmotionRecordsList
confirm
message including two buttons, clicking the "yes" button calls the delete function, clicking "no" closes the confirmation messagedelete button