fix(reco): full-albums-only + slop filter + taller Recommendation rows

Owner-directed polish after testing the Recommendations tab.

- Full albums only: drop singles/EPs/boxsets/compilations from every album row
  (Recommended Albums, Fresh Releases, Deep cuts). Qobuz's `release_type` is the
  source of truth ("album" | "single" | "boxset" | "compilation"); when absent,
  fall back to tracks_count >= 5. Kills the karaoke single that showed up under
  Fresh Releases.
- Slop second layer: reject karaoke / tribute / "made famous by" / "in the style
  of" / instrumental-version releases by artist-or-title keyword, applied both
  pre-resolution (candidates) and post-resolution (the Qobuz album), so AI-slop
  that still wears a full-album shape gets filtered.
- Taller rows in this view only: AlbumCard/ArtistCard/Carousel/ArtistCarousel
  grow an overridable `card-height` (defaults unchanged, so Home/Search are
  untouched); ExternalRecoView passes 266 to album rows and 256 to artist rows,
  whose cards carry the "Similar to…" subtitle (~250px) and were clipping the
  Follow chip at the old fixed 220.

cargo check -p qbz green.

cc
This commit is contained in:
vicrodh committed 2026-06-27 11:20:06 -06:00
1 parent c6b4906a6b
commit 05df99b713
7 files changed
+85 -12

No files matched your search

@@ -40,6 +40,7 @@ export component ExternalRecoView inherits VerticalLayout {
if ExternalRecoState.rec-artists-common.length > 0: ArtistCarousel {
title: @tr("More like the artists you love");
artists: ExternalRecoState.rec-artists-common;
card-height: 256px;
artist-clicked(id) => {
root.open-artist(id);
}
@@ -52,6 +53,7 @@ export component ExternalRecoView inherits VerticalLayout {
if ExternalRecoState.rec-artists-recent.length > 0: ArtistCarousel {
title: @tr("Based on what you've been into lately");
artists: ExternalRecoState.rec-artists-recent;
card-height: 256px;
artist-clicked(id) => {
root.open-artist(id);
}
@@ -63,6 +65,7 @@ export component ExternalRecoView inherits VerticalLayout {
// Recommended Albums (Last.fm artist top-albums, not scrobbled).
if ExternalRecoState.rec-albums.albums.length > 0: Carousel {
section: ExternalRecoState.rec-albums;
card-height: 266px;
album-clicked(id) => {
root.open-album(id);
}
@@ -74,6 +77,7 @@ export component ExternalRecoView inherits VerticalLayout {
// Fresh Releases (ListenBrainz, from artists you follow).
if ExternalRecoState.fresh-releases.albums.length > 0: Carousel {
section: ExternalRecoState.fresh-releases;
card-height: 266px;
album-clicked(id) => {
root.open-album(id);
}
@@ -103,6 +107,7 @@ export component ExternalRecoView inherits VerticalLayout {
// Deep cuts from artists you know (Qobuz catalog albums).
if ExternalRecoState.deep-cut-albums.albums.length > 0: Carousel {
section: ExternalRecoState.deep-cut-albums;
card-height: 266px;
album-clicked(id) => {
root.open-album(id);
}
@@ -114,6 +119,7 @@ export component ExternalRecoView inherits VerticalLayout {
// Cold-start fallback — Qobuz editorial top albums.
if ExternalRecoState.top-albums.albums.length > 0: Carousel {
section: ExternalRecoState.top-albums;
card-height: 266px;
album-clicked(id) => {
root.open-album(id);
}
@@ -126,6 +132,7 @@ export component ExternalRecoView inherits VerticalLayout {
if ExternalRecoState.top-artists.length > 0: ArtistCarousel {
title: @tr("Popular artists on Qobuz");
artists: ExternalRecoState.top-artists;
card-height: 256px;
artist-clicked(id) => {
root.open-artist(id);
}