devtrack icon indicating copy to clipboard operation
devtrack copied to clipboard

[GOOD FIRST ISSUE] Add empty state to PRMetrics widget when user has zero PRs

Open Priyanshu-byte-coder opened this issue 6 months ago • 11 comments

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

Priyanshu-byte-coder avatar May 17 '26 05:05 Priyanshu-byte-coder

Hi, @Priyanshu-byte-coder , I would like to work under this issue Please assign it to me.

mrunalC27 avatar May 17 '26 05:05 mrunalC27

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 TopRepos empty-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!

bhavyaxtech avatar May 17 '26 06:05 bhavyaxtech

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.

Jyoti1-pog avatar May 18 '26 15:05 Jyoti1-pog

can U Assign this ISSue to Me

Akash1510 avatar May 28 '26 14:05 Akash1510

hi @Priyanshu-byte-coder i would like to work on this issue. Could you please assign tis to me?

Suneeta28 avatar Jun 18 '26 09:06 Suneeta28

@Suneeta28 This issue is already taken by @mrunalC27. Check other open issues!

github-actions[bot] avatar Jun 18 '26 09:06 github-actions[bot]

Hi @Priyanshu-byte-coder,

I would like to work on this issue under GSSoC'26.

My approach would be:

  • Locate the PRMetrics component 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 TopRepos and use var(--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 avatar Jun 21 '26 06:06 ParidhiMis

@ParidhiMis This issue is already taken by @mrunalC27. Check other open issues!

github-actions[bot] avatar Jun 21 '26 06:06 github-actions[bot]

please assign

vaishnavi003-svg avatar Jun 30 '26 15:06 vaishnavi003-svg

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.

Priyanshu-byte-coder avatar Oct 14 '26 18:10 Priyanshu-byte-coder

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!

github-actions[bot] avatar Oct 14 '26 18:10 github-actions[bot]