From f7161bafe176bdbf3eb21fd47f9df70a7a19284b Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sun, 25 Jan 2026 03:32:08 -0600 Subject: [PATCH] feat(credits): redesign Single Track Modal per Figma specs (Phase 5) - Glass effect modal (560px, blur(20px), rgba border) - Header with track title + album subtitle - 3-column metadata grid: Duration, Quality, ISRC - 2-column credits grid grouped by role - Role ordering: Composer/Lyricist first, MainArtist last - CamelCase to UPPERCASE label conversion - Multiple performers per role joined with comma - Copyright section at bottom - ESC key closes modal - Animations: fade-in overlay, scale-up modal --- src/lib/components/TrackInfoModal.svelte | 464 ++++++++++++++--------- 1 file changed, 278 insertions(+), 186 deletions(-) diff --git a/src/lib/components/TrackInfoModal.svelte b/src/lib/components/TrackInfoModal.svelte index 0397e42c5..82966c1fd 100644 --- a/src/lib/components/TrackInfoModal.svelte +++ b/src/lib/components/TrackInfoModal.svelte @@ -1,7 +1,6 @@ - - {#snippet children()} - {#if loading} -
- - Loading track info... -
- {:else if error} -
-

Failed to load track info

- {error} -
- {:else if trackInfo} -
- -
-
- - Title - {trackInfo.track.title} + + +{#if isOpen} +
- - - {#if trackInfo.performers.length > 0} -
-

- - Credits -

-
- {#each trackInfo.performers as performer} -
- {performer.name} - {#if performer.roles.length > 0} - {performer.roles.join(', ')} - {/if} + + {#if groupedCredits.length > 0} +
+
+ {#each groupedCredits as { role, names }} +
+ {formatRole(role)} + {names.join(', ')}
{/each}
-
- {/if} + {/if} - - {#if trackInfo.track.copyright} - - {/if} -
- {/if} - {/snippet} -
+ + {#if trackInfo.track.copyright} +
+ + {/if} + + {/if} + + +{/if}