Skip to content

Add hero stats last updated#45

Merged
Irozuku merged 4 commits into
mainfrom
feat/hero-stats-last-updated
Jul 8, 2026
Merged

Add hero stats last updated#45
Irozuku merged 4 commits into
mainfrom
feat/hero-stats-last-updated

Conversation

@Creylay

@Creylay Creylay commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Displays Last update: {{date}} below the downloads/stars numbers in the hero, using the new updatedAt field (ISO 8601 UTC) now returned by GET /stats.
  • The timestamp is converted to the visitor's local time via new Date(...) and formatted according to the active locale (en/es/pt).
  • If updatedAt is missing (e.g. when falling back to the placeholder without a live backend), the line is simply omitted — no fake date is shown.

Details

  • lib/stats.ts: adds updatedAt?: string to the Stats type.
  • components/community/routes/HomeRoute.tsx: adds formatUpdatedAt(), renders the line conditionally.
  • app/globals.css: restructures .hero-top-stats to include the new line, keeping downloads/stars/last-update equally spaced.
  • public/locales/{en,es,pt}/home.json: adds the hero.stat.updated key.

@Irozuku
Irozuku merged commit 23fbb95 into main Jul 8, 2026
1 of 3 checks passed
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