Repository navigation
feat: choose an artist's portrait and banner from the artist page - #310
Conversation
RFC-013 step 3. The artist header draws the chosen banner behind it, framed at a fixed point as the desktop frames it, or else the portrait blurred, under a gradient that keeps the title legible. Owners and managers get Change portrait and Change banner, which send the file as its own bytes, and a way back to the automatic image once one was chosen; a chosen portrait says so instead of crediting Deezer. Listeners see the images and no control. Signed-off-by: InstaZDLL <github.105mh@8shield.net>
Signed-off-by: InstaZDLL <github.105mh@8shield.net>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Step 3 of RFC-013: the web client draws the chosen images and lets owners and managers choose them. The server side is #309.
The artist header
center 30%, the fixed framing the desktop uses (no cropping, as the RFC says);Choosing (owners and managers only)
PUT /artists/{id}/image/{kind}). The page then shows the server's answer immediately and re-reads the artist and the artist list.DELETE).role="alert": "larger than 10 MB" for 413, "choose a JPEG, PNG or WebP image" for 422, a generic message otherwise. Success is announced in arole="status".Client API
ArtistDetailgainslibrary_id,banner_hashandimage_choice.setArtistImageandremoveArtistImageare added.Tests
Validation
refresh.css),tsc, 190 unit tests, buildSummary by CodeRabbit