feat(artists): link live-search hits to the artist preview page
Each MB search result on /artists now links its name to /discover/artist/[mbid] (the read-only disco + tracklist + own-state preview), so you can preview before following there too — same wiring the discovery feed already uses. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -77,7 +77,7 @@ export function ArtistsClient() {
|
|||||||
<ul>
|
<ul>
|
||||||
{hits.map((h) => (
|
{hits.map((h) => (
|
||||||
<li key={h.mbid}>
|
<li key={h.mbid}>
|
||||||
{h.name}
|
<a href={`/discover/artist/${h.mbid}?name=${encodeURIComponent(h.name)}`}>{h.name}</a>
|
||||||
{h.disambiguation ? ` (${h.disambiguation})` : ""}{" "}
|
{h.disambiguation ? ` (${h.disambiguation})` : ""}{" "}
|
||||||
{followedMbids.has(h.mbid) ? (
|
{followedMbids.has(h.mbid) ? (
|
||||||
<span> · following</span>
|
<span> · following</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user