This document outlines the three new features added to the IssueMatch platform.
A gamified page showing top users by contribution scores to encourage engagement and friendly competition.
LeaderboardTable.tsx: Displays users ranked by score with sorting capabilitiesScoreCard.tsx: Shows user's personal stats (rank, score, total users)app/leaderboard/page.tsx: Main leaderboard page with filtering and search
app/routers/leaderboard.py: FastAPI endpoints for fetching leaderboard dataapp/services/leaderboard_service.py: Service for calculating and updating user scores
- New collection:
leaderboard_scoreswith fields:- userId, username, avatarUrl, score, contributions, mentorships, skills, updatedAt
Allows users to generate unique referral links and earn points when friends sign up.
ReferralLinkGenerator.tsx: Generates and displays shareable referral linksReferralStats.tsx: Shows referral statistics (total, successful, points)app/referral/page.tsx: Main referral page with explanation of the programapp/api/generate-referral/route.ts: Next.js API route for generating referral codes
app/routers/referral.py: FastAPI endpoints for validating and completing referrals
- Updates to
userscollection: AddedreferralCodefield - New collection:
referralswith fields:- referrerId, referredUserId, status, pointsAwarded, createdAt
Connects users with experienced mentors who can guide them through open source contributions.
MentorList.tsx: Displays available mentors with filtering optionsRequestModal.tsx: Modal for sending mentorship requestsapp/mentor-hub/page.tsx: Main mentor hub page with search and filteringapp/api/request-mentor/route.ts: Next.js API route for sending mentorship requests
app/routers/mentor.py: FastAPI endpoints for mentor suggestions using Gemini API
- New collections:
mentors: Stores mentor profiles with skills and availabilitymentorship_requests: Tracks mentorship requests and their status
- Uses Gemini API (free tier) to suggest mentors based on issue content and user skills
- Added links to new features in the main navigation
- Added referral link to the user profile menu
-
Leaderboard:
- Weekly/monthly rankings
- Achievement badges for milestones
- Social sharing of achievements
-
Referral System:
- Tiered rewards for multiple referrals
- Special badges for top referrers
- Referral campaigns with limited-time bonuses
-
Mentor Hub:
- In-app messaging system for mentors and mentees
- Scheduling system for mentor sessions
- Mentor ratings and reviews
- Skill verification for mentors