Update "Trending Now" cards to display patron Follow Card (if reading log public)
#10,241 opened on 2024年12月31日
説明
Overview
We'd like to update the Now view, i.e. https://openlibrary.org/trending/now should be updated so instead of saying "someone" marked book as [state] it instead shows their avatar and username as a link, perhaps with a button next to it to follow them, similar to #9415.
Context
- This builds off #6014 (see what files are involved), where we implemented a Trending page to show what books are being logged Now, this Month, etc.
Designs
Before:
After? perhaps something closer to:
Instructions
Before asking to be assigned, you can help by proposing a 🎨 design for this feature or asking any clarifying questions you may have. Thank you! ❤️
Also, if you're a new contributor, 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.
Justification
The trending page is interesting but misses an opportunity enable patrons to discover deeper insights by exploring other books the patron may recommend, or by allowing them to be followed.
This may be a good first step in making our Follow feature useful.
Research
Are there any precedents or findings from other projects or studies that support this feature? (link or screenshot if possible)
Goodreads does something similar
Breakdown
Requirements Checklist
- Designs should be consistent with how patron avatars appear elsewhere on the site, use existing css where possible (e.g. the My Books feed page!) see #8607 + #9415
- Designs should contain avatar, username (as link) and a small blue button to "Follow" the patron -- you might take inspiration from https://openlibrary.org/people/mekBot/books/feed
- Patron privacy must be respected -- only show patron if their reading log setting is public.
Related files
-
See My Books Feed designs (e.g. https://openlibrary.org/people/mekBot/books/feed) Implemented by #8607 in https://github.com/internetarchive/openlibrary/pull/8607/files#diff-1c0a702d7b1bad810adce7c001416b5996968d117077f629ff52ddff4668f56fR45-R51