fix(locallibrary): track-row source indicator (drop fav/offline) + AlbumView favorite item

LocalLibrary track rows (Tracks tab + local album detail) no longer carry the
favorite or offline-cache columns — they don't apply to local content. Instead
they show a subtle per-source indicator (local -> hard-drive tinted; qobuz
offline / plex -> their mark), small + flat rather than the bold album-card
badge (mirrors Tauri's track-row local indicator). TrackItem gains a `source`
field, set by every constructor (Qobuz surfaces -> "qobuz"; map_local_track ->
local/qobuz/plex); TrackRow gains `show-source`.

Also fixes Qobuz AlbumView: the track list had a Favorite column header but the
rows never rendered the heart (show-favorite defaulted false). AlbumPageView
now sets show-favorite + show-download for Qobuz albums (matching the header)
and the source indicator for local albums, with the column header switched to
match each.

cc
This commit is contained in:
vicrodh committed 2026-05-29 08:43:26 -06:00
1 parent 6e1009afd0
commit c36b99b8e8
12 files changed
+60 -6

No files matched your search

+1
View File
@@ -177,6 +177,7 @@ fn to_item(track: &Track) -> TrackItem {
removing: false,
cache_status: if crate::offline_cache::is_cached(&track.id.to_string()) { 3 } else { 0 },
cache_progress: 0.0,
source: "qobuz".into(),
unlocking: false,
}
}