Skip to content

Conversation

@ChristosBouronikos
Copy link

  • Fixed bug where current year showed data from previous year
  • Fixed months displaying in wrong order
  • Now displays full year grid with only active days colored

Fixes Issue #488

- Fixed bug where current year showed data from previous year
- Fixed months displaying in wrong order
- Now displays full year grid with only active days colored

Fixes Issue devmount#488
Copilot AI review requested due to automatic review settings January 23, 2026 21:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the year heatmap display where the current year showed data from the previous year and months were displaying in the wrong order. The fix changes the date filtering logic to properly filter by calendar year and generates a full year grid with zero values for days without data.

Changes:

  • Replaced rolling 365-day window filtering with calendar year filtering
  • Added full year date generation (Jan 1 to Dec 31) with zero-padding for missing days
  • Simplified the logic by removing the special case for the current year

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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