devtrack icon indicating copy to clipboard operation
devtrack copied to clipboard

[FEAT] : Add shareable stats card with Twitter/X and LinkedIn share buttons

Open 111-Vaishali opened this issue 5 months ago • 11 comments

Problem Statement

I'm always frustrated when I want to show off my DevTrack stats to my network but there's no easy way to do it. Currently, users have no way to share their coding streak, PR merge rate, or weekly goal progress with others. Developers love showing their consistency publicly — LinkedIn posts, Twitter/X threads, README badges — but DevTrack has no sharing mechanism at all right now.

Proposed Solution

Add a "Share My Stats" button on the dashboard that lets users share their DevTrack profile in one click.

Phase 1 — Copy shareable link:

  • A "Share Stats" button that copies the user's public profile URL to clipboard
  • Shows "✓ Copied!" confirmation for 2 seconds then resets

Phase 2 — Social sharing buttons:

  • Twitter/X button that opens a pre-filled tweet: "🔥 My DevTrack stats: 📈 X day streak ✅ X% merge rate
    🎯 Weekly goal X% complete Track your own coding pulse 👇 [link] #GitHub #DevTrack #GSSoC"

  • LinkedIn button that opens LinkedIn share dialog with the profile URL

Phase 3 — Stats card image (stretch goal):

  • Generate a downloadable PNG card showing the user's key stats (streak, contributions, merge rate, goal %) that can be attached to social posts directly

Files likely to be modified:

  • src/components/DashboardHeader.tsx — add share buttons
  • src/app/dashboard/page.tsx — pass user stats to share
  • src/components/ShareStatsCard.tsx — new component

Why this matters: Sharing is the single biggest organic growth driver for developer tools. Every time a user shares their DevTrack stats, it introduces DevTrack to their entire network. This directly helps the project grow its contributor and user base.

Feature Area

Dashboard

Alternatives Considered

I considered just adding a "Copy profile URL" button without social sharing, but that feels incomplete and misses the viral growth opportunity. I also considered making the stats card the only feature, but a phased approach (copy link → social buttons → image card) means Phase 1 can ship quickly as a small PR while Phase 2 and 3 follow as improvements.

Acceptance Criteria

Additional Context

No response

111-Vaishali avatar Jun 10 '26 09:06 111-Vaishali

Thanks for opening your first issue on DevTrack! 🎉

A maintainer will take a look shortly. In the meantime:

If you find DevTrack useful, a ⭐ star on the repo is always appreciated — it helps the project reach more developers!

github-actions[bot] avatar Jun 10 '26 09:06 github-actions[bot]

Hi @Priyanshu-byte-coder, I'd like to work on this under GSSoC 2025. Can I be assigned? I'm planning to start with Phase 1 (copy link button) and Phase 2 (Twitter/X + LinkedIn share) in the first PR.

111-Vaishali avatar Jun 10 '26 09:06 111-Vaishali

Assigned to @111-Vaishali! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!

github-actions[bot] avatar Jun 10 '26 09:06 github-actions[bot]

Hi I am a GSSoC 2026 contributor and would like to work on this.

ridhi402 avatar Jun 13 '26 13:06 ridhi402

Reassigning to @ridhi402 — this issue had no PR and no activity for over a month, so it's going to the next person who asked for it (first come, first served).

@ridhi402 it's yours: please open a PR within 7 days or it'll be released again. If you're no longer interested, just say so and I'll pass it on.

Priyanshu-byte-coder avatar Jul 29 '26 17:07 Priyanshu-byte-coder

Hey @ridhi402 — this issue was assigned 7 days ago with no PR opened. Unassigning so others can pick it up.

Still working on it? Drop a comment and request re-assignment.

github-actions[bot] avatar Aug 06 '26 05:08 github-actions[bot]

I would like to contribute on this issue under gssoc'26

yachikadev avatar Aug 10 '26 14:08 yachikadev

Assigned to @yachikadev! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!

github-actions[bot] avatar Aug 10 '26 14:08 github-actions[bot]

Hey @yachikadev — this issue was assigned 7 days ago with no PR opened. Unassigning so others can pick it up.

Still working on it? Drop a comment and request re-assignment.

github-actions[bot] avatar Sep 09 '26 07:09 github-actions[bot]

Done: every profile has a shareable rank card with X and LinkedIn share buttons.

Priyanshu-byte-coder avatar Nov 04 '26 03:11 Priyanshu-byte-coder

✅ Closed as completed!

If DevTrack has been useful, a ⭐ star on the repo helps the project grow and reach more developers.

github-actions[bot] avatar Nov 04 '26 03:11 github-actions[bot]