Problem
When a book is added to a list from a book/edition page, the newly added list entry initially displays the generic book placeholder icon instead of the book's cover.
Refreshing the page causes the actual book cover to appear.
When you refresh it actually shows the book icon
Reproducing the bug
- Steps to reproduce
- Open a book that has a cover.
- Click Want to Read drop down and in
My Reading Lists: Add the book to any existing list.
- Observe the list entry shown immediately after adding the book.
- Refresh the page.
- Compare the list entry before and after the refresh.
Expected behavior
- The book cover should be displayed immediately after adding the book to a list, without requiring a page refresh.
Actual behavior
Immediately after adding the book:
- A generic book icon is shown.
After refreshing the page:
- The actual book cover appears.
Proposed improvements
- Render/use the book's cover when the list entry is inserted, instead of initially using the generic placeholder.
- Preserve the existing placeholder behavior when a book genuinely has no cover.
Acceptance criteria
Context
- Browser (Chrome, Safari, Firefox, etc): Brave
- OS (Windows, Mac, etc): Fedora
- Logged in (Y/N): Y
- Environment (prod, dev, local): prod
Breakdown
Implementation Details (for maintainers)
Requirements Checklist
Related files
Stakeholders
Instructions for Contributors
- Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.
Problem
When a book is added to a list from a book/edition page, the newly added list entry initially displays the generic book placeholder icon instead of the book's cover.
Refreshing the page causes the actual book cover to appear.
When you refresh it actually shows the book icon
Reproducing the bug
My Reading Lists:Add the book to any existing list.Expected behavior
Actual behavior
Immediately after adding the book:
After refreshing the page:
Proposed improvements
Acceptance criteria
Context
Breakdown
Implementation Details (for maintainers)
Requirements Checklist
Related files
Stakeholders
Instructions for Contributors