Skip to content

WPZ-3: Undo add and remove from reading list. #6

@ambrose40

Description

@ambrose40

Estimated time: 2-4 hours

Requirements

As a user, I want to be able to quickly undo my action when clicking the Want to Read button in the book list, or the remove button in the reading list.

  • Starting from the chore/code-review branch from Task 1, create a new branch feat/undo-actions.
  • Update the code such that a snackbar appears whenever the user adds or removes a book. (Hint: this module is already installed and set up)
  • The snackbar must display the event that occurred (i.e. added/removed), and an Undo action.
  • When the user clicks Undo it should set the reading list state back to the previous state.
  • Write a new e2e test in apps/okreads-e2e/src/specs/reading-list.spec.ts to test the new undo feature.
  • Commit your changes on the feature branch.
  • Open a pull-request with chore/code-review as the target.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions