Add public contributor leaderboard#336
Open
saurabhhhcodes wants to merge 1 commit into
Open
Conversation
|
@saurabhhhcodes is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
Owner
|
Strong feature overall — double opt-in design, auto-enable public profile, server-rendered page, good caching, clean CSS vars throughout. Two fixes needed before merge: 1. Hardcoded // Replace:
className={`absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition-transform ...`}
// With:
className={`absolute left-1 top-1 h-4 w-4 rounded-full bg-[var(--card)] transition-transform ...`}2. Rate limit key uses function getRateLimitKey(req: NextRequest): string {
return (
req.ip ??
req.headers.get("x-forwarded-for")?.split(",")[0]?.trim() ??
req.headers.get("x-real-ip") ??
"unknown"
);
}Fix these two and push — everything else is solid, will merge. |
9 tasks
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
/leaderboardpage with tabs for current streak, monthly commits, and monthly PRs/api/leaderboardwith hourly server-side caching, lightweight IP rate limiting, and GitHub-backed metric aggregation for opted-in public usersleaderboard_opt_insetting plus Supabase migration so leaderboard visibility is separate from simply having a public profileCloses #259
Testing
/Users/saurabhkumarbajpaiai/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/bin/node node_modules/typescript/bin/tsc --noEmit✅/Users/saurabhkumarbajpaiai/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/bin/node node_modules/next/dist/bin/next lint✅ warnings only from pre-existingBadgeSection<img>usage andCommitTimeCharthook dependencygit diff --check✅/Users/saurabhkumarbajpaiai/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/bin/node node_modules/next/dist/bin/next build✅ compiled successfully, then stopped during page data collection because localNEXT_PUBLIC_SUPABASE_URL/ Supabase env is not configured (supabaseUrl is required)GSSoC labels
Could you please add
gssoc:approved,level:advanced, andtype:featureif this matches the issue scope?