Files
qbz/src
vicrodh 10e32aa058 feat(artist-detail): migrate AlbumCard → AlbumCardLite
Six callsites in ArtistDetailView (one per release-type section)
swap from legacy `../AlbumCard.svelte` to
`$lib/discovery-v2/AlbumCardLite.svelte`. AlbumCardLite gained the
`isAlbumFullyDownloaded` flag + `onReDownloadAlbum` callback this
session so the chunked path keeps the offline-cache UX legacy
provided.

Props dropped during migration (legacy artefacts AlbumCardLite
doesn't model and the legacy view didn't really need either):

  - `size="large"` — Lite is fixed 220x220, matches the legacy
    "large" size already.
  - `searchId` — data attribute used by search-result navigation;
    not applicable to discography views.
  - `releaseDate` — Lite shows `releaseYear` (number) instead of a
    formatted date string. Year flows through the artist subtitle
    slot the same way the legacy view did (`album.year || ''`),
    so the visible info is unchanged.
  - `onOpenContainingFolder` — the legacy AlbumMenu declared but
    never rendered an item for it; Lite mirrors that.
  - `downloadStateVersion` — Lite re-evaluates props natively
    through Svelte reactivity; the manual version bump isn't needed.

Renames: `onAddAlbumToPlaylist` → `onAddToPlaylist`,
`onclick` → `onClick` (Svelte 5 convention used across Discovery V2).

cc
2026-05-12 16:51:17 -06:00
..