feat(public-profile): enhance public profile route and OpenGraph card… - #3256
Open
Nareshkumawat-star wants to merge 1 commit into
Open
Conversation
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
Author
|
Hi @Priyanshu-byte-coder kindly review and merge it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds public profile sharing capabilities (
/u/[username]) and dynamic OpenGraph image generation (/u/[username]/opengraph-image.tsx). This allows developers to showcase their commit streaks, 30-day contribution activity, top repositories, and languages on social platforms (Twitter, LinkedIn) and GitHub READMEs while keeping data strictly opt-in via user privacy settings (is_public).#closes : #3249
Type of Change
What Changed
src/app/u/[username]/page.tsx: Public profile page displaying GitHub avatar, handle, current & longest streak, 30-day contributions, top repositories, PR breakdown, top languages, and achievements.src/app/u/[username]/opengraph-image.tsx: Dynamic OpenGraph card generation using Next.jsImageResponse(@vercel/og) displaying avatar, streak count, and 30d commits for social embeds.src/app/api/public/[username]/route.ts: API route serving public profile payload gated byis_publiccolumn inuserstable.ShareProfileSection.tsx&CopyLinkButton.tsx: Dashboard share widget for copying public profile URLs and generating QR codes.How to Test
/dashboard/settingsand enable Public Profile./u/[your-username]./u/[username]/opengraph-image.tsx).Checklist
console.logor debug codeis_public) enforced