Skip to content

Fix point calculation 621#644

Open
bhavyaxtech wants to merge 4 commits into
devpathindcommunity-india:masterfrom
bhavyaxtech:fix-point-calculation-621
Open

Fix point calculation 621#644
bhavyaxtech wants to merge 4 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.

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.

2 participants