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
This commit is contained in:
1 parent
a575c0c805
commit
ba62057545
13 files changed
+171
-27
No files matched your search
@@ -20,7 +20,7 @@ export interface GenreTreeNode {
|
||||
loading?: boolean;
|
||||
}
|
||||
|
||||
export type GenreFilterContext = 'home' | 'favorites' | 'discover-new-releases' | 'discover-ideal-discography' | 'discover-top-albums';
|
||||
export type GenreFilterContext = 'home' | 'favorites' | 'discover-new-releases' | 'discover-ideal-discography' | 'discover-top-albums' | 'discover-qobuzissimes' | 'discover-albums-of-the-week' | 'discover-press-accolades';
|
||||
|
||||
interface ContextState {
|
||||
selectedGenreIds: Set<number>;
|
||||
@@ -43,6 +43,9 @@ const STORAGE_KEYS: Record<GenreFilterContext, string> = {
|
||||
'discover-new-releases': 'qbz_genre_filter_discover_new_releases',
|
||||
'discover-ideal-discography': 'qbz_genre_filter_discover_ideal_discography',
|
||||
'discover-top-albums': 'qbz_genre_filter_discover_top_albums',
|
||||
'discover-qobuzissimes': 'qbz_genre_filter_discover_qobuzissimes',
|
||||
'discover-albums-of-the-week': 'qbz_genre_filter_discover_albums_of_the_week',
|
||||
'discover-press-accolades': 'qbz_genre_filter_discover_press_accolades',
|
||||
};
|
||||
|
||||
const GENRE_CACHE_KEY = 'qbz_genre_cache';
|
||||
@@ -121,6 +124,21 @@ const state: GenreFilterState = {
|
||||
rememberSelection: true,
|
||||
listeners: new Set(),
|
||||
},
|
||||
'discover-qobuzissimes': {
|
||||
selectedGenreIds: new Set(),
|
||||
rememberSelection: true,
|
||||
listeners: new Set(),
|
||||
},
|
||||
'discover-albums-of-the-week': {
|
||||
selectedGenreIds: new Set(),
|
||||
rememberSelection: true,
|
||||
listeners: new Set(),
|
||||
},
|
||||
'discover-press-accolades': {
|
||||
selectedGenreIds: new Set(),
|
||||
rememberSelection: true,
|
||||
listeners: new Set(),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -25,7 +25,10 @@ export type ViewType =
|
||||
| 'favorites-playlists'
|
||||
| 'discover-new-releases'
|
||||
| 'discover-ideal-discography'
|
||||
| 'discover-top-albums';
|
||||
| 'discover-top-albums'
|
||||
| 'discover-qobuzissimes'
|
||||
| 'discover-albums-of-the-week'
|
||||
| 'discover-press-accolades';
|
||||
export type FavoritesTab = 'tracks' | 'albums' | 'artists' | 'playlists';
|
||||
|
||||
// Navigation state
|
||||
|
||||
Reference in new issue
Block a user