[GOOD FIRST ISSUE] Display relative last-fetch timestamp in each widget footer
Summary
DashboardHeader shows global last-updated time but individual widgets have no per-widget timestamp. Users can't tell if one widget has stale data.
Expected Behaviour
Each widget shows a subtle footer: 'Updated 3 minutes ago' that recalculates every minute.
Implementation Notes
- Accept lastFetched: Date prop in each widget
- setInterval hook recalculates relative string every 60s
- Format: 'just now' / 'N min ago' / 'N hours ago'
- Style: text-xs text-[var(--muted-foreground)]
GSSoC Info
- Difficulty: Beginner — 20 pts
- Area: UI / DX
Hi @Priyanshu-byte-coder , I’d like to work on this issue.
My approach is to add a lastFetched prop to each widget and create a small utility/helper to generate relative update times such as “just now”, “3 min ago”, or “2 hours ago”. I’ll use a setInterval inside a useEffect hook to recalculate the displayed time every 60 seconds so the UI stays updated dynamically.
I also plan to keep the implementation reusable and lightweight, potentially extracting the logic into a custom hook for cleaner integration across widgets.
I have understood the issue and would love to contribute to it in GirlScript Summer of Code.
Hi @Priyanshu-byte-coder 👋
I’m a GSSoC'26 contributor and would like to work on issue #217.
I went through the issue and understood that widgets currently lack individual update indicators, making it difficult to know whether specific data is stale. I’d like to implement a reusable solution by adding a lastFetched prop and displaying a relative timestamp such as “just now”, “3 min ago”, or “2 hours ago”, with automatic updates at regular intervals.
Please assign this issue to me. Thank you!
Hi, I would like to work on this issue under GSSoC 2026.
I can add per-widget relative timestamps by introducing a lastFetched prop, implementing a setInterval hook to refresh the time string every 60 seconds, and displaying subtle footer text like “just now”, “N min ago”, or “N hours ago” using the muted foreground styling.
Please assign this issue to me.
Hi, I am a GSSoC 2026 contributor and would like to work on this.
Hi @Priyanshu-byte-coder
I noticed this issue has been assigned for about a week, so I wanted to express my interest in contributing in case it becomes available again due to inactivity.
I’ve already gone through the issue requirements and explored the expected implementation flow. My plan would be to create a reusable relative time utility/custom hook that can handle formatting like “just now”, “N min ago”, and “N hours ago” while automatically refreshing every 60 seconds using a lightweight interval-based update.
I would also ensure the solution remains scalable and clean by:
- Passing a "lastFetched" prop to widgets in a consistent way
- Avoiding unnecessary re-renders
- Keeping the footer UI subtle with the provided muted styling
- Making the logic reusable across all dashboard widgets for future maintainability
I’d be happy to start working on it immediately if the issue gets unassigned or reassigned.
Thank you!
hiii @Priyanshu-byte-coder i would like to work on this issue please assign it to me under GSSoC'26.
@aarushlohit This issue is already taken by @Mash4-4-4-4. Check other open issues!
Hey @Priyanshu-byte-coder, I'm a GSSoC 26 contributor and would like to work on this issue. Please assign it to me. /claim /assign
/assign
Hey @Mash4-4-4-4 — this issue was assigned a while back with no recent activity. Unassigning so it's available for Hacktoberfest contributors. Still working on it? Comment and we'll reassign you.
Assigned to @Priyanshu-byte-coder! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!
Done: widgets show when their data was last fetched.
✅ Closed as completed!
If DevTrack has been useful, a ⭐ star on the repo helps the project grow and reach more developers.