Skip to content

Add role-based leaderboard cohorts - #3

Merged
Rajat77a merged 1 commit into
mainfrom
codex/role-category-leaderboard
Aug 10, 2026
Merged

Add role-based leaderboard cohorts#3
Rajat77a merged 1 commit into
mainfrom
codex/role-category-leaderboard

Conversation

@Rajat77a

Copy link
Copy Markdown
Owner

What changed

  • preserves each user's exact job title while storing one validated career track
  • adds 13 career tracks with instant local classification and a rate-limited Groq fallback for uncommon titles
  • lets users confirm or change the suggested track during onboarding and profile editing
  • ranks completed interviews within career-track and experience cohorts using the latest five sessions
  • removes generated candidates from the live public and signed-in leaderboards
  • updates public copy so benchmark claims accurately describe real completed PrepPeer sessions
  • includes the backward-compatible Supabase migration already validated against production

Why

Free-text role titles no longer matched the old hardcoded leaderboard tabs, which made role-based ranks inconsistent. The live board also mixed synthetic benchmark users with real accounts. This change keeps flexible titles while providing fair, truthful cohort rankings.

Validation

  • npx tsc --noEmit
  • npm run lint
  • npm run build
  • npm audit --json (0 vulnerabilities)
  • Supabase migration success
  • verified role-category column, classifier mappings, permissions, 29 real entries across 20 active cohorts, and no invalid cohort sizes
  • existing production health remained green after the backward-compatible migration

@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
prep-peer Ready Ready Preview Aug 10, 2026 4:59pm

@Rajat77a
Rajat77a marked this pull request as ready for review August 10, 2026 17:01
@Rajat77a
Rajat77a merged commit 32dc820 into main Aug 10, 2026
3 checks passed
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