Skip to content

feat: Add Copy SVG Button for Badge Preview#8252

Merged
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
ishita2650-ai:fix-issue-7866
Jul 23, 2026
Merged

feat: Add Copy SVG Button for Badge Preview#8252
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
ishita2650-ai:fix-issue-7866

Conversation

@ishita2650-ai

Copy link
Copy Markdown
Contributor

Description

Fixes #7866

Pillar

  • 🎨 Pillar 1 — New Theme Design
  • 📐 Pillar 2 — Geometric SVG Improvement
  • 🕐 Pillar 3 — Timezone Logic Optimization
  • 🛠️ Other (Bug fix, refactoring, docs)

Visual Preview

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally (localhost:3000/api/streak?user=YOUR_USERNAME).
  • I have run npm run format and npm run lint locally and resolved all errors (CI will fail otherwise).
  • My commits follow the Conventional Commits format (e.g., feat(themes): ..., fix(calculate): ...).
  • I have updated README.md if I added a new theme or URL parameter.
  • I have started the repo.
  • I have made sure that i have only one commit to merge in this PR.
  • The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts).
  • (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.

@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

@ishita2650-ai is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

@retenta-bot

retenta-bot Bot commented Jul 21, 2026

Copy link
Copy Markdown

This PR adds a new feature that allows users to easily copy SVGs from the badge preview, which can improve user experience significantly. It's great to see the focus on enhancing the UI with this addition! Please ensure that the SVG output meets the premium quality standards as outlined in the checklist.

Additionally, I noticed some past decisions regarding code quality improvements, such as fixing dead code in the calculateStreak function. While this PR is focused on a new feature, maintaining code quality is always important. If you have any questions or need further assistance, feel free to reach out. Happy coding!

@retenta-bot retenta-bot Bot changed the title feat: add Copy SVG button for badge preview feat: Add Copy SVG Button for Badge Preview Jul 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

Asset PR Size Base Size Difference Status
static/chunks/app/page-[hash].js 20.75 KB 20.64 KB +0.10 KB (+0.51%) 🔴 Regression
static/css/[hash].css 41.10 KB 41.08 KB +0.02 KB (+0.05%) 🔴 Regression

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 3985.67 KB 3985.28 KB +0.39 KB (+0.01%)
Total CSS 331.52 KB 331.41 KB +0.11 KB (+0.03%)

@Aamod007 Aamod007 added level:beginner Small changes Usually isolated fixes or simple UI/text updates. quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. type:feature New features, additions, or enhancements mentor:Aamod007 labels Jul 23, 2026

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the 'Copy SVG' button! This makes it much easier for users to grab the raw SVG code directly from the landing page.

The implementation is straightforward and works well. As a quick tip for the future: consider using a toast notification instead of \�lert()\ for a smoother user experience!

Everything else looks good and the checks are passing. Great work!

Label Justification:

  • \level:beginner: Assigned based on 1 file changed (adding a handler and button to the landing page).
  • \quality:clean: Simple and effective implementation.
  • \ ype:feature: Adds a new action to the landing page preview.
  • \mentor:Aamod007: Assigned as required.

@JhaSourav07 JhaSourav07 added the gssoc:approved PR has been reviewed and accepted for valid contribution points label Jul 23, 2026
@JhaSourav07
JhaSourav07 merged commit 79509b7 into JhaSourav07:main Jul 23, 2026
15 of 16 checks passed
@github-actions github-actions Bot added this to the GSSoC 2026 milestone Jul 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Congratulations @ishita2650-ai! Your PR has been successfully merged. 🚀

Thank you for contributing to CommitPulse. Your work helps us build a better tool for the community.

⚠️ Important for GSSoC Contributors:
You are strictly advised to join our Discord Server as it is mandatory for all GSSoC participants. All important announcements, point claims, and community discussions happen there.

Keep building! 💻✨

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

Labels

gssoc:approved PR has been reviewed and accepted for valid contribution points level:beginner Small changes Usually isolated fixes or simple UI/text updates. mentor:Aamod007 quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. type:feature New features, additions, or enhancements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ui): Add "Copy SVG" button to generated badge preview

3 participants