Skip to content

fix(components): show latest usage weeks on compact calendars - #62

Merged
wibus-wee merged 1 commit into
LodyAI:mainfrom
hcz-czh:fix/usage-heatmap-latest-scroll
Aug 27, 2026
Merged

wibus-wee merged 1 commit into
LodyAI:mainfrom
hcz-czh:fix/usage-heatmap-latest-scroll

Conversation

@hcz-czh

@hcz-czh hcz-czh commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • initialize the usage heatmap at its right edge when the calendar overflows
  • keep the most recent activity visible by default in the 30-day and all-time ranges
  • apply the initial position only on mount so subsequent user scrolling is preserved

Verification

  • pnpm --filter @lody/components typecheck
  • pnpm --filter @lody/components exec vitest run tests/usage-calendar-model.test.ts (9 tests)
  • targeted Prettier and Oxlint checks on the changed component
  • git diff --check
  • verified the 30-day and all-time Storybook stories initialize at the right edge at 640px
  • verified the calendar has no extra horizontal scrolling at 1280px

Initialize the usage heatmap scroller at its right edge so recent activity is visible when the calendar overflows. Preserve subsequent user-controlled scrolling by applying the position only on mount.

Model: GPT-5

@wibus-wee wibus-wee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for your contribution!

@wibus-wee
wibus-wee merged commit 1bcdc80 into LodyAI:main Aug 27, 2026
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.

2 participants