Skip to content

Fix point calculation 621#644

Merged
Aditya948351 merged 5 commits into
devpathindcommunity-india:masterfrom
bhavyaxtech:fix-point-calculation-621
Jun 17, 2026
Merged

Fix point calculation 621#644
Aditya948351 merged 5 commits into
devpathindcommunity-india:masterfrom
bhavyaxtech:fix-point-calculation-621

Conversation

@bhavyaxtech

Copy link
Copy Markdown
Contributor

Description

Fixes #621

This PR refines the DevPath point calculation system to make scoring more balanced, transparent, and resistant to duplicate rewards.

Changes Included

  • Updated point constants to align with the proposed scoring strategy.
  • Added capped daily login streak multiplier logic.
  • Added dynamic badge XP calculation based on badge rarity.
  • Converted first project upload rewards into a one-time achievement to prevent repeated rewards.
  • Expanded the "How to Earn Points" section with 10 additional activity parameters.
  • Improved maintainability and consistency of point calculation logic.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Verified point calculations manually for different activity scenarios.

  • Verified streak multiplier limits.

  • Verified badge rarity-based XP assignment.

  • Verified first project upload rewards are granted only once.

  • Confirmed documentation updates render correctly.

  • Local testing

  • Vercel Preview Deployment

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have checked that the "DevPath India" branding remains intact

@devpathindcommunity-india

Copy link
Copy Markdown
Owner

@bhavyaxtech kindly share the video for this PR, how it is after your change.

@Aditya948351 Aditya948351 self-requested a review June 17, 2026 18:01
@Aditya948351 Aditya948351 merged commit 803d1dd into devpathindcommunity-india:master Jun 17, 2026
1 of 3 checks passed
@bhavyaxtech

Copy link
Copy Markdown
Contributor Author

hi @Aditya948351 ,
Thank you for merging my PR! Could you please add the GSSoC Approved label to it if applicable?

Thanks!

@Aditya948351 Aditya948351 added the gssoc:approved give 50+ base points label Jun 23, 2026
@Aditya948351

Copy link
Copy Markdown
Collaborator

hi @Aditya948351 , Thank you for merging my PR! Could you please add the GSSoC Approved label to it if applicable?

Thanks!

ohh i missed adding that, Added!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Fix Point Calculation Issue.

3 participants