feat: Add dynamic Badge & Stats Share Card generator in Contributor leaderboard#1842
feat: Add dynamic Badge & Stats Share Card generator in Contributor leaderboard#1842SamXop123 wants to merge 2 commits into
Conversation
|
@SamXop123 is attempting to deploy a commit to the recode Team on Vercel. A member of the Team first needs to authorize it. |
|
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs. In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊 Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv. We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰 🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨ 📚Your perks for contribution to this community 👇🏻
If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊 |
|
✅ Synchronized metadata from Issue #1839:
|
|
Maintainers, please review the PR and just tell if u wish to have any design modifications or any improvements, i m ready to update as required., |
|
Hi @SamXop123 great feature implementation to be honest and this us really good , i just had some suggestion below :
|
Adez017
left a comment
There was a problem hiding this comment.
few suggestions that needs to be resolved .
@Adez017 thanks for the review. Btw for the color palette, what exactly do you want as the background? Like a completely light (white) background or a lighter variant of the previous blue background ? |
|
✅ Synchronized metadata from Issue #1839:
|
|
@Adez017 I have pushed the commit for this, if you liked this variant you can merge straightaway. |


Description
This PR implements a client-side dynamic share/export card generator inside the Contributor Leaderboard.
Fixes #1839
Key Implementations:
src/utils/cardGenerator.ts): Constructs a custom 1200 x 630px (Open Graph optimized) card using browser-native HTML5 Canvas. Includes Recode Hive branding, circular formatted avatar clipping, statistics breakdown columns (PRs & Points), and highlights unlocked achievement badges (graying out locked badges).BadgeModal.tsx): Adds side-by-side action buttons for contributors:navigator.share) for social media integration.leaderboard.tsx): Fixed the dev fallback rendering bug where errors in API fetching would hide mock lists instead of rendering themockContributorsfallback array.Preview
2026-06-03.15-31-31.mp4
Output:
Verification Details
npm run dev)npm run typecheck(Passed successfully with 0 errors)npm run build(Passed successfully with 0 errors)Type of Change
npm run buildand attached screenshot(s) in this PR.