New frontend/js/art.js builds a thumbnail that starts as a placeholder
and swaps itself for the real cover once (if) it resolves, fetched
via the new /api/v1/art/album endpoint with the existing bearer-auth
transport and handed to the browser as a blob: object URL (no
query-string tokens, no hotlinking).
Wired into all four places a track/album appears: the song page's
glowing display, the dashboard's "Most played > Albums" list, the
dashboard's "Recently played" list, and the full History page -
Artists/Tracks rankings are left alone.
Also fixes a real reliability gap found during manual testing:
Cover Art Archive's existence check (a HEAD request, redirected
through archive.org) had no retry at all, unlike the MusicBrainz
search next to it, and an occasional slow/flaky response there was
enough to fail a lookup outright. It now retries the same way.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Previously the song page was a plain heading, a bare metadata list
and a history log. Now it gets its own moment on the glowing
amber display, reusing the dashboard's .panel/.display/.readouts/
.spectrum components verbatim: the track name lit up like a
now-playing display, play/first-played/last-played readouts, and a
90-day per-track play-activity chart.
Extracted the segmented spectrum chart out of dashboard.js into a
shared frontend/js/spectrum.js so both pages use the same renderer;
the dashboard's own output is unchanged.
Verified manually in-browser: the panel renders correctly, an
artist name with a slash round-trips, the not-found and
no-query-params states render into the panel, and the dashboard's
spectrum chart is pixel-for-pixel unchanged after the extraction.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
New song.html shows a song's aggregated metadata and full play
history (paginated), reached from the dashboard via a debounced
search box or by clicking a track in the "Most played" list.
Verified manually in-browser: search, click-through from Most played
(including an artist name with a slash), the not-found and
no-query-params states, and the pager.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>