Skip to content

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

Open
@vivitt

Description

@vivitt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions