Minimal distros (the reporter's Raspberry Pi OS case in issue #331) ship
a trimmed /etc/asound.conf that defines only `!default` and doesn't pull
in the broader alias set most desktop distros provide. A card like the
HifiBerry Digi2 Pro — S/PDIF-only, so its selectable PCM is
`iec958:CARD=sndrpihifiberry,DEV=0` — then fails to open even though
the card is present and usable via the raw `hw:` device.
When CPAL's primary lookup by id returns None AND /proc/asound confirms
the card exists, rebuild the id as `hw:CARD=<name>,DEV=<n>` and retry
the lookup. The raw `hw:` PCM is exposed by the kernel driver for every
registered card, so it's a safe last resort — same card, same channel
routing, just skipping whichever userspace alias layer was missing.
Log both the alias failure and the fallback at warn/info so users can
see what happened without needing to diagnose ALSA config by hand.
Original error path is preserved when no fallback is possible (unknown
id shape, card not in /proc/asound, or hw: equally unavailable).
cc
Device enumeration produces four "CARD=" alias shapes (front:, sysdefault:,
iec958:, hdmi:) but the extractor only handled the first two. When a user
selected an S/PDIF or HDMI device id, the downstream proc_found check
always returned false, so the device-not-found error message dropped to
the generic "disconnected, renamed, or handled by another app" wording
even when /proc/asound showed the card present.
Part of issue #331 — reporter's HifiBerry Digi2 Pro is S/PDIF-only, so
its id is iec958:CARD=sndrpihifiberry,DEV=0, and the missing prefix match
obscured the real cause of the open failure.
This commit is a pure parsing extension; behavior changes only in the
error message accuracy. The hw:/plughw: fallback attempt lands in the
next commit.
cc
Issue #333. handleShuffle was calling handlePlayAll() which hardcoded
playableTracks[0] as the track to start playing. After v2_set_shuffle(true)
the queue was correctly shuffled, but the UI always landed on track 0 —
defeating the point of playlist-level shuffle.
Match the pattern ArtistDetailView / LabelView / LocalLibraryView and
+page.svelte::handleShuffleAlbum already use: pick a random index from
the blacklist-filtered playable set, pass it to handlePlayAll, and let the
existing qbz-player/queue.rs `set_queue` semantics move that index to
shuffle_order[0] so the remaining tracks still cover the full playlist
in random order.
Not touching the Rust-side "CRITICAL FIX" block in queue.set_queue even
though the user suggested removing it — that block is load-bearing for
the other callers that already pass a random index and expect it to
become the shuffle head. Removing it would regress those views.
handlePlayAll now takes an optional `startIndex = 0` so the Play-All
button (unchanged behavior — plays from start) and the Shuffle button
(random start) share the same implementation. Context position is
clamped against the Qobuz-only subset so a random pick landing on a
local track doesn't point past its end.
cc
Drop the `!isLocal` gate on the cast branch so castTrack is invoked for
every source when a cast device is connected. castTrack now knows how to
dispatch to the three source-specific backend commands; the guard was
the only thing keeping non-Qobuz tracks from ever reaching the cast pipeline.
Fixes issue #332: user connects to a DLNA renderer, plays a local file,
expects audio on the renderer, gets silence (audio routes to app's local
ALSA output instead). Same shape as Foobar2000's local-over-DLNA workflow
the reporter compared against.
cc
Previously castTrack hardcoded two calls (v2_cast_play_track for
Chromecast, v2_dlna_play_track for DLNA) which both assume a Qobuz track
id. Extend the signature with an optional source parameter (default
'qobuz' so existing callers keep working) and route to the matching
backend command per protocol × source.
Plex branch pulls baseUrl + token from userStorage the same way
playbackService does for local Plex playback and passes ratingKey as a
string to the backend. Local branch uses trackId as-is (library row id).
Follow-up commit removes the `!isLocal` guard in playbackService so
non-Qobuz tracks actually take this branch.
cc
Plex has the same cast routing problem as local library: the Qobuz-only
play_track commands can't resolve Plex ratingKeys. Add dedicated commands
that fetch bytes through plex_resolve_track_media (existing), proxy them
through the cast media server, and load the URL on the renderer.
Proxying through the media server (rather than giving the renderer a
direct Plex URL) keeps the user's Plex token in-process. Renderers would
need the token to fetch from Plex directly and that's not a surface we
want to expose.
Content-type fallback to audio/mpeg when Plex omits it (transcode path),
with a plex_key_to_u64 namespaced hash (high bit set) so Plex ratingKeys
can't collide with Qobuz/library ids in the MediaServer keyspace.
cc
Companion to v2_dlna_play_local_track. Same bug, same fix applied to the
Chromecast protocol branch: reads library row + file, infers content_type,
registers bytes with the shared media server, loads the URL on the
Chromecast receiver. Reuses the local_track_content_type helper.
User flagged this on the #332 thread — same Qobuz-only assumption in the
Chromecast play command as in the DLNA one.
cc
Mirrors v2_dlna_play_track but for library row ids. Reads the file from
disk, infers content_type from AudioFormat (with extension fallback for
Unknown), registers bytes with the DLNA media server, sends AVTransport
URI + Play to the renderer.
Without this command the cast path had no way to send local audio to a
DLNA device — v2_dlna_play_track resolves the id as a Qobuz track and
fails (404 in offline sessions, wrong-song match in online sessions where
the library row id happens to collide with a real Qobuz track id). Issue
#332 reported the symptom as "DLNA not operational"; logs showed the
renderer connected successfully but never received a SOAP SetAVTransportURI.
Frontend wiring in the cast dispatch + playbackService guard removal lands
in follow-up commits.
cc
Mixtapes & Collections — a second container family alongside Qobuz
playlists. Private to the install, cross-source (Qobuz + LocalLibrary +
Plex), with its own detail view, Add-to picker, bulk ops, per-collection
view prefs, and a Discography Builder for one-click Artist Collections.
Backend:
- New tables mixtape_collections + mixtape_collection_items with
CASCADE + additive migrations.
- New v2_* command surface: CRUD, enqueue_collection,
enqueue_collection_item, skip_to_next_item / previous_item for
album-boundary navigation, mixtape_item_exists for duplicate checks,
custom cover upload / remove.
- Plex branch in resolve_local_album so plex: album keys route to the
plex cache instead of local_tracks.
Frontend:
- Sidebar My QBZ collapsible nav, title bar entry, index + detail views
with virtualization / sticky unified toolbars / size-aware Qobuz
artwork / image cache. Per-collection view prefs (viewMode / sort /
filter) persisted in per-user localStorage.
- Index views get search + sort + kind filter + list-or-grid toggle.
- Add-to-Mixtape wired across ArtistDetail / Search / Label /
PlaylistDetail / LocalLibrary; multi-select + bulk ops for albums.
- Queue / playback fixes bundled: per-album Play for all three sources,
session source round-trip for local/Plex auto-advance, NowPlayingBar
artwork resolver for Plex / local paths, clear-queue includeCurrent
flag, natural-end queue cleanup.
Release notes in docs/release-1.2.8/TAG_DETAILS.md.
cc
Release notes for 1.2.8 explaining Mixtape vs Collection vs Playlist in
user-facing terms: playlists are Qobuz-hosted track lists, Mixtapes are
private ordered cross-source listening sessions, Collections are
private themed album shelves. Covers the Discography Builder, the
Add to Mixtape picker kind rules, custom covers, duplicate-handling
dialog, and the under-the-hood notes for upgraders (new tables, new
v2_* command surface, Plex queue resolver branch).
cc
Consolidates the +page.svelte side of several independent fixes/features
whose non-+page pieces landed in the preceding commits.
- handleMixtapeItemAction: was calling v2_set_queue with { trackIds }
but the command expects { tracks, startIndex } — Tauri rejected the
call so per-album Play from a Collection did nothing. Now routes
Qobuz items through the existing fast path (with blacklist filter +
artwork fallbacks) and local/Plex items through the new
v2_enqueue_collection_item backend command, then resolves the queue
via playQueueIndex(0) + playQueueTrack(trk) so audio actually starts
(v2_play_queue_index only moves the cursor; it doesn't tell the
player to load bytes).
- Session save (saveSessionBeforeClose): includes source on each
PersistedQueueTrack. Without it, a LocalLibrary queue came back as
is_local=true / source=undefined and the auto-advance path routed
local row-ids to v2_play_track (Qobuz).
- Session restore: map session.queue_tracks with a source fallback
(trk.source ?? (trk.is_local ? 'local' : undefined)) so older saved
sessions (pre-source-field) still route correctly. setCurrentTrack
default for source is now 'local' when is_local is true, not
hardcoded 'qobuz'.
- playQueueTrack: artwork goes through resolveQueueTrackArtwork so a
raw Plex /library/... thumb path or a bare local filesystem path
becomes a valid src for NowPlayingBar instead of a 404.
- Title bar: isMyQbzInTitlebar state + showMyQbz prop passed to
TitleBarNav so the new My QBZ entry can be toggled from Settings.
cc
Mirrors the Discover / Library / Local Library / Purchases title-bar
entries. Button opens a hover dropdown with Mixtapes and Collections;
label comes from myQbzNavStore so a sidebar rename propagates.
- titlebarNavStore: new myQbz flag with getter/setter/migration.
isTitlebarNavEnabled() includes it in the enabled-any check.
- TitleBarNav: new showMyQbz prop + CassetteTape button with a
dropdown menu (Mixtapes / Collections); shared open/close mechanics
with the other nav dropdowns so only one is open at a time.
- SettingsView: new Toggle between Library and Purchases, disabled
when the title bar is hidden or the system title bar is active
(matches the other toggles in the section).
Wiring in +page.svelte ships with the next commit.
cc
Root Collections and Mixtapes pages had only a title + New button + a
grid of cards. Added the same .list-controls vocabulary the detail view
uses so users see a consistent control surface across the feature.
- Search: matches name + description.
- Sort dropdown with asc/desc toggle on re-click: Position (manual),
Name, Items, Recently updated.
- Kind filter on CollectionsView only (All / Collections / Artist
Collections). MixtapesView omits it — one kind means the dropdown
would be noise.
- View-mode segmented toggle (list / grid). Grid keeps the existing
208px cards; list is a dense row with 48px mosaic cover + name +
kind label + count.
- Empty-results state when search/filter returns zero.
- Preferences persisted globally (per user) under
collections-index-prefs / mixtapes-index-prefs — viewMode, sortBy,
sortDir, kindFilter round-trip across sessions. searchQuery stays
transient per-session.
i18n (en / es-MX / de / fr / pt):
- collections.searchPlaceholder / sortByItems / sortByUpdated /
kindFilterAll / kindFilterCollection / kindFilterArtistCollection
- mixtapes.searchPlaceholder
- nav.myQbz (used by the upcoming title bar entry)
cc
Collection / Mixtape detail, Playlist detail, and Playlist manager all
got sluggish with 50+ items — too many <img> tags, full 600px Qobuz
covers decoded for tiny tiles, and two-tier sticky headers with visible
gaps between them. Straightened all of it with patterns we already had
in the codebase; no new deps.
MixtapeCollectionDetailView:
- Fixed-height windowed virtualization for list/grid modes (LIST_ROW_HEIGHT 56,
GRID_ROW_HEIGHT 240). Top/bottom spacer divs reserve scroll height.
- Row height forced to 56px (was variable 52-60), so the scrollbar's
scrollHeight matches the actual end of the content and the user can
reach the last row without stutter.
- The scroll-reset effect now reads listAnchorOffsetTop via untrack so
mid-scroll ResizeObserver ticks don't re-fire the reset and snap
scroll back; RO no longer observes the list anchor itself (its size
changes every scroll tick and is irrelevant to its offsetTop).
- Expanded-mode auto-fetch is gated to visible items — no more 60
concurrent backend calls on mode switch.
- Sticky toolbar wraps search + sort + filter + select + view-mode as
ONE block; box-shadow -8px/+8px extends the opaque background over
the scroller's 8px padding-top gap and any next-element margin seam.
- Qobuz artwork URLs downsized (_50 / _150) for list/grid thumbnails
instead of the stored _600.
PlaylistDetailView:
- Track controls + batch-controls + column header wrapped in one
.tracks-sticky-header inside .track-list. Single sticky instead of
two at top:0 and top:56 with a visible row peeking through the gap;
containing block is .track-list (tall as virtual content) so the
toolbar no longer disappears when scrolled past the .view-transition
wrapper's height: 100%.
- Cover <img> routed through use:cachedSrc + loading=lazy / decoding=async.
PlaylistManagerView:
- .controls sticky with box-shadow -8px/+12px to cover the padding-top
gap and bottom margin; folder-icon <img> tags (grid / list / tree)
now use:cachedSrc with convertFileSrc + lazy/async.
Shared components:
- QualityBadgeStatic: new component, visually 1:1 with QualityBadge's
full mode but no hardware-status polling, no downgrade arrow, no
plughw tooltip — used in list rows where every item advertises its
own stored quality and shouldn't react to now-playing state.
- CollectionMosaic + PlaylistCollage: size-aware Qobuz URL picker
(50/150/300/600 based on rendered tile size) and use:cachedSrc +
lazy/async on every cell. 20 mosaics × 4 cells at 140px used to
pull 80 × 600px JPEGs; now they pull 80 × 150px JPEGs through the
shared image cache.
cc
- AddToMixtapeModal: accepts an array of items (was single), gains a
duplicate pre-check panel with Add anyway / Skip duplicates / Cancel,
hides the + Collection button for non-album items (Collection shelves
can't hold a bare track or nested playlist).
- AlbumCard: selectable / selected / onToggleSelect props — corner
checkbox overlay that replaces the click-to-open behavior when
selection mode is on. Same pattern ArtistDetailView already used for
popular tracks.
- VirtualizedAlbumList: pass-through for the select-mode props +
forwards albumId / year / trackCount so cards render consistently in
the grid.
- LocalLibraryView: new SquareCheckBig toggle in the Albums tab; bulk
handlers (PlayNext / PlayLater / AddToMixtape / AddToPlaylist) route
each selected album through fetchAlbumTracks so local + Plex items
resolve correctly. BulkActionBar mounted at the bottom of the albums
grid.
- ArtistDetailView + LocalLibraryView: root-view padding now
'padding: 8px 8px 100px 18px' and .back-btn margin-top 8px to match
the AlbumDetailView / FavoritesView standard.
cc
Two fixes that together clear the LocalLibrary auto-advance desync:
audio played a different track than the NowPlayingBar showed, and the
cover showed a '?' placeholder for local/Plex tracks.
- sessionService.ts: PersistedQueueTrack gains an optional source
field so qobuz | local | plex round-trips through session_store.
Without this, the restore path rebuilt the queue with is_local=true
but source=undefined, and downstream callers that defaulted
undefined-source to 'qobuz' routed v2_next_track results to
v2_play_track — Qobuz then resolved library row ids to whatever
random track shared the id.
- queueArtwork.ts: new resolveQueueTrackArtwork() turns a CoreQueueTrack
artwork_url (http, file://, bare Plex /library/... path, or bare
filesystem path) into something the WebView can actually fetch.
Previously a raw Plex thumb path hit localhost:1420 and 404'd;
local paths tried to load as if relative URLs.
- playbackService.ts: both auto-skip fallback paths now resolve next
track artwork through the helper before handing off to playTrack.
cc
Backend:
- New v2_enqueue_collection_item(collectionId, position, mode) routes a
single collection item through the existing ProdItemResolver — same
path v2_enqueue_collection uses, scoped to one position. Supports
replace / play_next / append modes. Unlocks per-album Play for local
and Plex items from the Collection detail view (previously only Qobuz
had a working fast-path there).
- enqueue.rs: resolve_local_album now detects plex: prefixes and routes
to plex_cache_get_album_tracks instead of querying local_tracks, so
Collections with Plex albums actually enqueue end-to-end.
- repo.rs: list_collections now hydrates items for every collection so
the item count in CollectionsView / MixtapesView is real, not 0.
- mixtapeCollectionsStore.ts: bindings updated for new + changed
commands (add_item with allow_duplicate, item_exists, custom cover
upload/remove).
cc
Full rework of MixtapeCollectionDetailView. Groups of changes:
Play + UX correctness
- Play / Shuffle actually start audio: after enqueueCollection fires,
fetch the first queue track via playQueueIndex(0) and hand off to
playTrack() so the audio pipeline kicks in (bridge.play_index alone
only updates queue state, never triggers playback).
- Loading spinner swaps Play / Shuffle icons for LoaderCircle while
the enqueue + track load is in flight — covers the noticeable
delay on large collections.
- Canonical scroll pattern (width/height/overflow-y auto).
- Detail-view header Play / Shuffle / More buttons now use the
global .action-btn-circle family instead of bespoke pill styles.
Item row chrome
- Source indicators: canonical monochrome mask pattern
(plex-mono.svg / hdd.svg / qobuz-logo.svg) tinted --accent-primary.
- Quality column uses the full QualityBadge component.
- Live-resolve per item: fetch v2_library_get_albums +
v2_plex_cache_get_albums once on load so each row knows its true
kind (plex vs qobuz_download vs qobuz_purchase vs user) and can
show Plex album art via buildPlexArtworkUrl.
- Qobuz items fetch v2_get_album in parallel to populate quality
data (Qobuz-streaming items don't persist bit-depth / sample-rate
at add-time).
- Clickable title → onOpenItem; clickable artist subtitle (Qobuz
only) → onOpenArtist runtime-resolves via search.
- Row hover reveals a play overlay on the artwork.
Row context menu (⋯)
- Play / Play Next / Add to queue entries.
- Change release type → nested submenu with Album / EP / Single /
Live / Compilation and "Use auto-detected" reset. Uses the
shared releaseTypeOverridesStore so the override also shows in
DiscographyBuilder and vice-versa.
- Type column shows the effective release type for album items.
Controls row
- Search (album title / subtitle + track titles when expanded).
- Sort (Position / Name / Year / Tracks, asc/desc toggle).
- Filter with Type + Source sections (multi-select Source).
- Reset clears every filter + sort.
- Select mode toggle (SquareCheckBig).
- View-mode segmented group (List / Grid / Expanded).
View modes
- List: canonical row listing (no chevron, no inline tracks).
- Grid: AlbumCard-like tiles with corner-checkbox selection.
- Expanded: auto-loads every album's tracks via v2_get_album
(Qobuz), v2_library_get_album_tracks (local — with title+artist
re-resolve fallback for re-indexed libraries) or
v2_plex_cache_get_album_tracks (Plex album_key prefix). Tracks
render as real TrackRow instances.
Selection + BulkActionBar
- Selected positions tracked separately from view-mode.
- BulkActionBar below the list with Play Next, Add to Queue, Add
to Playlist, Add to Mixtape/Collection, Remove from Collection.
Custom cover + header actions
- Hero mosaic + grid tiles honor the user-uploaded cover.
- Header ⋯ menu: Upload cover / Clear custom cover.
i18n
- collectionDetail.* keys across all 5 locales: itemActions,
changeReleaseType, removeItem, cover{Uploaded,UploadFailed,
Removed,RemoveFailed}, selectItem, sort, filter, sortBy*,
filterAll, viewMode, view{List,Grid,Expanded}, searchPlaceholder.
cc
Handlers + callback wiring in the root view layer:
DiscographyBuilder
- onOpenAlbum → handleAlbumClick (Qobuz) or selectLocalAlbum (local)
so clicking a candidate album navigates to its detail.
Mixtape / Collection detail
- onOpenItem for album / track / playlist rows.
- onOpenArtist runs handleOpenArtistByName: v2_search_artists(name)
and navigates to the top match — collection items only store an
artist name, not an id.
- onPlayItem / onPlayItemNext / onAddItemToQueueLater wired to a
new handleMixtapeItemAction that fetches the item's tracks
(Qobuz album path) and sets / appends the queue. Non-Qobuz
item types toast a "not available yet" message.
- Bulk variants (onBulkPlayNext / onBulkPlayLater /
onBulkAddToPlaylist) iterate through selected items.
- onPlayTrackFromItem (expanded-view TrackRow Play): fetches the
parent album and jumps to the picked track's index.
- onPlayTrackNext / onPlayTrackLater: fetch via v2_get_track and
call v2_add_tracks_to_queue_next / v2_add_tracks_to_queue for a
single Qobuz track.
Adds selectLocalAlbum + MixtapeCollectionItem to the existing
imports.
cc
- back-to-top-global button z-index 50 → 200 so no view's sticky
footer (Collection detail BulkActionBar, DiscographyBuilder footer,
etc.) can park on top of it.
- AddToMixtapeModal now receives items={} (array) instead of
item={} (single) after the store + modal signature moved to the
bulk-capable shape.
cc
Two related UX fixes in handleClearQueue + the setOnTrackEnded branch:
- handleClearQueue now passes includeCurrent=!isPlaying. When the
user hits Clear while nothing is actively playing, the call flows
down to v2_clear_queue, which stops + wipes the current slot too —
no more stale track lingering in NOW PLAYING across restarts.
- setOnTrackEnded's "queue ran out + no repeat" branch now also
calls clearQueue({includeCurrent: true}) after stopPlayback(). The
track that just finished is already off; wiping the current index
stops it from being re-parked by any subsequent queue snapshot.
cc
Both AlbumCard call sites (artist-albums column + VirtualizedAlbumList)
were rendering AlbumCard without albumId, so its built-in
handleAddToMixtape never fired and AlbumMenu never rendered the entry.
Pass albumId (+ year + trackCount for modal metadata).
Album detail hero gains an Add to Mixtape/Collection action-btn-circle
(CassetteTape icon) next to Play / Shuffle / Select, firing
openAddToMixtape for the selected album.
cc
BulkActionBar gains onAddToMixtape + onRemoveFromCollection props
(CassetteTape + Trash2 icons, reusing existing common.* i18n keys).
AddToMixtapeModal now takes items: AddToMixtapeItem[] instead of a
single item. Single-item callers pass a 1-element array; bulk callers
(BulkActionBar in the Collection detail) pass many. Modal loops
over all items on pick and shows a bulk-count toast when more than
one was added.
Track / playlist items can only be added to Mixtapes, not Collections
(Collections hold whole albums by design). When any incoming item is
a track or playlist, the picker filters the visible target list to
mixtapes only AND hides the + Collection footer button so the user
can't land in an invalid destination.
cc
New customCoverUrl prop — when set, renders a single full-size image
instead of the 2x2/3x3 collage. CollectionsView + MixtapesView
compute it via convertFileSrc(col.custom_artwork_path) so the grid
tiles show the user's uploaded cover in the list as well as in the
detail view.
cc
Lets users pick any image (png/jpg/jpeg/webp) as a Mixtape's or
Collection's cover. Mirrors v2_library_set_custom_album_cover:
source → artwork cache dir → resize to 1000x1000 via image crate →
store path in mixtape_collections.custom_artwork_path.
- v2_mixtape_upload_custom_cover(id, source_path): validates extension,
copies + resizes, stamps the resulting path, deletes the previous
cover file after the DB write succeeds.
- v2_mixtape_remove_custom_cover(id): nulls the column + deletes the
on-disk file.
- Both registered in lib.rs.
- Frontend store: uploadCustomCover / removeCustomCover wrappers that
also patch collectionsStore optimistically so UIs update without a
full reload.
Uses mixtape::repo::get_custom_artwork (added in the previous commit)
to find the previous path before overwriting.
cc
Major rework of the Discography Builder:
- Local library tracks finally show up: fix camelCase args for
v2_library_get_albums (includeHidden / excludeNetworkFolders) and
serialize the Qobuz fetch before the local one so artistName is
populated before filtering.
- Include Plex-cache albums too (v2_plex_cache_get_albums with a
2-second retry after cold-cache) so Plex collections show in the
candidate list.
- Album titles + artist subtitles are now clickable (onOpenAlbum
callback routes Qobuz→handleAlbumClick, local→selectLocalAlbum).
- New Tracks + Type columns; Type shows Album / EP / Single / Live /
Compilation (color-tinted). Classifier uses Qobuz release_type +
group_type when present, falls back to track-count heuristic.
- User can override the release type per row via a popover on the
Type cell; overrides persist in per-user localStorage via the new
releaseTypeOverridesStore (sidecar — never written to Qobuz or
the library DB).
- Canonical source indicators (plex-mono.svg / hdd.svg / qobuz-logo.svg
as CSS masks tinted with --accent-primary).
- Full QualityBadge component (bit-depth + sample-rate + format),
dropping the compact + overrides experiment.
- Header check/uncheck-all with indeterminate state.
- Footer clears the back-to-top gap; scroll via the canonical
width/height/overflow-y pattern from ArtistDetailView.
- Alternate rows keep the sub-item connector next to the checkbox
(no indent), matching the visual signal without shifting columns.
cc
TrackMenu / AlbumMenu already expose onAddToMixtape; the following
sites just never passed it through:
- ArtistDetailView popular-tracks TrackMenu
- SearchView track results TrackMenu
- LabelView track-list TrackMenu
- PlaylistDetailView hero AlbumMenu (add the whole playlist)
Also refactors ArtistDetailView's follow button icon to use a CSS
mask (background-color: currentColor) instead of a hardcoded invert +
hue-rotate filter chain that only produced purple — so it adapts to
whatever accent color the current theme sets.
cc
Frontend plumbing that lets callers pass {includeCurrent: true} all
the way down to v2_clear_queue so the backend can wipe the now-playing
slot + stop playback when appropriate.
cc
QueueManager::clear previously always preserved the current track;
plus bridge.play_index only mutates queue state, never triggers
audio. Result: when the user hit Clear Queue with nothing playing,
a stale track stayed in NOW PLAYING across app restarts.
- QueueManager::clear(keep_current: bool) — existing callers pin to
true (legacy behavior). New test covers the false path.
- QbzCore::clear_queue / CoreBridge::clear_queue take the flag through.
- v2_clear_queue accepts an optional includeCurrent flag from the
frontend; when true, calls bridge.stop() first so the audio pipeline
actually stops, then wipes the current slot too.
- qconnect sync path + qbzd daemon pin keep_current=true (no behavior
change).
cc
Plex exposes album release year (parentYear / parentOriginallyAvailableAt)
and genre (inline attr or nested <Genre tag>). The parser dropped both;
LocalLibrary and DiscographyBuilder could never show a Plex album's year
even though the metadata was available upstream.
- Extend PlexTrack + PlexCachedAlbum structs with year/genre.
- Parse both in parse_track_block, including the ISO-date fallback.
- ALTER TABLE plex_cache_tracks ADD COLUMN year INTEGER / genre TEXT
(idempotent).
- INSERT + SELECT paths + the album aggregation carry the new columns.
cc
list_collections only read the mixtape_collections row and left
items=[], so every consumer (sidebar, Collections/Mixtapes grid,
AddToMixtapeModal) saw zero-item counts for every collection. Load
items per collection at the end of the listing, matching what
get_collection already does.
cc
Leftover from Task 5.3 when the mixtape-detail route rendered a
"Full detail view is built in Phase 6" hint. Phase 6 replaced the
placeholder with MixtapeCollectionDetailView; the .hint selector
has had no consumer since then. svelte-check flagged it; removed.
cc
The CollectionsView shipped with a secondary CTA that was stubbed to
a console.log pending an artist picker we never built. Shipping a
dead button is worse than not having it. Artist Collections remain
buildable via the circular action button on ArtistDetailView (next
to Follow / Radio) — that path actually works. A future iteration
can add the picker and reintroduce the CTA if it proves useful.
cc
Two issues flagged by user review:
1. MixtapeCollectionDetailView and DiscographyBuilderView shipped with
a custom bordered .back-btn (icon + "Back" text in a rounded box),
visually inconsistent with the rest of the app. The canonical back
button across ArtistDetailView / PurchaseAlbumDetailView /
MusicianPageView / BlacklistManagerView / AwardView is borderless,
ArrowLeft 16px + translated text, text-muted color with hover to
text-secondary. Both views now use that exact pattern.
2. DiscographyBuilderView threw Svelte error each_key_duplicate for
qobuz0060254702534 because the Qobuz artist-page endpoint can return
the same album under multiple release_groups (albums + compilations
most commonly). Those duplicates landed in the same group's
alternates list, and the {#each} keyed by source+source_item_id
detected the dupe. buildGroups() now dedupes candidates by
(source, source_item_id) on entry.
cc
The button shipped as a rounded-rectangle pill with icon + text,
visually inconsistent with the circular icon-only siblings (favorite,
radio, network). The brief was "zero pills, reuse existing
conventions"; this swaps to a 44x44 circle matching .favorite-btn
exactly, with a lucide LibraryBig icon and the title attribute
carrying the "Build Artist Collection" label for hover.
cc
The view had two $effects — one of them read $collectionsStore AND the
local `collection` state AND wrote `collection` via object spread on
every run. Svelte 5 detected the self-re-triggering cycle and threw
effect_update_depth_exceeded, which froze every interaction on the
detail view after a collection was created.
The store-sync effect was redundant: every mutation handler in this
component already calls loadCollection() after success, so the local
`collection` state stays current without that effect. Removing it
eliminates the loop without losing any behavior. collectionsStore
import dropped accordingly.
cc
Cross-source artist discography builder. Fetches the artist's Qobuz
releases (via v2_get_artist_page) and LocalLibrary albums by artist
name (via v2_library_get_albums filtered client-side), normalizes
titles to group variants of the same album, ranks each group by
quality_score (bit_depth × 10M + sample_rate_hz + format_bonus), and
renders a primary row + indented alternate rows per group.
Compilations detected heuristically (best of / greatest hits /
anthology / ...) and unchecked by default. Default selection: primary
of each non-compilation group. User can check alternates to include
them too. Order by release date / title / manual (preserves input
order). Submit creates an artist_collection with
source_type='artist_discography' + source_ref=artistId and enqueues
items in display order.
ArtistDetailView gains a "Build Artist Collection" action button
(LibraryBig icon, secondary style, rendered only when callback prop is
present). Entry point from CollectionsView left as-is (artist picker
deferred). Added 'discography-builder' to ViewType union.
Toast keys toast.collectionCreated / toast.collectionCreateFailed
added to all five locale files (en, es, de, fr, pt).
cc
Two more entry points, wired to the same global modal trigger store.
TrackRow's context menu gains the action for both Qobuz and local
tracks. Playlist rows expose it only for Qobuz playlists — local
playlists are narrowed by the backend resolver (spec §3.1) and
would fail at enqueue time.
cc
Adds a shared modal-trigger store + mounts AddToMixtapeModal once at
the page level. AlbumCard exposes the action via its overflow menu;
AlbumDetailView exposes it as a secondary action button in the top
action row. Both build an AddToMixtapeItem from the album's source /
id / title / artist / artwork / year / track count and invoke
openAddToMixtape(), which the global modal consumes.
cc
Full detail page with a CollectionMosaic header, title, kind tag,
description, item count, and three primary actions (Play / Shuffle /
overflow). Overflow menu exposes Rename, Edit description, Toggle
play mode, Convert kind (disabled for artist_collection), and Delete
with a confirmation dialog.
Item table columns: # | Item (artwork + title + subtitle) | Type |
Source | Quality | Tracks | Year | ⋯. Type column uses a lucide icon
+ uppercase letter-spaced label (no pill). Source reuses <SourceBadge>.
Quality reuses the shared QualityBadge compact component.
Inline per-row overflow menu offers Remove. "Play next" and full
item drag-reorder are stubbed for future work.
+page.svelte's Task 5.3 placeholder is replaced with this component;
onBack returns the user to the matching grid view (Mixtapes or
Collections) based on the collection's kind. getCollection import
removed from +page.svelte (now only used inside the detail component).
cc
Shared modal for "Add to Mixtape/Collection" entry points. Lists the
user's collections sorted by recency, with a kind icon + name + item
count + kind tag per row. Clicking a row calls addItem; dedup toast
when backend returns false. "+ Mixtape" / "+ Collection" footer opens
an inline create-panel that creates then adds the current item in one
shot. Search filters by name (case-insensitive substring). ESC closes
the create-panel first, then the modal.
Adds a single new i18n key (common.addedToMixtapeOrCollection) across
5 locales for the success toast.
cc
Replaces the pre-5.B "Coming soon" placeholders with the real grid
views. Adds an inline create-modal (name + kind toggle) that calls
createCollection and navigates straight to the new collection's
detail placeholder — which itself stays minimal until Phase 6
ships MixtapeCollectionDetailView. Collections' "Build Artist
Collection" secondary CTA is wired to a TODO comment pending
Phase 8 DiscographyBuilderView. Drops dead .coming-soon CSS.
cc
Near-identical grid layouts for the two sections under My QBZ. Both
subscribe to collectionsStore, filter by kind, and render cards with
CollectionMosaic covers. Empty states center the mosaic placeholder
with kind-specific lucide icons and CTAs.
CollectionsView also exposes a "Build Artist Collection" secondary
CTA alongside the regular "+ New Collection" primary. The label
"ARTIST · <name>" is used on artist_collection cards so they are
distinguishable at a glance from plain Collections.
cc
Renders a 2x2 or 3x3 grid of album artwork thumbnails as a single
collection cover. 3x3 layout only for Collections with >= 9 items
(dense "shelf" look); 2x2 otherwise. Artist-collection kind gets a
circular avatar overlay at the bottom-right. Empty state centers a
kind-specific lucide icon. Lazy-loaded thumbnails.
cc
Svelte writable holds the flat collection list for sidebar / grid
subscribers. Thin typed wrappers over Tauri invoke map camelCase arg
keys into snake_case response shapes. addItem returns the backend's
dedup boolean so callers can toast "Already in X" when false.
Covered by vitest (mock invoke): load/get/create/rename/description/
play_mode/kind/custom_artwork/delete/addItem/removeItem/reorderItems/
enqueue with default-mode behavior.
cc
Referenced by the new My QBZ collapsible nav section (commit 8466a619)
but the asset file itself was untracked — this ensures it ships with
the feature branch for clean builds.
cc
Replaces /music-library.svg references in Sidebar and TitleBarNav with
/music-library-2.svg (the corrected all-black monochrome asset the user
provided) and swaps the <img> rendering for a <span> with CSS mask so the
icon inherits the theme's text color — same pattern now used for My QBZ,
cassette, collection, and the existing plex-mono icons.
cc
The previous implementation used <img src="/my-qbz.svg"> etc., which
browsers won't recolor via CSS — so the icons rendered black on
dark themes. Switch the three default SVGs (my-qbz, cassette,
collection) to CSS mask, same pattern TrackRow already uses for
plex-mono.svg: the SVG becomes a silhouette painted with
currentColor, inheriting the theme's text color.
Custom user-uploaded icons for the My QBZ parent still render via
<img> so their colors show as chosen.
cc