Jersey reminder template needs division-aware image placeholders #10
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
Bug
Lineage
Discovered after jersey reminder blast on 2026-04-08. 32 boys (Kings) received emails showing Queens jersey images.
Repo
forgejo_admin/westside-emails(template placeholders) andforgejo_admin/basketball-api(send function passes image URLs)What Broke
The
jersey-reminder.mjmltemplate hardcodes Queens jersey images (IMG_4164.jpegat line 42,IMG_4165.jpegat line 78). Every parent gets Queens images regardless of division.Repro Steps
Expected Behavior
Kings parents see Kings jerseys (black/red). Queens parents see Queens jerseys (black/pink). Template uses
{{jersey_image_1}}and{{jersey_image_2}}placeholders populated by the send function based onplayer.division.Fix Required (Option B — placeholders, single template)
PR 1 — westside-emails: Replace hardcoded image URLs in
src/jersey-reminder.mjmlwith{{jersey_image_1}}and{{jersey_image_2}}placeholders. Compile to HTML.PR 2 — basketball-api: Update
send_jersey_reminder_emailinsrc/basketball_api/services/email.py:1140to passjersey_image_1andjersey_image_2to the template based onplayers[0].division. Kings images:assets/westside/jerseys/kings-home.jpegandassets/westside/jerseys/kings-away.jpeg. Queens images:assets/westside/jerseys/queens-home.jpegandassets/westside/jerseys/queens-away.jpeg.Prerequisite: Kings jersey images must be uploaded to MinIO first (separate ops ticket).
Environment
src/jersey-reminder.mjmlin westside-emailsbasketball_api/services/email.py:1140IMG_4164.jpegandIMG_4165.jpeg, need renameAcceptance Criteria
{{jersey_image_1}}and{{jersey_image_2}}placeholders (not hardcoded URLs)send_jersey_reminder_emailpasses correct image URLs based on player divisionRelated
project-westside-basketball— project this affectsstory:WS-S22— parent email communicationsScope Review: NEEDS_REFINEMENT
Review note:
review-893-2026-04-04Ticket has good bug description but needs label fixes, scope narrowing, and decomposition before execution.
arch:westside-appis wrong — fix targetswestside-emails+basketball-api. Change toarch:emailarch-emailor equivalent/tmpimage paths with persistent sourceskill-decompose-ticketfor 3-ticket split: (A) MinIO image upload, (B) template + send function fix, (C) operational resend with blast gateJersey reminder email shows wrong jersey images — needs division-aware templatesto Jersey reminder template needs division-aware image placeholdersScope Review: READY
Review note:
review-893-2026-04-04-r2Re-review after refinement — all 7 recommendations from initial review (
review-893-2026-04-04) have been addressed. Scope reduced to 4 ACs across 2 repos (template placeholders + send function). MinIO upload split to basketball-api#393. Resend deferred to separate blast-gated ticket. File targets verified, traceability complete. Ready for dispatch.