feat(slint): ArtistView overhaul — server-driven buckets, dedicated discography, sort/load-more, Magazine, image fixes

Bucketing now trusts the server release_type: drop the foreign-artist filter
that hid band/guest releases (e.g. Vicky Psarakis' Albums were credited to
Sicksense), render every non-empty bucket, hide 'Purchase Only' (download),
and move 'Other' to the end, collapsed by default. Drop the misleading
per-section item counts.

New 'Latest release' highlight (last_release) and 'Appears On' track section
(tracks_appears_on, previously mislabeled as Compilations).

Per-section persisted 5-mode sort (artist_prefs) + per-section load-more
capped at 4 pages, reusing get_releases_grid. New dedicated discography page
(ArtistReleasesView + artist_releases controller) with sort + infinite scroll,
reached via each section's 'See discography' link.

Magazine/Stories sidebar tab (artist/story) with 1:1 thumbnails and a
Network|Magazine tab switcher; hide the empty similar-artists block to remove
the 'no similar' over populated-discovery incoherence. Header Share action.
Per-release award ribbons.

Fix custom artist AND album images: decode + apply immediately on upload and
resolve the local override on navigation, so a custom image now shows for
artists/albums with no Qobuz artwork.

Data layer: type last_release as PageArtistRelease, add /artist/story endpoint
+ core/client methods + ArtistStory* models, export ArtistReleases* globals.

cc
This commit is contained in:
vicrodh committed 2026-06-21 21:42:22 -06:00
1 parent 9d6b3533bc
commit 391cbb86b9
18 files changed
+1894 -225

No files matched your search

+4
View File
@@ -85,6 +85,10 @@ pub use types::{
AwardPageData,
AwardPageGenericList,
// Artist page types
ArtistStoryResponse,
ArtistStoryItem,
ArtistStoryImage,
ArtistStoryAuthor,
PageArtistAward,
PageArtistBiography,
PageArtistImages,
+48 -1
View File
@@ -996,7 +996,7 @@ pub struct PageArtistResponse {
pub images: Option<PageArtistImages>,
pub similar_artists: Option<PageArtistSimilar>,
pub top_tracks: Option<Vec<PageArtistTrack>>,
pub last_release: Option<serde_json::Value>,
pub last_release: Option<PageArtistRelease>,
pub releases: Option<Vec<PageArtistReleaseGroup>>,
pub tracks_appears_on: Option<Vec<PageArtistTrack>>,
pub playlists: Option<PageArtistPlaylists>,
@@ -1221,3 +1221,50 @@ pub struct ReleasesGridResponse {
pub has_more: bool,
pub items: Vec<PageArtistRelease>,
}
// ============ Artist Story Types (/artist/story) ============
/// Response from /artist/story (Magazine / editorial articles about the artist).
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ArtistStoryResponse {
pub has_more: bool,
#[serde(default)]
pub items: Vec<ArtistStoryItem>,
}
/// A single Magazine story. `image`/`images[].url` are ready-to-use signed
/// arc-cdn URLs — do NOT run them through the portrait hash/format builder.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ArtistStoryItem {
pub id: String,
pub title: String,
/// Epoch SECONDS, not an ISO string.
#[serde(default)]
pub display_date: Option<i64>,
#[serde(default)]
pub image: Option<String>,
#[serde(default)]
pub images: Option<Vec<ArtistStoryImage>>,
#[serde(default)]
pub description_short: Option<String>,
#[serde(default)]
pub authors: Option<Vec<ArtistStoryAuthor>>,
#[serde(default)]
pub section_slugs: Option<Vec<String>>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ArtistStoryImage {
#[serde(default)]
pub format: Option<String>,
pub url: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ArtistStoryAuthor {
pub name: String,
#[serde(default)]
pub id: Option<String>,
#[serde(default)]
pub slug: Option<String>,
}