Is your feature request related to a problem? Please describe.
Give users the ability to view their contribution monolith for any previous year. Currently, CommitPulse shows the last 365 days of activity. A "Time Machine" feature would allow a user to see what their contribution graph looked like in 2022, 2021, etc. This is great for seeing long-term growth and reminiscing about past projects.
Describe the solution you'd like
- New URL Parameter: Add a &year=YYYY parameter (e.g., &year=2022).
- Date Range Logic: In lib/github.ts, when the year parameter is present, the from and to dates for the GraphQL query should be adjusted to YYYY-01-01T00:00:00Z and YYYY-12-31T23:59:59Z respectively.
- API Handling: The API route in app/api/streak/route.ts will need to validate the year parameter. If it's not provided, it should default to the current behavior (last 365 days). The streak calculation logic in lib/calculate.ts would also need to be adapted to work within the context of a past year (e.g., "current streak" would become "longest streak in that year").
Describe alternatives you've considered
No response
Is your feature request related to a problem? Please describe.
Give users the ability to view their contribution monolith for any previous year. Currently, CommitPulse shows the last 365 days of activity. A "Time Machine" feature would allow a user to see what their contribution graph looked like in 2022, 2021, etc. This is great for seeing long-term growth and reminiscing about past projects.
Describe the solution you'd like
Describe alternatives you've considered
No response