fix: replace hardcoded jersey image URLs with template placeholders #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "10-jersey-image-placeholders"
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?
Summary
Replace the two hardcoded Queens jersey image URLs in
jersey-reminder.mjmlwith Jinja-style template placeholders ({{jersey_image_1}}and{{jersey_image_2}}), allowing callers to supply image URLs at render time.Changes
src/jersey-reminder.mjml: Replaced hardcoded MinIO URLs for Option 1 and Option 2 jersey images with{{jersey_image_1}}and{{jersey_image_2}}respectivelyTest Plan
npx mjml src/jersey-reminder.mjml -o dist/jersey-reminder.html{{jersey_image_1}}and{{jersey_image_2}}in the<img>tagsminio-api.tail5b443a.ts.netURLs remain in the templateReview Checklist
Related Notes
Related
QA Review
Scope: 1 file changed, 2 insertions, 2 deletions.
Diff Review
src/jersey-reminder.mjml: Two hardcoded MinIO image URLs replaced with{{jersey_image_1}}and{{jersey_image_2}}. Exact substitution, no surrounding markup changed. Alt text, width, border-radius, and padding all preserved.Checks
{{jersey_image_1}},{{jersey_image_2}})minio-api.tail5b443a.ts.netURLs remain in the templateCloses #10)10-jersey-image-placeholders)Notes
dist/is gitignored, so compiled output is correctly excluded from the commit. Callers will need to compile after checkout.Closes #10in the PR body will auto-close the issue on merge. If Part 2 is still pending, consider changing toPart of #10to avoid premature closure.VERDICT: APPROVED
PR #11 Review
DOMAIN REVIEW
Tech stack: MJML email templates (HTML email domain).
The change is surgical: two hardcoded MinIO image URLs replaced with Jinja-style placeholders in
src/jersey-reminder.mjml.https://minio-api.tail5b443a.ts.net/assets/westside/jerseys/IMG_4164.jpegreplaced with{{jersey_image_1}}-- correct.https://minio-api.tail5b443a.ts.net/assets/westside/jerseys/IMG_4165.jpegreplaced with{{jersey_image_2}}-- correct.alt,width,border-radius) are untouched.{{name}}and{{jersey_url}}are outside the changed line ranges and unaffected.Observation: The PR body mentions compiled HTML should also be updated, but the diff shows only 1 file changed (
src/jersey-reminder.mjml). If the repo convention is to commit compiled HTML todist/, the compiled output is missing from this PR. If compilation happens downstream (CI or at render time), this is fine. Flagging as a nit since the PR body's own test plan says "Compile MJML" but no compiled artifact is in the diff.BLOCKERS
None.
NITS
dist/jersey-reminder.htmlis tracked in the repo, it should be recompiled and committed to match the MJML source. The diff only shows the MJML change. If it is not tracked (gitignored), disregard.SOP COMPLIANCE
10-jersey-image-placeholdersmatches issue #10)Closes #10)PROCESS OBSERVATIONS
Clean, minimal change. Low change failure risk. The placeholder approach correctly decouples image assets from the template, enabling division-aware image injection at render time as described in issue #10.
VERDICT: APPROVED