Skip to content

Add a Gists stat chip to the profile header#1830

Open
Muragesh-24 wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
Muragesh-24:nn
Open

Add a Gists stat chip to the profile header#1830
Muragesh-24 wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
Muragesh-24:nn

Conversation

@Muragesh-24
Copy link
Copy Markdown
Contributor

Summary

Added GitHub gist count support to the public profile header so users with public gists now see a linked N Gists chip.


closes #212

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup

Changes Made

  • Fetched public_gists from the GitHub REST GET /users/{username} endpoint
  • Added publicGists to the public profile data model
  • Rendered a conditional gist chip in the public profile header
  • Linked the chip to the user's GitHub gists page
  • Added unit tests for the new gist fetch helper

How to Test

Steps for the reviewer to verify this works:

  1. Open a public profile with at least one public gist
  2. Verify a N Gists chip appears in the header
  3. Click the chip and confirm it opens the user's GitHub gists page
  4. Open a profile with zero public gists and confirm the chip is hidden

Checklist

  • Linked issue in summary
  • npm run lint passes locally
  • No TypeScript errors (npm run type-check)
  • Self-reviewed the diff
  • Added/updated tests if applicable

Accessibility Checklist

  • Keyboard navigation works for the gist chip link
  • The link has a clear destination
  • The chip remains hidden when not applicable

Additional Notes

The gist chip is only shown when public_gists > 0 to keep the header clean for users without public gists.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@Muragesh-24 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.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts) labels Jun 1, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GOOD FIRST ISSUE] Show total public gist count on public profile page

1 participant