feat(myqbz): Discography Builder — artist_collection creation flow

Phase-2 Slice 11. The third MyQBZ kind (artist_collection / artist_discography),
1:1 with spec 13 (the 1445-line DiscographyBuilderView):
- ui/myqbz/DiscographyBuilderView.slint: header (artist avatar + name + eyebrow),
  name input, 3-segment order-by, the 7-col grouped release table
  (28 56 72 1fr 72 60 156) with tri-state select-all, primary + alternate rows
  (↳ connector, source indicator, QualityBadge, per-row type-override popover),
  footer (count + Create). Exact §0 dark colors + type tints.
- src/myqbz_builder.rs: candidate/group model + normalize/classify/quality-score;
  THREE sources fully wired (Qobuz get_artist_page + local + Plex via the unified
  metadata query); build_groups dedupes/buckets/quality-sorts (Qobuz wins ties);
  persisted release-type override sidecar. Save = create_collection (ArtistCollection,
  ArtistDiscography, source_ref=artist_id) + add_item per checked candidate in sort
  order (Plex->local) -> navigate to the new collection's detail.
- Entry: the artist page "Build Artist Collection" button (was unwired).

Known polish nits (S12): view-wide uppercase eyebrow/labels; Create should disable
on whitespace-only name. Toast uses real strings (toast.collectionCreated/Failed are
absent from en.json; DQ4). Backend crates untouched. cargo check -p qbz-slint green.

cc
This commit is contained in:
vicrodh committed 2026-06-09 07:19:06 -06:00
1 parent 1db40d87ef
commit c6aa61a09e
7 files changed
+2192 -2

No files matched your search

+7
View File
@@ -72,6 +72,13 @@ pub enum NavEntry {
/// view-mode) is session-scoped in the controller, so the entry carries
/// only the id.
MixtapeDetail(String),
/// The Discography Builder full-page flow (spec 13). The string is the
/// artist id; the builder fetches that artist's releases from Qobuz +
/// local + Plex, dedupes into groups, and saves a `kind='artist_collection'`
/// collection. Mirrors `MixtapeDetail` / `Artist` — session-scoped builder
/// state (selection / order / name) lives in the controller, so the entry
/// carries only the id.
DiscographyBuilder(String),
Album(String),
/// A Local Library album detail page (dedicated view, separate from the
/// Qobuz Album view); the string is the metadata group key.