Skip to content

feat(dashboard): add manual "Sync Data" refresh button (#2406)#2786

Open
Kokila-chandrakar wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
Kokila-chandrakar:feat/issue-2406-sync-data-button
Open

feat(dashboard): add manual "Sync Data" refresh button (#2406)#2786
Kokila-chandrakar wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
Kokila-chandrakar:feat/issue-2406-sync-data-button

Conversation

@Kokila-chandrakar

Copy link
Copy Markdown
Contributor

Description

Fixes #2406

What was added

  • New SyncButton component (src/components/SyncButton.tsx)
    • Uses RefreshCw icon from lucide-react
    • Applies animate-spin Tailwind class during active sync
    • Shows last-synced time in tooltip
  • Placed in DashboardHeader top-right alongside existing controls
  • Uses router.refresh() (Next.js App Router) to re-fetch server data without a full browser reload

Pillar

  • UX Enhancement / Feature

Checklist

  • Tested locally
  • npm run lint passes
  • npm run type-check passes
  • Single focused commit

@github-actions github-actions Bot added type:bug GSSoC type bonus: bug fix type:feature GSSoC type bonus: new feature type:design GSSoC type bonus: UI/design (+10 pts) type:performance GSSoC type bonus: performance (+15 pts) gssoc26 GSSoC 2026 contribution labels Jun 24, 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

@Kokila-chandrakar Kokila-chandrakar force-pushed the feat/issue-2406-sync-data-button branch from a8a037c to bc70429 Compare June 24, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:bug GSSoC type bonus: bug fix type:design GSSoC type bonus: UI/design (+10 pts) type:feature GSSoC type bonus: new feature type:performance GSSoC type bonus: performance (+15 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT/UX]: Add a manual "Sync Data" refresh button to the dashboard

1 participant