From ba620575457bb8e02e4b1bb3415b662ac31e28b1 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Tue, 10 Feb 2026 01:10:28 -0600 Subject: [PATCH] feat: add Qobuzissimes, Albums of the Week, Press Accolades browse pages - Add 3 new Rust endpoint constants and command mappings for /discover/qobuzissims, /discover/albumOfTheWeek, /discover/pressAward - Add 3 new navigation ViewType values and genre filter contexts - Extend DiscoverBrowseView to handle the 3 new endpoint types - Add See All links with chevron caret and pipe separator to all 6 discover sections in HomeView (newReleases, mostStreamed, essentialDiscography, qobuzissimes, editorPicks, pressAwards) - Wire up 3 new views in +page.svelte with full album action callbacks - Rename Editor's Picks to Albums of the Week, Press Awards to Press Accolades across all 4 locale files (en, es, de, fr) - Fix rank badge: top-right position, Impact font, 35px size - See All styling: inline-flex with ChevronRight icon, pipe divider, 15px gap before nav buttons, #666666 color matching nav buttons --- src-tauri/src/api/endpoints.rs | 3 + src-tauri/src/commands/search.rs | 3 + src/lib/components/HorizontalScrollRow.svelte | 1 + .../VirtualizedFavoritesAlbumGrid.svelte | 5 +- .../views/DiscoverBrowseView.svelte | 5 +- src/lib/components/views/HomeView.svelte | 54 ++++++++++++++--- src/lib/i18n/locales/de.json | 11 ++-- src/lib/i18n/locales/en.json | 11 ++-- src/lib/i18n/locales/es.json | 9 ++- src/lib/i18n/locales/fr.json | 11 ++-- src/lib/stores/genreFilterStore.ts | 20 ++++++- src/lib/stores/navigationStore.ts | 5 +- src/routes/+page.svelte | 60 +++++++++++++++++++ 13 files changed, 171 insertions(+), 27 deletions(-) diff --git a/src-tauri/src/api/endpoints.rs b/src-tauri/src/api/endpoints.rs index 1f99aafb5..1d8b0c151 100644 --- a/src-tauri/src/api/endpoints.rs +++ b/src-tauri/src/api/endpoints.rs @@ -56,6 +56,9 @@ pub mod paths { pub const DISCOVER_NEW_RELEASES: &str = "/discover/newReleases"; pub const DISCOVER_IDEAL_DISCOGRAPHY: &str = "/discover/idealDiscography"; pub const DISCOVER_MOST_STREAMED: &str = "/discover/mostStreamed"; + pub const DISCOVER_QOBUZISSIMS: &str = "/discover/qobuzissims"; + pub const DISCOVER_ALBUM_OF_THE_WEEK: &str = "/discover/albumOfTheWeek"; + pub const DISCOVER_PRESS_AWARD: &str = "/discover/pressAward"; } /// Build full URL for an endpoint diff --git a/src-tauri/src/commands/search.rs b/src-tauri/src/commands/search.rs index 205a23fad..abc43e44d 100644 --- a/src-tauri/src/commands/search.rs +++ b/src-tauri/src/commands/search.rs @@ -706,6 +706,9 @@ pub async fn get_discover_albums( "newReleases" => paths::DISCOVER_NEW_RELEASES, "idealDiscography" => paths::DISCOVER_IDEAL_DISCOGRAPHY, "mostStreamed" => paths::DISCOVER_MOST_STREAMED, + "qobuzissimes" => paths::DISCOVER_QOBUZISSIMS, + "albumOfTheWeek" => paths::DISCOVER_ALBUM_OF_THE_WEEK, + "pressAward" => paths::DISCOVER_PRESS_AWARD, _ => return Err(format!("Unknown discover endpoint type: {}", endpoint_type)), }; diff --git a/src/lib/components/HorizontalScrollRow.svelte b/src/lib/components/HorizontalScrollRow.svelte index 6fb03102a..28325feb4 100644 --- a/src/lib/components/HorizontalScrollRow.svelte +++ b/src/lib/components/HorizontalScrollRow.svelte @@ -69,6 +69,7 @@ display: flex; align-items: center; justify-content: space-between; + gap: 15px; margin-bottom: 16px; } diff --git a/src/lib/components/VirtualizedFavoritesAlbumGrid.svelte b/src/lib/components/VirtualizedFavoritesAlbumGrid.svelte index 1493789b9..17ed8d61a 100644 --- a/src/lib/components/VirtualizedFavoritesAlbumGrid.svelte +++ b/src/lib/components/VirtualizedFavoritesAlbumGrid.svelte @@ -524,12 +524,13 @@ .rank-badge { position: absolute; - bottom: 114px; + top: 4px; right: 4px; z-index: 2; background: rgba(0, 0, 0, 0.70); color: #fff; - font-size: 33px; + font-family: Impact, 'Arial Black', sans-serif; + font-size: 35px; font-weight: 700; padding: 2px 8px; border-radius: 8px; diff --git a/src/lib/components/views/DiscoverBrowseView.svelte b/src/lib/components/views/DiscoverBrowseView.svelte index 2358f464b..7eaf24b74 100644 --- a/src/lib/components/views/DiscoverBrowseView.svelte +++ b/src/lib/components/views/DiscoverBrowseView.svelte @@ -42,7 +42,7 @@ } interface Props { - endpointType: 'newReleases' | 'idealDiscography' | 'mostStreamed'; + endpointType: 'newReleases' | 'idealDiscography' | 'mostStreamed' | 'qobuzissimes' | 'albumOfTheWeek' | 'pressAward'; titleKey: string; showRanking?: boolean; onBack: () => void; @@ -88,6 +88,9 @@ newReleases: 'discover-new-releases', idealDiscography: 'discover-ideal-discography', mostStreamed: 'discover-top-albums', + qobuzissimes: 'discover-qobuzissimes', + albumOfTheWeek: 'discover-albums-of-the-week', + pressAward: 'discover-press-accolades', }; const genreContext = GENRE_CONTEXT_MAP[endpointType]; diff --git a/src/lib/components/views/HomeView.svelte b/src/lib/components/views/HomeView.svelte index 708c6d3ee..3231c2aeb 100644 --- a/src/lib/components/views/HomeView.svelte +++ b/src/lib/components/views/HomeView.svelte @@ -1,7 +1,7 @@