feat(favorites): add browse view for artists with Qobuz albums

Implements a two-column sidepanel view for Favorites > Artists:
- Left column shows artists grouped A-Z with sticky headers
- Right column shows selected artist's Discography albums
- Albums are filtered to show only studio albums (not EPs, Singles, Live)
- Proper AlbumCard with artwork, favorite button, and quality badge
- Footer link to navigate to full artist page for other album types
- Alpha index in toolbar for quick navigation
- Toggle button to switch between grid and browse views
- View mode persists to localStorage

Also exports categorizeAlbum from qobuzAdapters for reuse.
This commit is contained in:
vicrodh committed 2026-01-30 08:40:08 -06:00
1 parent 7b5cf5e0a6
commit 8341d2bb63
2 files changed
+414 -26

No files matched your search

+7 -1
View File
@@ -357,7 +357,13 @@ export function convertQobuzAlbum(album: QobuzAlbum): AlbumDetail {
* Categorize an album into the appropriate section
* Priority order matters - check most specific categories first
*/
function categorizeAlbum(album: QobuzAlbum, mainArtistId: number): 'tributes' | 'others' | 'live' | 'eps' | 'albums' {
export type AlbumCategory = 'tributes' | 'others' | 'live' | 'eps' | 'albums';
/**
* Categorize an album into the appropriate section
* Exported for use in Favorites view to filter to Discography only
*/
export function categorizeAlbum(album: QobuzAlbum, mainArtistId: number): AlbumCategory {
// 1. Albums by different artists -> Tributes (highest priority)
// These are tribute albums, covers, or albums that somehow ended up in the discography
if (isTributeAlbum(album, mainArtistId)) {