feat: add leaderboard gamification system with badges, streaks, and tier progression (Closes #839) [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] - #1442
Open
waterWang wants to merge 3 commits into
Conversation
… [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT]
… earnings chart, and key stats (Closes SolFoundry#836) - Add StatsOverview component showing total earned, bounties completed, streak, rank - Add GitHubActivityGraph component with weekly bar chart and contribution heatmap - Add EarningsTab with dual USDC/FNDRY charts and summary cards - Add SubmissionsTab with bounty status breakdown - Add GitHub activity API module and hooks - Add profile stats API module and hooks - Add missing lib/animations.ts and lib/utils.ts with all exports - Add recharts type declarations - Update .gitignore to allow frontend/src/lib/ - TypeScript compiles with zero errors, Vite build succeeds
…ier progression (Closes SolFoundry#839)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Bounty #839 (T2, 500K $FNDRY) — leaderboard gamification system with badges, streaks, and tier progression.
Changes
New files
frontend/src/lib/gamification.ts— Badge definitions (13 types), tier system (5 levels: Bronze→Master), streak level calculator, tier progress utilitiesfrontend/src/components/leaderboard/BadgeDisplay.tsx— Badge icon display with tooltip support, overflow indicatorfrontend/src/components/leaderboard/TierBadge.tsx— Tier badge component with gradient colors, plus a progress bar showing next tier progressModified files
frontend/src/types/leaderboard.ts— Addedbadgesandtierfields toLeaderboardEntryfrontend/src/components/leaderboard/PodiumCards.tsx— Added tier badge and badge display to podium cardsfrontend/src/components/leaderboard/LeaderboardTable.tsx— Added tier column, badge display in user rows, enhanced streak with color-coded levelsfrontend/src/pages/LeaderboardPage.tsx— Added tier distribution overview section with per-tier counts and total bountiesGamification Features
Badge System (13 achievement types)
Streak Tracking
Tier Progression (5 levels)