Skip to content

feat: add last synced timestamp to dashboard header (#186)#1298

Open
Tannuu18 wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
Tannuu18:feat/issue-186-dashboard-header-timestamp
Open

feat: add last synced timestamp to dashboard header (#186)#1298
Tannuu18 wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
Tannuu18:feat/issue-186-dashboard-header-timestamp

Conversation

@Tannuu18
Copy link
Copy Markdown
Contributor

Summary

Brief description of what this PR does.

Adds a global dashboard sync timestamp in the header so users can see how fresh their metrics are.

Closes #186

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup

Changes Made

  • Added a dashboard-scoped sync context/provider to track the last successful widget fetch.
  • Updated the DashboardHeader to show a muted “Synced just now” / “Synced X min ago” label.
  • Added a 60-second interval so the displayed timestamp stays current.
  • Kept the timestamp hidden until the first successful sync happens.

How to Test

Steps for the reviewer to verify this works:

  1. Open the dashboard.
  2. Wait for any widget to finish loading data.
  3. Confirm the header shows a small muted sync timestamp.
  4. Wait a minute and confirm the timestamp increments as expected.
  5. Refresh the page and confirm the sync line stays hidden until the first fetch completes.

Screenshots (if UI change)

image image

Checklist

  • Linked issue in summary
  • npm run lint passes locally
  • No TypeScript errors (npm run type-check)
  • Self-reviewed the diff
  • Added/updated tests if applicable

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

@Tannuu18 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature labels May 27, 2026
@github-actions
Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GOOD FIRST ISSUE] Add 'last synced' timestamp to DashboardHeader

1 participant