Skip to content

feat: GitHub Achievements & Milestone Badges #8976

Description

@Aditya8369

Is your feature request related to a problem? Please describe.

Introduce a gamification layer by awarding developers special badges for reaching significant milestones. These badges would be displayed in a dedicated section on the CommitPulse SVG. Examples include "Perfect Month" (a contribution every day of a month), "Century Club" (a 100-day streak), "Night Owl" (a pattern of late-night commits), or "Polyglot" (contributing to repositories in multiple languages).

Describe the solution you'd like

  1. Achievement Logic: Create a new file, lib/achievements.ts, that takes the user's contribution data as input. This file would contain functions to check for specific patterns (e.g., checkPerfectMonth(data), checkStreakMilestone(streak)).
  2. SVG Icons: Design a set of small, stylish SVG icons for each achievement. These can be stored as string constants.
  3. Rendering: In lib/svg/generator.ts, after calculating the achievements, render the corresponding icons in a new "Achievements" section of the main SVG, perhaps below the main statistics. A new URL parameter like &show_achievements=true could be used to control its visibility.

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions