[Story] Create Book Component #5
Labels
backend
For issues/tasks related to the backend
css
For issues/tasks that require CSS
db
For issues/tasks related to the database
enhancement
New feature or request
frontend
For issues/tasks related to the frontend
priority-high
rs
For issues/tasks that require Rust
story
ts
For issues/tasks that require TypeScript
ui
For issues/tasks related to the user interface
ux
For issues/tasks related to the user experience
Milestone
As a User, I need to have a visual representation of my novels so that I have a more enjoyable user experience.
Requires Tasks #2 and #4 to be completed.
Each book will be shown visually in a card format. Similar to this image. The card itself will be the image supplied by the user or some default image, the title of the book displayed either below the card or on the bottom of the card, and a progress bar below the card.
The progress bar should be from this package and should be green if the book is in progress, red if the book is dropped, or orange if the book is aside. The progress itself should be the percentage followed by the number of pages read, for example if a user was halfway through a 100 page book, the progress bar would look like
50% (50)
. If the book is completed, there should be a green check mark displayed in place of the progress bar. If the book is in the plan to read list, there should be nothing displayed where the progress bar or check mark would be.When clicked, each card should open the edit book route (which should be a clone of the new book route), with the fields auto-filled with the clicked book's details. From there, any changes that are made should be saved, database and state should be updated, and the corresponding book in the Library route should reflect the changes.
Acceptance Criteria:
/library
route./library
route, when looked at, the viewer should see an image, the title, and the appropriate progress bar/icon/nothing shown as well./edit-book
/edit-book
route, then the fields are filled with the clicked Book's information/edit-book
route, changes have been made, and the submit button has been clicked, then the original Book component gets updated and the entry in the database also gets modified.The text was updated successfully, but these errors were encountered: