feat(profile): add dedicated developer profile pages and API - #209
Merged
Conversation
- Add /user/[username] dynamic route with SSR metadata and JSON-LD - Create UserProfileClient dashboard with score breakdown, top work, and transparency signals - Add /api/user/[username] endpoint and getUserProfile utility with automatic DB syncing - Update leaderboard and comparison views to link to developer profiles - Add full i18n support (EN/AR) and comprehensive unit tests
|
@ws-rush is attempting to deploy a commit to the osama's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Thank you for the pull request! ✅ A maintainer will review this soon. Please be patient while we take a look. 🙌 |
- Pass ?country= parameter when navigating from country leaderboards - Update back button to return to specific country leaderboard with fallback - Add breadcrumb navigation (Home / Leaderboards / Country / User) - Add Arabic and English localization for back navigation and breadcrumbs
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
O2sa
approved these changes
Aug 30, 2026
Owner
|
✨ Thank you, @ws-rush! Another great contribution merged! 🚀 We truly appreciate your continued support! If you find this tool useful, please consider giving us a ⭐ star on GitHub—it helps more developers find our work and motivates us to keep improving! |
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
Introduces dedicated developer profile pages at
/user/[username], allowing users to view, share, and compare individual developer impact analytics.Key Changes
/user/[username]): Server-rendered developer profile with dynamic OpenGraph meta tags, Twitter card previews, and JSON-LD structured data.UserProfileClient):/api/user/[username]): Scored user analytics endpoint with robust error handling (404 for missing GitHub users, 429 for rate limits).lib/user.ts): ReusablegetUserProfileutility that detects country and asynchronously syncs records to PostgreSQL database while updating cache.?username1=...&username2=...and?user1=...&user2=...formats in addition to repeated?username=....Testing
test/api/user.route.test.tscovering successful score calculation, 404 not-found handling, 429 rate-limiting, and parameter validation.14 test files passed / 111 tests).