Fix jersey page images: correct MinIO URLs and division-conditional rendering #241
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/westside-app#241
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Follow-up to #236. PR #240 deployed with broken relative playground image paths. PR #238/#239 were stale/conflicted. This issue replaces all prior image fix attempts with the correct mapping.
Repo
forgejo_admin/westside-landingUser Story
As a parent clicking a jersey link from email
I want to see the correct product images for my child's division — jersey-only for the reversible option, full package for the warmup option
So that I know exactly what I'm buying
Context
The jersey page at
src/routes/(public)/jersey/+page.sveltecurrently has broken image paths (assets/images/gear/...) that don't exist on the production site. Images must come from MinIO with division-conditional rendering.Image mapping (verified on MinIO, all return 200):
queens-home.jpeg(jersey+shorts, NO warmup)kings-home.jpeg(jersey+shorts, NO warmup)queens-away-new.jpeg(full package WITH warmup)kings-away-new.jpeg(full package WITH warmup)Base URL:
https://minio-api.tail5b443a.ts.net/assets/westside/jerseys/The
divisionvariable already exists in the script block (fromGET /jersey/player-info). Values:'girls'or'boys'.Playground source approved at:
https://playground.tail5b443a.ts.net/westside/jersey.html?v=9File Targets
Files the agent should modify:
src/routes/(public)/jersey/+page.svelte— replace the two<img>src attributes with MinIO URLs conditional ondivisionFiles the agent should NOT touch:
src/app.css— no CSS changes needed<script>block — do not modifyAcceptance Criteria
{division === 'girls' ? 'queens-home.jpeg' : 'kings-home.jpeg'}— shows jersey+shorts, NO warmup{division === 'girls' ? 'queens-away-new.jpeg' : 'kings-away-new.jpeg'}— shows full package WITH warmupTest Expectations
Constraints
<script>block<style>blockswidth: 100%; display: block;onlyChecklist
Related
Closes #236