Skip to content

feat(spa): full-size album art lightbox on album detail page (#200) - #257

Merged
benders merged 1 commit into
mainfrom
feature/200-album-art-lightbox
Jul 13, 2026
Merged

feat(spa): full-size album art lightbox on album detail page (#200)#257
benders merged 1 commit into
mainfrom
feature/200-album-art-lightbox

Conversation

@benders

@benders benders commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Closes #200.

Clicking the cover art on the album detail page (ReleaseGroupPage) now opens a full-size lightbox — a fixed full-viewport overlay with a dimmed backdrop and the image centered, constrained to the viewport.

Behavior

  • Cover art is wrapped in a keyboard-accessible <button> (aria-label) — only rendered when the album has cover art.
  • Lightbox requests full-size art (artUrl without a size param).
  • Dismiss: click anywhere not on the image, or press Escape (document-level listener, cleaned up on unmount). Clicking the image itself does not dismiss.
  • Overlay is role="dialog" aria-modal="true".

Implementation

  • New reusable frontend/src/components/Lightbox.tsx + Lightbox.test.tsx (4 tests).
  • ReleaseGroupPage.tsx: lightboxOpen state + button wrapper; 3 new page-level tests.

Verification

  • pnpm verify green: hub + frontend suites (133 frontend tests incl. 7 new), typecheck, boundary lint.
  • pnpm lint zero errors/warnings.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SwwPcrohddTUN7kmQVedQC

…200)

Clicking the cover on ReleaseGroupPage opens a full-viewport lightbox
(full-size art via artUrl without a size param). Dismiss by clicking
anywhere off the image or pressing Escape; clicking the image itself
does not dismiss. Cover is now a keyboard-accessible button.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SwwPcrohddTUN7kmQVedQC
@benders
benders marked this pull request as ready for review July 13, 2026 15:58
@benders
benders merged commit 107f2bd into main Jul 13, 2026
2 checks passed
@benders
benders deleted the feature/200-album-art-lightbox branch July 13, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking album art on the album detail page should show the image full size

2 participants