beginnings of artist grid and artist details view

This commit is contained in:
2026-02-22 19:17:27 -05:00
parent 30bbdd7c53
commit 9dabfb81c5
15 changed files with 1186 additions and 10 deletions
@@ -51,6 +51,16 @@ export class LibraryController implements ReactiveController {
return libraryStore.getAlbums();
}
async getArtists(): Promise<library.Artist[]> {
return libraryStore.getArtists();
}
async getAlbumsByArtist(
artistID: number,
): Promise<library.Album[]> {
return libraryStore.getAlbumsByArtist(artistID);
}
get cachedTracks(): library.Track[] | null {
return libraryStore.getCachedTracks();
}
@@ -59,6 +69,10 @@ export class LibraryController implements ReactiveController {
return libraryStore.getCachedAlbums();
}
get cachedArtists(): library.Artist[] | null {
return libraryStore.getCachedArtists();
}
get tracksLoading(): boolean {
return libraryStore.isTracksLoading();
}
@@ -67,6 +81,10 @@ export class LibraryController implements ReactiveController {
return libraryStore.isAlbumsLoading();
}
get artistsLoading(): boolean {
return libraryStore.isArtistsLoading();
}
// ===================================================================
// SCROLL POSITION
// ===================================================================