fix: use MinIO URLs for jersey page images #239

Closed
forgejo_admin wants to merge 1 commit from 236-fix-jersey-image-urls into main
Contributor

Summary

Add division-aware jersey product images to the jersey ordering page. Each card now shows the relevant jersey photo from MinIO, based on whether the player is in the Kings (boys) or Queens (girls) division.

Changes

  • src/routes/(app)/jersey/+page.svelte — Added getJerseyImage() helper that returns the correct MinIO URL based on division and option key. Added <img> elements to jersey cards (reversible and jersey_warmup options). Added scoped style for .jersey-card-img.

Test Plan

  • Open /jersey?token=... for a Kings player — reversible card shows kings-home.jpeg, warmup card shows kings-warmup.jpeg
  • Open /jersey?token=... for a Queens player — reversible card shows queens-home.jpeg, warmup card shows queens-away.jpeg
  • Opt-out card has no image (expected)
  • Images load lazily and scale responsively

Review Checklist

  • Code changes are minimal and focused
  • No playground/relative image paths remain
  • Images conditioned on division state variable

None.

Closes #236

## Summary Add division-aware jersey product images to the jersey ordering page. Each card now shows the relevant jersey photo from MinIO, based on whether the player is in the Kings (boys) or Queens (girls) division. ## Changes - `src/routes/(app)/jersey/+page.svelte` — Added `getJerseyImage()` helper that returns the correct MinIO URL based on division and option key. Added `<img>` elements to jersey cards (reversible and jersey_warmup options). Added scoped style for `.jersey-card-img`. ## Test Plan - Open `/jersey?token=...` for a Kings player — reversible card shows `kings-home.jpeg`, warmup card shows `kings-warmup.jpeg` - Open `/jersey?token=...` for a Queens player — reversible card shows `queens-home.jpeg`, warmup card shows `queens-away.jpeg` - Opt-out card has no image (expected) - Images load lazily and scale responsively ## Review Checklist - [x] Code changes are minimal and focused - [x] No playground/relative image paths remain - [x] Images conditioned on division state variable ## Related Notes None. ## Related Closes #236
fix: use MinIO URLs for jersey page images
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
c39ba43a0c
Add division-aware jersey product images to the ordering page cards.
Kings division shows kings-home and kings-warmup images, Queens division
shows queens-home and queens-away images from MinIO storage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
forgejo_admin closed this pull request 2026-04-09 13:20:27 +00:00
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ldraney/westside-app!239
No description provided.