Skip to content

Add mentor opportunities to leaderboard API#200

Open
gregv wants to merge 1 commit intodevelopfrom
feature/leaderboard-mentor-opportunities
Open

Add mentor opportunities to leaderboard API#200
gregv wants to merge 1 commit intodevelopfrom
feature/leaderboard-mentor-opportunities

Conversation

@gregv
Copy link
Copy Markdown
Contributor

@gregv gregv commented Mar 30, 2026

Summary

  • Filters mentor_opportunity type entries out of team achievements to prevent mixing
  • New categorize_mentor_opportunities() function extracts and serves boost entries separately
  • Leaderboard analytics response now includes mentorOpportunities key
  • Empty response fallback includes mentorOpportunities: []

Companion PRs:

  • Stats collector: opportunity-hack/github-stats-collector (unique files tracking + boost generation)
  • Frontend: opportunity-hack/frontend-ohack.dev (boost section UI + explainability)

Test plan

  • Verify /api/leaderboard/{event_id} response includes mentorOpportunities array
  • Verify team achievements don't include mentor_opportunity type entries
  • Verify empty org response includes mentorOpportunities: []

🤖 Generated with Claude Code

- Filter mentor_opportunity type from team achievements to prevent mixing
- Add categorize_mentor_opportunities() to extract and serve boost entries
- Return mentorOpportunities in leaderboard analytics response
- Include mentorOpportunities in empty response fallback

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant