Skip to content

[FEAT] Add PR status donut chart (open/merged/closed) to PRMetrics widget #222

@Priyanshu-byte-coder

Description

@Priyanshu-byte-coder

Summary

PRMetrics shows PR counts but no visual breakdown of open vs merged vs closed PRs. A donut chart would make the distribution immediately clear.

Expected Behaviour

A donut/pie chart showing:

  • Open PRs (accent color)
  • Merged PRs (green)
  • Closed without merge (red/muted)

With a legend below. Total PR count in the center.

Implementation Notes

  • Recharts PieChart is already a dependency — use it
  • Data: { open, merged, closed } from existing PR metrics API response
  • Center label: '{total} PRs'
  • Hover tooltip showing count and percentage
  • No hardcoded colors — use var(--accent), emerald-500, var(--muted-foreground)

GSSoC Info

  • Difficulty: Intermediate — 35 pts
  • Area: UI / Data Visualization

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgssoc26GSSoC 2026 contributionlevel:intermediateGSSoC: Intermediate difficulty (35 pts)type:designGSSoC type bonus: UI/design (+10 pts)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions