Yang-Darren/code-journal

User can delete an entry

Closed this issue ยท 0 comments

๐Ÿ’ฐ Motivation

If a user decides that they no longer wish to keep an entry, they should be able to delete it.

๐Ÿ“ Plan

Allow users to delete an entry from its edit screen.

๐Ÿ–ผ๏ธ Wireframes

user can delete an entry mobile
user can delete an entry desktop

โœ… Task List

  • Add a click target for deleting an entry to the entry form that only appears if the user is editing an entry.
  • Show a confirmation modal when the user clicks the Delete Entry click target.
  • Hide the modal if the user clicks Cancel.
  • Remove the entry from the data model and the entry's DOM tree from the page if the user clicks Delete.
  • Show the Entries list if the user clicks Delete.
  • Remove all CSS styling that had no affect or was otherwise unnecessary.
  • Test all functionality again in a private browsing session.
  • Fix all errors.