Skip to content

fix: replace username with date range in card header#118

Merged
unhappychoice merged 4 commits intomainfrom
fix/card-header-date-range
Apr 7, 2026
Merged

fix: replace username with date range in card header#118
unhappychoice merged 4 commits intomainfrom
fix/card-header-date-range

Conversation

@unhappychoice
Copy link
Copy Markdown
Member

Summary

  • Remove @username from card header (redundant, already in ticker text)
  • Add date range (e.g. "Mar 30 - Apr 5, 2026") computed from ISO week number
  • Add height="48" to <img> in setup README to prevent shrinking on narrow viewports
  • Export CARD_HEIGHT constant
  • Regenerate example SVGs

…o img

- Remove @username from card header (already in ticker text)
- Add dateRange (e.g. 'Mar 30 - Apr 5, 2026') computed from ISO week
- Export CARD_HEIGHT for downstream use
- Add height='48' to img in setup README to prevent shrinking
- Regenerate example SVGs
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

- Extract isoWeekToMonday to deployer/week.ts for reuse and testability
- Add boundary value tests: year boundaries (W1 2025/2026), W53 (2020),
  Jan 1 Monday (2024 W1), last week of year (W52 2026)
- Fix render.test.ts mock to pass through real isoWeekToMonday
- Verify card dateRange E2E: weekId -> isoWeekToMonday -> formatted output
@unhappychoice unhappychoice merged commit 1072fbe into main Apr 7, 2026
3 checks passed
@unhappychoice unhappychoice deleted the fix/card-header-date-range branch April 7, 2026 03:31
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