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

20. As a user, I want to be able to undo marking an item as purchased #41

Open
4 tasks
vivitt opened this issue Mar 22, 2024 · 0 comments
Open
4 tasks

Comments

@vivitt
Copy link
Collaborator

vivitt commented Mar 22, 2024

Summary

Currently, when a user checks the “Mark item as purchased” input next to an item name, the current date is stored as the dateLastPurchased in the database, and the input remains checked for 24 hours.

If users mark an item as purchased by mistake, they are unable to undo this action.

To address this, users should be able to uncheck the "Mark item as purchased" input to revert the item's purchased status and keep the previous dateLastPurchased in the database.

Acceptance criteria

  • Users can check and uncheck the "Mark item as purchased" input next to an item.
  • Checking the input store the current date as dateLastPurchased in the database.
  • Unchecking the input changes the item's status to not purchased and keep the previous dateLastPurchased stored in the database.
  • Users are provided with clear information about the effect of checking and unchecking the input.

Notes

Feedback related to the checkbox status can be provided to users in different ways. One possibility is to display the lastPurchaseDate of an item next to its name inside the “List” view and update it based on the input.
Another option could be to create a new “Item” view, where users could navigate by clicking on the item's name. In this view, users could find more detailed information about the item, such as total purchases, last purchased date, etc. and find the changes when checking or unchecking the input.

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