fix: pass diamond tier colors to card template #193

Merged
cal merged 1 commits from fix/diamond-tier-colors into main 2026-04-07 05:13:04 +00:00
Owner

Summary

  • Template tier_style.html references {{ filled_bg }} for diamond quad backgrounds but it was never passed from the rendering code
  • Adds TIER_DIAMOND_COLORS mapping (T1=green, T2=blue, T3=red, T4=purple per visual spec)
  • Sets filled_bg in all 4 card rendering paths (animated batting/pitching, static batting/pitching)

Test plan

  • Deploy to dev, render a T1+ variant card, verify diamond indicator is visible with correct color
## Summary - Template `tier_style.html` references `{{ filled_bg }}` for diamond quad backgrounds but it was never passed from the rendering code - Adds `TIER_DIAMOND_COLORS` mapping (T1=green, T2=blue, T3=red, T4=purple per visual spec) - Sets `filled_bg` in all 4 card rendering paths (animated batting/pitching, static batting/pitching) ## Test plan - [ ] Deploy to dev, render a T1+ variant card, verify diamond indicator is visible with correct color
cal added 1 commit 2026-04-07 05:12:41 +00:00
The tier_style.html template references {{ filled_bg }} for diamond
quad backgrounds but it was never set in the rendering code, making
the tier indicator invisible.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Claude approved these changes 2026-04-07 05:12:55 +00:00
Dismissed
Claude left a comment
Collaborator

Approved via pd-pr

Approved via pd-pr
Claude approved these changes 2026-04-07 05:13:01 +00:00
Claude left a comment
Collaborator

Approved via pd-pr

Approved via pd-pr
cal merged commit 35fbe2082d into main 2026-04-07 05:13:04 +00:00
cal deleted branch fix/diamond-tier-colors 2026-04-07 05:13:04 +00:00
Sign in to join this conversation.
No description provided.