feat(slint): mixed playlists - sidecar interleave in the Qobuz detail (carrete)

The online Qobuz playlist detail now reads the local/plex sidecar tables
and renders the merged list with Tauri's exact absolute-slot interleave
(sidecar rows claim stored positions, Qobuz fills in server order, gaps
collapse, leftovers append, contiguous display numbers), via a shared
reader extracted from the D11 offline branch - online and offline render
identical row identities. Fix-forward over Tauri: same-slot collisions
emit all claimants local-first instead of silently dropping rows, and the
real plex glyph renders (T4).

Source-aware play/shuffle route mixed lists through the merged snapshot
with a Qobuz-only playback context; the QConnect all-or-nothing admission
path was verified untouched. Sidecar adds now position at the merged end
via MAX(position)+1 across both tables (fixes the live 0-based collision
writes from the picker/drag) with on-load collision healing (stable claim
order, only colliding rows renumber, every move logged; 9 new tests).
Multi-select removal splits by namespace - local and plex rows hit their
sidecar removers, Qobuz rows resolve catalog ids to playlist_track_ids
before the API call (fixing the live bulk-remove bug that shipped track
ids in the ptid parameter). Custom order upgrades to (track_id, is_local)
keying with Tauri's plex-rewrite wart replicated and documented. Rows
gain per-source favorite/download gating with a grid-preserving
placeholder column.

cc
This commit is contained in:
vicrodh committed 2026-06-10 11:53:22 -06:00
1 parent 47c315251c
commit 58b464ea71
7 files changed
+1017 -196

No files matched your search

@@ -33,6 +33,12 @@ export component TrackRow inherits Rectangle {
in property <bool> show-artwork: true;
in property <bool> show-album: false;
in property <bool> show-favorite: false;
// Keep the favorite column's 28px slot when the heart is hidden, so a
// surface mixing heart rows WITH heart-less rows (the playlist detail:
// Qobuz rows have it, local/plex sidecar rows don't) keeps one
// duration/quality grid — Tauri renders a placeholder for the same
// reason (TrackRow.svelte favorite-placeholder).
in property <bool> reserve-favorite: false;
// On by default: every Qobuz track row carries the offline cloud/check
// button. A non-Qobuz surface (future Local Library / Plex rows, which are
// already local) should set this false.
@@ -461,6 +467,11 @@ export component TrackRow inherits Rectangle {
}
}
}
// Heart-slot placeholder (column-grid alignment, see the
// reserve-favorite doc above).
if !root.show-favorite && root.reserve-favorite: Rectangle {
width: 28px;
}
// Offline cache — a stateful affordance reflecting cache-status:
// 0 none cloud-download (click -> cache)
// 1/2 q'd/dl'ing loader (accent) (click -> cache; re-queues)