mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 15:25:46 +00:00
fix(artist): align top-track covers with album grid cover path (#886)
* fix(artist): align top-track covers with album grid cover path Top tracks now resolve album.id + album.coverArt like AlbumCard, use the same useAlbumCoverRef/CoverArtImage dense pipeline, and batch-warm covers on page load instead of a custom sparse resolver. * docs: CHANGELOG and credits for PR #886 artist top-track covers * fix(artist): match All Albums cover warm tier and prefetch on detail page Warm top-track and discography covers at dense grid tier (140px) instead of 32px thumb tier so disk peek hits cached WebP. Register high-priority dense prefetch like All Albums and ensure top-track cells at high priority so dense defer-until-visible does not stall visible thumbs. * fix(artist): satisfy tsc for top-track cover warm helpers Use optional coverArt access in pushAlbumWarmRow and align album pick types with topSongAlbumForCover (id + name + coverArt).
This commit is contained in:
@@ -98,10 +98,10 @@ export function coverEntryToRef(
|
||||
};
|
||||
}
|
||||
|
||||
/** Artist top tracks: prefer album row `coverArt` when the grid already has it. */
|
||||
/** @deprecated Alias for {@link resolveSongFetchCoverArtId}. */
|
||||
export const resolveSubsonicSongCoverArtId = resolveSongFetchCoverArtId;
|
||||
|
||||
/** @deprecated Top tracks use album row `id` + `coverArt` like AlbumCard. */
|
||||
export function resolveArtistPageSongFetchCoverArtId(
|
||||
song: Pick<SubsonicSong, 'id' | 'coverArt' | 'albumId' | 'album' | 'discNumber'>,
|
||||
albums: ReadonlyArray<Pick<SubsonicAlbum, 'id' | 'name' | 'coverArt'>>,
|
||||
|
||||
Reference in New Issue
Block a user