Update script.js

This commit is contained in:
Broque Thomas 2025-10-04 17:28:03 -07:00
parent ea9f351bdb
commit 3dba6f97c4

View file

@ -15368,11 +15368,11 @@ function createSimilarArtistBubble(artist) {
bubble.appendChild(genres); bubble.appendChild(genres);
} }
// TODO: Add click handler when functionality is ready // Add click handler to navigate to artist detail page
// For now, just make it visually interactive
bubble.addEventListener('click', () => { bubble.addEventListener('click', () => {
console.log(`🎵 Clicked similar artist: ${artist.name} (ID: ${artist.id})`); console.log(`🎵 Clicked similar artist: ${artist.name} (ID: ${artist.id})`);
// Future: Navigate to this artist's detail page or trigger action // Navigate to this artist's detail page (same as clicking from search results)
selectArtistForDetail(artist);
}); });
return bubble; return bubble;