feat(slint): playlist snapshot (names+membership) and offline favorites rail
Qobuz playlist snapshot, captured opportunistically with zero new API traffic: every online sidebar/manager list load upserts id+name+owner+ track_count for the user's playlists; opening a playlist detail online full-replaces its membership track ids (refusing playlists never listed, so viewed public playlists don't land). Offline consumers: synthesized sidebar/manager entries resolve the persisted name (killing the cold-start 'Playlist (N local)' fallback when a snapshot exists), and the mixed- playlist offline detail now renders the snapshot tracks that are playable (snapshot intersect cached intersect grace) from the offline-cache index - snapshot block first in snapshot order, sidecar local/plex block after. D11 availability widens: a playlist with zero sidecar rows but cached snapshot tracks now shows offline. 4 repo tests. Offline favorites rail: the Favorites placeholder gains an 'Available offline (N)' block - disk-cached favorite ids intersected with the offline-cache READY index and LocalLibrary qobuz_download copies, compact rows with the offline cover chain, click plays the rail as a queue through the cache tier. Shared OfflinePlaceholder gains an @children slot; only the Favorites mount injects the rail. Single commit: the two features interleave in main.rs/state wiring and ship together to keep every commit compiling. cc
This commit is contained in:
17 files changed
+1154
-95
No files matched your search
@@ -62,5 +62,10 @@ export component OfflinePlaceholder inherits Rectangle {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Optional extra content under the placeholder copy. Empty on the
|
||||
// generic mounts; the Favorites mount injects the B9 "playable
|
||||
// favorites" rail here (see AppShell + FavoritesOfflineRail).
|
||||
@children
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user