feat: shareable public profile page /u/[username] with opt-in public stats (#2117)#2203
Open
IshitaSingh0822 wants to merge 2 commits into
Open
Conversation
|
@IshitaSingh0822 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. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
…stats - Add public_widgets jsonb column migration - Add widget selector checkboxes in settings page - Add GitHub avatar, member-since, View on GitHub link - Add language breakdown and PR count widgets gated by public_widgets - Add Powered by DevTrack footer badge Closes Priyanshu-byte-coder#2117
2816e40 to
883520b
Compare
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
Implements the shareable public profile page at
/u/[username]with opt-in public stats as described in #2117.Closes #2117
Type of Change
Changes Made
public_widgetsjsonb column migration with default["streak", "contributions"]public_widgetsin GET and PATCH with graceful tier fallbackpublic-profile-data.tsto exposePublicWidgetKeytype,memberSince, andpublicWidgetsfieldsHow to Test
/dashboard/settings/u/[your-github-username]and verify only selected widgets appearGET /api/public/[username]without auth and verify it returns statsScreenshots (if UI change)
N/A
Checklist
npm run lintpasses locallynpm run type-check)Accessibility Checklist
Additional Notes
The
public_widgetscolumn falls back gracefully if the migration has not been run yet so no breaking changes for existing deployments.