Version history of src/components/LibraryView.test.tsx

September 2026

The bar's art tile asked the *file* for a picture and the grid asked the *record*, so one album had a sleeve in one view and nothing in the other. Navidrome's `/api/song` reports artwork as a per-file boolean (`hasCoverArt`, `model/mediafile.go:50`) and marshals no album artwork at all (`EmbedArtPath` is `json:"-"`, `model/album.go:23`), which is how a record whose sleeve is a `cover.jpg` in its folder — or a picture embedded in some of its files and not others — ends up with tracks that report nothing while their own cell in the grid reports the sleeve: `grid.ts` has always asked `coverArt ?? albumId`, and `parseArtworkID` accepts a raw entity id and answers with that album's `CoverArtID` (`core/artwork/artwork.go:365-379`). The report was "Midnight Marauders shows no art in the player view while the grid clearly displays the album cover", and it was three bugs wearing one coat — the tile, the zoom and the accent, all reading `song.coverArt` alone, the accent least visible of the three and worst, because a bar that wears a record's sleeve while its colour comes from somewhere else is making two statements about one track. The question now has one answer, `trackCoverId` in `lib/library/cover.ts` — the file's own picture, else the record's id, else nothing — and the tile, the zoom and the accent all ask it, so a bar and a cell of one album cannot now disagree about whether that album has a sleeve. The record's id rather than a sibling track's, which is what Navidrome caches one picture under for the whole record and what the grid's cell already fetches, so the two views share one server entry and one browser entry instead of one per track.
2000.nyc
·