Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

User can delete an entry #4

Open
12 tasks done
vorleakyek opened this issue May 24, 2023 · 0 comments
Open
12 tasks done

User can delete an entry #4

vorleakyek opened this issue May 24, 2023 · 0 comments

Comments

@vorleakyek
Copy link
Owner

vorleakyek commented May 24, 2023

πŸ’° 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 button to the entry form with the text Delete Entry which is only visible when an entry is currently being edited.
  • Show a confirmation modal when the user clicks Delete Entry
  • When the user clicks Cancel, hide the modal.
  • When the user clicks Confirm:
    • remove the corresponding entry object from the data model's entry array.
    • remove the entry's li element from the DOM.
    • conditionally uses the toggleNoEntries function to show the no entries text if needed.
    • hide the modal.
    • swap to the Entries view.
  • Remove all CSS styling that had no affect or was otherwise unnecessary.
  • Test all functionality again in a private browsing session.
  • Fix all errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant