[GOOD FIRST ISSUE] Add empty state to PRMetrics widget when user has zero PRs
Summary
PRMetrics shows 0 values and empty charts when a user has no PRs. Looks like a loading error with no explanation.
Expected Behaviour
When totalPRs === 0, show: icon + 'No pull requests found. Open your first PR to see metrics here.'
Implementation Notes
- Add zero-check after data loads
- Follow empty-state pattern from TopRepos
- Use var(--muted-foreground) for text
GSSoC Info
- Difficulty: Beginner — 20 pts
- Area: UI / DX
Hi, @Priyanshu-byte-coder , I would like to work under this issue Please assign it to me.
Hi @Priyanshu-byte-coder
I’d like to work on this issue.
Plan:
- Add a zero-state check when
totalPRs === 0 - Display a friendly empty-state message with icon support
- Match the existing
TopReposempty-state UI pattern - Use
var(--muted-foreground)styling for consistency
Expected result: “No pull requests found. Open your first PR to see metrics here.”
Please assign this issue to me. Thanks!
Hi, I would like to work on this issue under GSSoC 2026.
I can implement a proper empty state for PRMetrics by adding a zero-check after data loads and displaying an informative message with an icon when totalPRs === 0, following the existing TopRepos empty-state pattern and using var(--muted-foreground) styling.
Please assign this issue to me.
can U Assign this ISSue to Me
hi @Priyanshu-byte-coder i would like to work on this issue. Could you please assign tis to me?
@Suneeta28 This issue is already taken by @mrunalC27. Check other open issues!
Hi @Priyanshu-byte-coder,
I would like to work on this issue under GSSoC'26.
My approach would be:
- Locate the
PRMetricscomponent and identify where the metrics are rendered after data loading. - Add a conditional check for
totalPRs === 0. - Display an empty state with an icon and the message: "No pull requests found. Open your first PR to see metrics here."
- Follow the existing empty-state pattern used in
TopReposand usevar(--muted-foreground)for styling to maintain UI consistency. - Verify that the existing charts and metrics remain unaffected for users with PR data.
Please assign this issue to me. Thank you!
@ParidhiMis This issue is already taken by @mrunalC27. Check other open issues!
please assign
Hey @mrunalC27 — 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!