feat(recap): add rolling 12-month recap page #162
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
javascript
question
severity: high
severity: low
severity: medium
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
isyuricunha/website!162
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/recap-page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adds a public
/recappage that aggregates a rolling window of the last twelve months instead of per-year pages, so it never needs annual maintenance. Available in all seven locales.Sections
wakatime.getStatstRPC procedure using the documentedlast_yearrange (the previouslast_12_monthsrange no longer exists in the current API docs; verified live). Prefersincluding_other_languagetotals and degrades tonullon request failure, matching the resilience contract of the existing routers.lastfmrange procedures with ayear_termoption mapped to Last.fm's12monthperiod for top artists and tracks. Backwards compatible: the music page keeps using the original three ranges.recapRouterexposingsummary(post counts deduped across translations),topViewed, andtopLiked. Views and likes are all-time database counters with no timestamps, so those lists are explicitly labeled as all-time instead of pretending to be scoped to the window.Locale link handling
prefixPathnamein next-intl concatenates blindly, so a href that is already locale-prefixed would double-prefix for non-default locales (/pt/pt/blog/...). Same-locale post links pass an unprefixed path and let next-intl prefix exactly once; posts that only exist in another locale render a plain localized<a>.Also
recaplabel in all locale files)Validation
pnpm test:unit: 292 tests / 70 files passingturbo type-check: cleannext build: green,/[locale]/recapprerendered for all localesThe latest updates on your projects. Learn more about Vercel for GitHub.