feat(suggestions): add interactive navigation and track info modal

- Add artist_id field to SuggestedTrack for navigation
- Make artist names clickable to navigate to artist view
- Make album names clickable to navigate to album view
- Add TrackInfo button (info icon) to view track credits
- Integrate TrackInfoModal component with suggestions
- Update PlaylistDetailView to pass navigation callbacks
This commit is contained in:
vicrodh committed 2026-01-27 16:53:56 -06:00
1 parent 54315c2e4e
commit 9a89074b5f
4 files changed
+311 -74

No files matched your search

@@ -23,9 +23,13 @@ export interface SuggestedTrack {
track_id: number;
title: string;
artist_name: string;
/** Qobuz artist ID for navigation */
artist_id?: number;
artist_mbid?: string;
album_title: string;
album_id: string;
/** Direct URL to album cover image */
album_image_url?: string;
duration: number;
similarity_score: number;
reason?: string;
@@ -158,7 +162,7 @@ export async function cleanupVectorStore(maxAgeDays?: number): Promise<number> {
// ============ Helpers ============
/** Default number of top artists to use for suggestions */
const DEFAULT_TOP_ARTISTS = 5;
const DEFAULT_TOP_ARTISTS = 30;
/**
* Extract top artists from playlist tracks, sorted by frequency (track count)