-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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-reviewbranch from Task 1, create a new branchfeat/mark-as-read. - Update the api code to provide a new
PUT /api/reading-list/:id/finishedendpoint. - This endpoint should update the
finishedflag totrue. - And set
finishedDateas 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 Readbutton should change toFinished. - 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.tsto test the new mark as finished feature. - Commit your changes on the feature branch.
- Open a pull-request with
chore/code-reviewas the target.
Metadata
Metadata
Assignees
Labels
featureNew featureNew feature