diff --git a/web/src/app/api/wanted/route.ts b/web/src/app/api/wanted/route.ts index 8fdd1e8..1fda9ce 100644 --- a/web/src/app/api/wanted/route.ts +++ b/web/src/app/api/wanted/route.ts @@ -15,6 +15,9 @@ export async function GET() { currentQualityClass: r.currentQualityClass, lastSearchedAt: r.lastSearchedAt, watchedArtistId: r.watchedArtistId, + rgMbid: r.rgMbid, + primaryType: r.primaryType, + firstReleaseDate: r.firstReleaseDate, })), }); } diff --git a/web/src/app/discover/discover-client.tsx b/web/src/app/discover/discover-client.tsx index 652dc73..40af92a 100644 --- a/web/src/app/discover/discover-client.tsx +++ b/web/src/app/discover/discover-client.tsx @@ -5,6 +5,7 @@ import { PageHead } from "../_ui/page-head"; import { SectionHeader } from "../_ui/section-header"; import { ArtistModal } from "../_ui/artist-modal"; import { AlbumModal } from "../_ui/album-modal"; +import { CoverArt } from "../_ui/cover-art"; type Suggestion = { id: string; @@ -189,15 +190,17 @@ export function DiscoverClient() { {feed.albums.map((s) => (
  • -
    - {" "} - · {s.artistName} -
    -
    - score {s.score.toFixed(2)} -
    +
    {stateLabel(w)} @@ -99,6 +110,32 @@ export function WantedClient() { ))} )} + + {open ? ( + setOpen(null)} + album={{ + rgMbid: open.rgMbid, + album: open.album, + artist: open.artistName, + year: open.firstReleaseDate?.slice(0, 4) ?? null, + type: open.primaryType, + }} + status={{stateLabel(open)}} + actions={ + + } + /> + ) : null}
    ); }