From 70d3d60d21b91da472f7296689c8b89e4ec4e77f Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sat, 2 May 2026 12:57:55 -0400 Subject: [PATCH] feat(web): add play + like to artist detail header Mirrors the play overlay on ArtistCard from /library/artists: fetches every track for the artist (server already filters per-user lidarr_quarantine), shuffles client-side, kicks off playback. Adds a LikeButton next to it with entityType="artist" so the operator can favourite an artist from this surface without bouncing back to the library grid. Play button is disabled when album_count === 0 or while the fetch is in flight, so a double-tap can't start two queues. Co-Authored-By: Claude Opus 4.7 (1M context) --- web/src/routes/artists/[id]/+page.svelte | 53 +++++++++++++++++++++--- 1 file changed, 48 insertions(+), 5 deletions(-) diff --git a/web/src/routes/artists/[id]/+page.svelte b/web/src/routes/artists/[id]/+page.svelte index 292c2286..8c119acf 100644 --- a/web/src/routes/artists/[id]/+page.svelte +++ b/web/src/routes/artists/[id]/+page.svelte @@ -1,11 +1,16 @@
@@ -31,11 +62,23 @@ {:else if query.data} {@const detail = query.data} -
-

{detail.name}

-

- {detail.album_count} {detail.album_count === 1 ? 'album' : 'albums'} -

+
+
+

{detail.name}

+

+ {detail.album_count} {detail.album_count === 1 ? 'album' : 'albums'} +

+
+ +
{#if detail.albums.length === 0}