Commit Graph

2 Commits

Author SHA1 Message Date
Brian Fertig fa98236d52 feat: add hover tooltips for likers/favoriters on social buttons
- Add CSS for social tooltip styling and positioning
- Implement JavaScript to fetch and display likers/favoriters on hover
- Add caching mechanism to reduce API calls
- Create new API endpoint `/api/likers/:type/:id` to fetch user display names
- Add database queries to retrieve likers and favoriters for songs and playlists
- Invalidate cache when social actions are performed
2026-04-18 18:40:17 -06:00
Brian Fertig f044d98afc feat: implement social actions (like/favorite) for songs and playlists
- Add database tables for song/playlist likes and favorites
- Create `social` service with toggle functions and enrichment helpers
- Implement `/api/:type/:id/(like|favorite)` routes with CSRF protection
- Add like/favorite buttons to player, song lists, playlists, and cards
- Support guest → login redirect via `data-require-login`
- Inject CSRF token into layout for JS API requests
2026-04-11 09:12:21 -06:00