Skip to content

feat: add Contributor Achievement Card Generator to leaderboard#1678

Merged
sanjay-kv merged 1 commit into
recodehive:mainfrom
akshara200829-lgtm:feat/contributor-achievement-card
May 24, 2026
Merged

feat: add Contributor Achievement Card Generator to leaderboard#1678
sanjay-kv merged 1 commit into
recodehive:mainfrom
akshara200829-lgtm:feat/contributor-achievement-card

Conversation

@akshara200829-lgtm
Copy link
Copy Markdown
Contributor

Description

Added a Contributor Achievement Card Generator feature to the leaderboard page. Contributors can now generate and download a shareable profile card showing their username, avatar, rank, PRs merged, points, and badges. The card button appears to the right of the existing "Contribute on GitHub" button and supports both dark and light themes. Cards can be downloaded as PNG for sharing on LinkedIn, GitHub README, X (Twitter), and Discord.

Fixes #1673

Type of Change

New feature

Changes Made

  • Added ContributorCard.tsx component in src/components/dashboard/LeaderBoard/
  • Added achievement card CSS styles at the bottom of leaderboard.css
  • Modified leaderboard.tsx to render the card button to the right of the existing "Contribute on GitHub" button in the CTA footer
  • Card displays contributor's username, avatar, rank, PRs merged, points, and badges
  • Users can download their card as a PNG using html-to-image (client-side, no backend needed)
  • Supports both dark and light themes

Dependencies

html-to-image — for client-side PNG generation from the card component

Checklist

  • My code follows the style guidelines of this project
  • I have tested my changes across major browsers and devices
  • My changes do not generate new console warnings or errors
  • This is already assigned Issue to me, not an unassigned issue

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 23, 2026

@akshara200829-lgtm is attempting to deploy a commit to the recode Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

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 👇🏻

  1. Get free Consultation use code recode50 to get free: Mentorship for free.

  2. Get the Ebook for free use code recode at checkout: Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@github-actions github-actions Bot added in-review The current changes are in review and would need approval and testing before merging level 1 10 points recode this is label for leaderboard labels May 23, 2026
@github-actions github-actions Bot added this to the recode:launch 3.0 milestone May 23, 2026
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recode-website Ready Ready Preview, Comment May 24, 2026 1:47am

@sanjay-kv
Copy link
Copy Markdown
Member

@akshara200829-lgtm can u attach the ss please

@akshara200829-lgtm
Copy link
Copy Markdown
Contributor Author

Screenshot 2026-05-24 093612 Screenshot 2026-05-24 093552

Currently, the "My Achievement Card" button displays the #1 ranked contributor's card as a demo, since the leaderboard requires Clerk authentication which is not configured in the local development environment. The feature works correctly in production where real contributor data is available.

The card currently shows:
Username & avatar
Leaderboard rank
PRs merged & points
Earned badges
Download as PNG (client-side, no backend needed)

@sanjay-kv sanjay-kv merged commit edb6395 into recodehive:main May 24, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in @recode-web May 24, 2026
@sanjay-kv
Copy link
Copy Markdown
Member

Implementation is good, but by default irrespective of user the 1st leaderboard person is printed. you can work on new PR

@sanjay-kv
Copy link
Copy Markdown
Member

@akshara200829-lgtm could you push the changes again, i have to revert this as some conflict with css

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

Labels

Enhacement gssoc26 label gssoc:approved gssoc label in-review The current changes are in review and would need approval and testing before merging level 1 10 points recode this is label for leaderboard type:docs gssoc label 5pts

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

💡[Feature]: Add a Contributor Achievement Card Generator

2 participants