From 9b47a8bde246f938e9412ae8806e894a470f9b1c Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sun, 25 Jan 2026 22:26:04 -0600 Subject: [PATCH] feat: add musician click handlers to artist sidebar members Wire up onMusicianClick for Members & Former and Collaborators sections in ArtistDetailView sidebar. Clicking a member now triggers the musician resolution flow (modal for weak confidence, musician page for contextual, or artist page for confirmed). Uses the first role from MusicBrainz relationships or defaults to "Band Member" / "Collaborator" as the role parameter. --- src/lib/components/views/ArtistDetailView.svelte | 8 ++++++-- src/routes/+page.svelte | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/components/views/ArtistDetailView.svelte b/src/lib/components/views/ArtistDetailView.svelte index 2acdba1c9..23cab1348 100644 --- a/src/lib/components/views/ArtistDetailView.svelte +++ b/src/lib/components/views/ArtistDetailView.svelte @@ -75,6 +75,7 @@ onTrackGoToAlbum?: (albumId: string) => void; onTrackGoToArtist?: (artistId: number) => void; onLabelClick?: (labelId: number, labelName?: string) => void; + onMusicianClick?: (name: string, role: string) => void; activeTrackId?: number | null; isPlaybackActive?: boolean; } @@ -107,6 +108,7 @@ onTrackGoToAlbum, onTrackGoToArtist, onLabelClick, + onMusicianClick, activeTrackId = null, isPlaybackActive = false }: Props = $props(); @@ -1995,9 +1997,10 @@ {@const tooltip = tooltipParts.length > 0 ? (periodStr ? `${tooltipParts.join(', ')} (${periodStr})` : tooltipParts.join(', ')) : (periodStr || member.name)} + {@const memberRole = member.roles[0] || 'Band Member'}