Skip to content

refactor(renderers): extract getDecordImage helper for StatCard decor variants#54

Merged
evirunurm merged 1 commit into
feat/migrate-to-satorifrom
refactor/stat-card-decor-image-helper
Mar 20, 2026
Merged

refactor(renderers): extract getDecordImage helper for StatCard decor variants#54
evirunurm merged 1 commit into
feat/migrate-to-satorifrom
refactor/stat-card-decor-image-helper

Conversation

@evirunurm
Copy link
Copy Markdown
Owner

Summary

  • Introduces a DecorImage union type ('penguin' | 'no_penguin' | 'no_penguin_white') to replace the untyped decorSrc string
  • Extracts a getDecordImage helper function that maps each DecorImage variant to its corresponding <img> element with the correct dimensions
  • Replaces the inline <img> in the render output with a call to the new helper

Test plan

  • Verify all three decor variants (penguin, no_penguin, no_penguin_white) render correctly in the stat card
  • Confirm no visual regression in card output

🤖 Generated with Claude Code

@evirunurm evirunurm self-assigned this Mar 20, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
github-stats-uvqq Ready Ready Preview, Comment Mar 20, 2026 0:23am

@evirunurm evirunurm merged commit 4c88d63 into feat/migrate-to-satori Mar 20, 2026
2 checks passed
@evirunurm evirunurm deleted the refactor/stat-card-decor-image-helper branch March 20, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant