Skip to content

Redesign the Leaderboard view - #2335

Merged
sanjay-kv merged 1 commit into
mainfrom
redesign/leaderboard
Oct 20, 2026
Merged

sanjay-kv merged 1 commit into
mainfrom
redesign/leaderboard

Conversation

@sanjay-kv

Copy link
Copy Markdown
Member

Summary

  • New leaderboard view: period tabs (This week, This month default, All time), podium with an open-spot slot, ranking table with search and show more, support banner, and a rail with Your rank, How to earn points (with badge rules) and Hive activity.
  • Stale data shows an amber "Data may be delayed" state; the next-refresh time is the real even-UTC-hour cron slot. Backend failures show an error card with Try again.
  • Points rules live in one pointsConfig.ts (also used by statsProvider). Backend responses are cached 10 minutes in sessionStorage.
  • The leaderboard is no longer behind a sign-in gate (signed-out visitors see a Sign in card in the rail).
  • Removes the old leaderboard CSS and the PR list, points info, personal stats, streak and support components. No purple left in this view.

Backend (not part of this PR)

The live data on Railway was last generated 2026-10-10 and is older than the sanjay-kv/leaderboard source (no streak, bots scored). In that repo, refresh errors are swallowed and isGenerating can stick if a request hangs (no axios timeout). Needs a look at the Railway logs (expired GIT_TOKEN or hung run) and which repo/branch Railway builds.

Checked

Build and typecheck pass; screenshots at 1440 and 500px plus dark mode; no token patterns in the build output. Not tested: signed-in states, the week tab and its fallback, keyboard and reduced motion, 1100 and 768px.

🤖 Generated with Claude Code

New podium, ranking table, period tabs (week, month, all time), Your rank,
points and badges rail, stale-data state and error card. Points rules move
to one shared config, backend responses are cached 10 minutes in
sessionStorage, and the board no longer needs a sign-in.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sanjay-kv
sanjay-kv requested a review from Adez017 as a code owner October 20, 2026 10:18
@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
recode-website Ready Ready Preview Oct 20, 2026 10:19am UTC

@github-actions

Copy link
Copy Markdown

Thank you for submitting your pull request! 🙌 We'll review it asap. The estimated time for response is 5–8 hrs.

In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, if it's a Video -LEGEND, which helps speed up the review. If you have questions, reach out to LinkedIn. You can see in our Leaderboard in 20 min from now!😊

Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv.

We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰

🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨

📚Your perks for contribution to this community 👇🏻

  1. Get free Consultation after 5 PR: Mentorship for free.

  2. Get the Ebook for free after 10 PR: You can tag me in Discussion to get the same. Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

Thanks again for your contribution! 😊

@github-actions github-actions Bot added in-review The current changes are in review and would need approval and testing before merging level 1 10 points recode this is label for leaderboard labels Oct 20, 2026
@github-actions github-actions Bot added this to the recode:launch 3.0 milestone Oct 20, 2026
@sanjay-kv sanjay-kv self-assigned this Oct 20, 2026
@sanjay-kv
sanjay-kv merged commit ff619f8 into main Oct 20, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project.

I would be grateful if you can nominate for keeping this opensource project live and running Link to Nominate. Please do star the repo and Keep up the fantastic work! 🚀

This branch was successfully deployed

1 active deployment
Preview — 06644ed4 Deployed Oct 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-review The current changes are in review and would need approval and testing before merging level 1 10 points recode this is label for leaderboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant