Skip to content

feat(dashboard): Add a "Last refreshed" timestamp to Dashboard tiles - #209

Open
codeurluce wants to merge 1 commit into
actyze:mainfrom
codeurluce:feat/dashboard-last-refreshed
Open

feat(dashboard): Add a "Last refreshed" timestamp to Dashboard tiles#209
codeurluce wants to merge 1 commit into
actyze:mainfrom
codeurluce:feat/dashboard-last-refreshed

Conversation

@codeurluce

Copy link
Copy Markdown
Contributor

Summary

This PR adds a "Last updated Xm ago" timestamp to dashboard tiles to improve data freshness visibility for users.

Each tile now displays how recently its data was refreshed using date-fns (formatDistanceToNowStrict).

Changes

  • Added formatDistanceToNowStrict and parseISO from date-fns
  • Created helper formatLastUpdated() to format cache timestamps
  • Display "Last updated Xm ago" in tile footer
  • Uses tileCache[tile.id].cached_at as source of truth

Behavior

  • Each tile shows a footer, e.g., Last updated 2 minutes ago.
  • Footer is only displayed when cached_at exists
  • Automatically updates on refresh / re-render when cache is updated

Notes

Low

  • Frontend-only change
  • No breaking changes
  • No API or backend impact
  • Screenshot Capture d'écran 2026-06-16 144804

Fixes #162

@codeurluce

Copy link
Copy Markdown
Contributor Author

Hi, @roman1887 @uddish
just a quick reminder of this pr.

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.

Add a "Last refreshed" timestamp to Dashboard tiles

1 participant