Skip to content

[FEAT] Add GitHub Discussions metrics widget — total discussions, answered rate, top categories #3252

Description

@Nareshkumawat-star

Is your feature request related to a problem?
DevTrack is positioned for developer productivity but misses GitHub Discussions — an increasingly important metric for open-source maintainers and developer advocates.

Describe the solution you'd like

New API route: /api/metrics/discussions

  • Use GitHub GraphQL API (/graphql) to fetch user's discussion activity
  • Return: total discussions started, total comments left, answered rate (discussions marked as answered / total), top 3 categories

New component: src/components/DiscussionsMetrics.tsx

  • Stat cards: Discussions Started, Comments Left, Answered Rate %
  • Simple bar chart: discussions by category (using Recharts)
  • Time range selector (7d / 30d / 90d)

Dashboard placement: Optional widget, toggled from a future settings/preferences page (so it only appears for maintainers who care)

Why this is distinct from the Issues widget proposal
Discussions and Issues are separate GitHub features with different APIs, different metrics (answered rate vs close time), and different audiences (community engagement vs bug tracking). This is not a duplicate of the Issues widget.

File: src/app/api/metrics/discussions/route.ts, src/components/DiscussionsMetrics.tsx

Metadata

Metadata

Labels

gssoc:assignedGSSoC: Issue assigned to a contributor

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions