Feature
Open
Show list of users on hover of upvote
Description:
Currently, when a user hovers over the upvote button, there is no visibility into who has already upvoted the item. To improve transparency and user engagement, we should display the list of users who have upvoted when hovering over the upvote icon.
Expected Behavior:
- On hovering over the upvote button, a tooltip or popover should appear.
- The tooltip should display a list of users who have already upvoted the item.
- If the number of users is large, consider showing a limited list (e.g., first 10 users) with an option like “+X more”.
Acceptance Criteria:
- Hovering over the upvote icon triggers a UI element (tooltip/popover).
- The UI displays usernames (and optionally avatars) of users who upvoted.
- The data shown is accurate and updates dynamically.
- Performance is not significantly impacted when fetching/displaying the list.
Notes / Considerations:
- Ensure proper handling when no users have upvoted (e.g., show “No upvotes yet”).
- Consider caching or lazy loading for better performance.
- UI should be responsive and accessible (keyboard hover/focus support).