mirror of
https://github.com/wahyd4/you-music.git
synced 2026-08-08 20:59:47 +10:00
Backend changes: - Add POST /artists/refresh endpoint to force fetch from remote APIs - Bypasses cache and fetches fresh artist photo from Deezer/MusicBrainz - Automatically downloads and caches the image locally - Returns updated artist info immediately Frontend changes: - Add refresh button (RefreshCw icon) next to Back button - Shows spinning animation while refreshing - Uses mutation with optimistic update to query cache - Toast notification on success/failure - Button disabled during refresh User flow: 1. Click refresh button on artist detail page 2. Backend fetches fresh data from remote APIs 3. Image is downloaded and cached 4. Artist info updates automatically on page 5. Success toast shown