Skip to content

feat: build contributor profile stats dashboard with GitHub activity, earnings chart, and key stats (Closes #836) [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] - #1441

Open
waterWang wants to merge 2 commits into
SolFoundry:mainfrom
waterWang:feat/contributor-profile-stats-836
Open

feat: build contributor profile stats dashboard with GitHub activity, earnings chart, and key stats (Closes #836) [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT]#1441
waterWang wants to merge 2 commits into
SolFoundry:mainfrom
waterWang:feat/contributor-profile-stats-836

Conversation

@waterWang

Copy link
Copy Markdown

Description

Enhances the contributor profile dashboard with rich statistics and GitHub activity visualization.

Changes

  • StatsOverview: Key stats cards showing total earned, bounties completed, contribution streak, rank, top skills, and activity
  • GitHubActivityGraph: Weekly stacked bar chart (commits, PRs, issues) + contribution heatmap (12-week grid)
  • EarningsTab: Dual USDC/FNDRY charts with summary cards (total earned, bounties done, FNDRY earned)
  • SubmissionsTab: Summary stats with bounty status breakdown (completed, in review, active)
  • API+Hooks: api/github.ts, api/profile.ts, useGitHubActivity, useProfileStats
  • Missing lib files: Created lib/animations.ts and lib/utils.ts with all exports referenced by the codebase
  • Type fixes: Added recharts type declarations

Tech stack

  • React 18, TypeScript, Tailwind CSS 4
  • Recharts (BarChart, AreaChart) for data visualization
  • Framer Motion animations
  • TanStack React Query for data fetching
  • Lucide React icons

Verification

  • ✅ TypeScript compiles with zero errors
  • ✅ Vite build succeeds (2875 modules, 9.67s)
  • ✅ All existing API tests pass

Closes #836

… [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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🏭 Bounty T2: Build Contributor Profile Stats Dashboard

1 participant