Skip to content

added a gamification XP feature for user retention#476

Merged
Aditya948351 merged 1 commit into
devpathindcommunity-india:masterfrom
codewithakshyaaa:gamification-feature
Jun 2, 2026
Merged

added a gamification XP feature for user retention#476
Aditya948351 merged 1 commit into
devpathindcommunity-india:masterfrom
codewithakshyaaa:gamification-feature

Conversation

@codewithakshyaaa
Copy link
Copy Markdown
Contributor

@codewithakshyaaa codewithakshyaaa commented Jun 1, 2026

Description

This PR implements the core architecture for the Gamification & Progress Tracking system. It introduces a global real-time state manager to track and stream user milestones, points, and engagement metrics directly from Firebase Firestore.

🛠️ What's Changed?

  • Added GamificationContext.tsx: Created a dedicated context provider that listens to real-time changes in the user's gamification profile.
  • Integrated with Root Layout: Wired <GamificationProvider> inside src/app/layout.tsx nested correctly under <AuthProvider> to fetch data safely after authentication.
  • Database Hooks: Exposed the custom useGamification hook to consume XP, learning streaks, and unlocked badges across any frontend page or view.
    Fixes [FEATURE] : Add Gamification & Progress Tracking System #461

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?

  • 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

@codewithakshyaaa
Copy link
Copy Markdown
Contributor Author

hi @Aditya948351 kindly review this PR

@codewithakshyaaa codewithakshyaaa changed the title added a gamification XP feature for uswr retention added a gamification XP feature for user retention Jun 1, 2026
@Aditya948351 Aditya948351 self-requested a review June 2, 2026 06:49
Copy link
Copy Markdown
Collaborator

@Aditya948351 Aditya948351 left a comment

Choose a reason for hiding this comment

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

LGTM! Approved. Great work on this.

@Aditya948351 Aditya948351 added gssoc26 This is a official GirlScript Summer of Code label. type:feature level:advanced Advanced issues labels Jun 2, 2026
@Aditya948351 Aditya948351 merged commit 39b73fd into devpathindcommunity-india:master Jun 2, 2026
@Aditya948351 Aditya948351 added the gssoc:approved give 50+ base points label Jun 2, 2026
@codewithakshyaaa
Copy link
Copy Markdown
Contributor Author

LGTM! Approved. Great work on this.

Thankyou sir. Looking forward to more contributions!!

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

Labels

gssoc:approved give 50+ base points gssoc26 This is a official GirlScript Summer of Code label. level:advanced Advanced issues type:feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] : Add Gamification & Progress Tracking System

2 participants