feat: add "Find available version" option for unavailable tracks

- Add TrackReplacementModal to search for replacement tracks
- Add onFindReplacement action to TrackMenu context menu
- Show replacement option only for owned playlists with unavailable tracks
- Replacement searches by track title + artist
- Shows quality info (bit depth, sample rate) to help user choose
- Supports preview playback before confirming
- Replace old track with new one in playlist

Also fix tooltip for unavailable tracks to show a complete message
instead of "is no longer available" (now shows "Track no longer
available in Qobuz library")
This commit is contained in:
vicrodh committed 2026-01-31 16:45:23 -06:00
1 parent faefc68381
commit 2ffd9df133
5 files changed
+730 -9

No files matched your search

+11 -2
View File
@@ -194,7 +194,16 @@
"private": "Private",
"import": "Import",
"manage": "Manage playlists",
"allHidden": "All playlists are hidden"
"allHidden": "All playlists are hidden",
"findReplacement": "Find Available Version",
"searchingFor": "Searching for",
"noReplacementsFound": "No available versions found",
"tryDifferentSearch": "Try a different search query",
"searchToFindReplacement": "Search to find a replacement track",
"replaceTrack": "Replace Track",
"lookForAvailableVersion": "Look for available version",
"trackReplaced": "Track replaced successfully",
"trackReplaceFailed": "Failed to replace track"
},
"sort": {
"nameAZ": "Name (A-Z)",
@@ -253,7 +262,7 @@
"lyrics": "Lyrics",
"noLyrics": "No lyrics available",
"fetchingLyrics": "Fetching lyrics...",
"trackUnavailable": "is no longer available",
"trackUnavailable": "Track no longer available in Qobuz library",
"shuffle": "Shuffle",
"repeat": "Repeat",
"repeatAll": "Repeat All",