ui: use the album grid for artist icons too

Load up to four thumbnail covers per visible artist row on demand and render the same 1-4 layout inside the circular artist icon. Lists stay on the expensive per-row query for now.
This commit is contained in:
austinried
2026-10-20 07:27:42 +00:00
parent 6e60ff6183
commit 0d1118011f
12 changed files with 309 additions and 194 deletions
@@ -613,6 +613,13 @@ class AppScreenshotTest {
artists = remember { flowOf(PagingData.from(Fixtures.artists)) },
playlists = remember { flowOf(PagingData.from(Fixtures.playlists)) },
coverArt = { id, _ -> id?.let { CoverArtRef(it, "test:$it") } },
artistCovers = { id ->
Fixtures.albums
.filter { it.artistId == id }
.take(4)
.mapNotNull { it.coverArt }
.map { CoverArtRef(it, "test:$it") }
},
onAlbumClick = {},
onArtistClick = {},
onPlaylistClick = {},