STEP-Pod-Capstone-Project / Capstone-Project

https://book-book-app.appspot.com
Apache License 2.0
4 stars 0 forks source link

Finish books #114

Closed steven-solar closed 4 years ago

steven-solar commented 4 years ago

This PR allows users to mark books as done, and then unmark them as done. The Book backend object is altered to extend BaseEntity to handle ids and the hasRead field is removed. Book objects will be created when users mark a book as read, and deleted when they unmark as read, so the hasRead field serves no purpose. The BookServlet is altered to use the Utility class.

All pages now use the same booktiles, modeled after the inline book tiles from the ListPage. All these tiles have a Mark as Read button if a Book object exists, and an Unmark as Read if not. When rendering booktiles, the backend is queried to see if there is a Book object with the given gbookID and userID.

Mark as read/unread: Screenshot 2020-07-29 at 10 26 40 PM Screenshot 2020-07-29 at 10 26 10 PM

New search tiles: Screenshot 2020-07-29 at 10 03 28 PM