feat: add refresh button to each dashboard widget#327
Conversation
|
@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. |
Priyanshu-byte-coder
left a comment
There was a problem hiding this comment.
Good refactor. Extracting fetch into useCallback is the right pattern — lets the button reuse it without duplicating logic. aria-busy, aria-label, disabled-during-load all correct. CSS vars throughout. Covers all 4 widgets (ContributionGraph, PRMetrics, StreakTracker, TopRepos). Approved.
|
PR is approved but has a conflict with the just-merged #288 (both modify ContributionGraph.tsx). Please rebase on latest main and resolve the conflict — should be straightforward to combine both changes. Then it'll merge automatically. |
|
The refactor to Push once rebased — will merge. |
|
Hi @Tannuu18 — this PR has a merge conflict with git fetch upstream
git rebase upstream/main
# resolve conflicts, then:
git push --force-with-leaseOnce rebased, we'll review and merge. |
51063e6 to
6f2cb69
Compare
|
heyy @Priyanshu-byte-coder The E2E smoke test is failing because the WebServer is unable to resolve the database domain (ENOTFOUND placeholder.supabase.co), causing the component rendering to time out. The Lint, Build, and Type checks all pass successfully! |
|
PR now has merge conflicts — several of the files it touches ( |
eca0e82 to
cef36cd
Compare
|
Please this time do the timely merge for this one. As everytime it's getting difficult to merge all the changes with others, as it's like working on two features. |
Summary
Adds per-widget refresh controls to dashboard cards so users can reload individual widgets without refreshing the full page.
Closes #179
Type of Change
Changes Made
StreakTracker
ContributionGraph
PRMetrics
TopRepos
How to Test
Screenshots (if UI change)
Checklist
npm run lintpasses locallynpm run type-check)