Skip to content

WPZ-4: Ability to mark a book as finished #7

@ambrose40

Description

@ambrose40

Estimated time: 2-4 hours

Requirements

As a user, I want to be able to mark a book as finished in my reading list.

  • Starting from the chore/code-review branch from Task 1, create a new branch feat/mark-as-read.
  • Update the api code to provide a new PUT /api/reading-list/:id/finished endpoint.
  • This endpoint should update the finished flag to true.
  • And set finishedDate as an ISO date string (e.g. 2020-01-01T00:00:00.000Z).
  • Update the UI to allow user to mark a book as finished from the reading list sidenav.
  • Bonus points for a thoughtful UI/UX design for this feature
  • Indicate the book as finished in the sidenav, including the finished date.
  • The user can still remove the book from their reading list.
  • Removing a book will reset the finished status (i.e. if they add the book back it will not be finished).
  • The Want to Read button should change to Finished.
  • Write new unit tests to test new mark as finished feature.
  • Write a new e2e test in apps/okreads-e2e/src/specs/reading-list.spec.ts to test the new mark as finished 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