Skip to content

Conversation

@bettercallok
Copy link

closes #11461
This PR implements the "Recently Shelved By" patron cards feature for the book page Lists section.

Technical

This implementation adds a new visual component to display the most recent patrons who have added a work to their public reading logs. The feature includes:
Backend (Python):

  • Added method to query the last N distinct patrons who shelved a given work, filtering for users with public reading logs
  • Added method to efficiently batch-fetch cover URLs for multiple works
  • Extended the Lists partial handler to integrate patron data alongside existing custom lists
    Frontend (Templates & CSS):
  • Created new template to render individual patron cards with username, avatar, shelf status, up to 3 book covers, and follow button
  • Created new stylesheet that mirrors the existing list card design for visual consistency
  • Updated the book page styles to import the new component
    Manual Verification:
  1. Navigate to any work page in the development environment
  2. Scroll to the "Lists" section
  3. Verify that patron cards appear if the work has been added to public reading logs by users
  4. Confirm cards display shelf status (Want to Read, Currently Reading, Already Read), book covers with overlap effect, and follow buttons
  5. Verify visual consistency with existing list cards
Screenshot 2025-12-19 at 10 34 45 PM

@jimchamp
Copy link
Collaborator

You should probably avoid working on issues that are assigned to other people. It's highly likely that this PR will be closed.

Please ask to be assigned to issues before submitting pull requests in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expanding Books "List" section to include Reading Log cards

2 participants