From dd9460ca0f2de46ad9c88cc837399b5a746bf606 Mon Sep 17 00:00:00 2001 From: m4x809 Date: Sat, 25 Oct 2025 11:15:01 +0200 Subject: [PATCH] Enhance TrackCard and TrackModal components with new features - Replaced `studioUrl` with `__SPOTIFY_URL__` in TrackCard for better track linking. - Added a Tooltip to the LP Live badge in TrackCard to display disclaimers. - Updated TrackModal to show the LP Live disclaimer below the location text. - Modified Track data structure in list.ts to include new live performance details and disclaimers. --- src/Components/TrackCard.tsx | 26 +++++----- src/Components/TrackModal.tsx | 3 ++ src/lib/ListTypes.ts | 3 +- src/lib/list.ts | 96 +++++++++++++++++++---------------- 4 files changed, 71 insertions(+), 57 deletions(-) diff --git a/src/Components/TrackCard.tsx b/src/Components/TrackCard.tsx index b5412b2..207a3ac 100644 --- a/src/Components/TrackCard.tsx +++ b/src/Components/TrackCard.tsx @@ -1,6 +1,6 @@ "use client"; -import { Card, Group, Text, Badge, Box } from "@mantine/core"; +import { Card, Group, Text, Badge, Box, Tooltip } from "@mantine/core"; import { useState } from "react"; import type { AlbumTheme } from "@/lib/themes"; import type { Track } from "@/lib/ListTypes"; @@ -54,7 +54,7 @@ export default function TrackCard({ track, index, theme }: TrackCardProps) { - {track.studioUrl && ( + {track.__SPOTIFY_URL__ && ( )} {track.lpLive && ( - - LP Live - + )} {track.lpTV && ( {track.lpLive.location} + + {track.lpLive.disclaimer} +