fix: limit highest level leaderboard to top 10 on homepage#5863
Merged
AmarTrebinjac merged 1 commit intomainfrom Apr 14, 2026
Merged
fix: limit highest level leaderboard to top 10 on homepage#5863AmarTrebinjac merged 1 commit intomainfrom
AmarTrebinjac merged 1 commit intomainfrom
Conversation
The HIGHEST_LEVEL_QUERY defaults to 100 entries, which stretches the /users page vertically. Pass limit: 10 to match all other leaderboard cards on the homepage. The detail page (/users/highestLevel) is unaffected and still shows up to 100. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
{ limit: 10 }toHIGHEST_LEVEL_QUERYin the homepagegetStaticPropsso the "Highest level" card shows only 10 entries, consistent with all other leaderboard cards on/users$limitvariable (defaulting to 100 for the detail page), so this is a single-variable override at the call site — no query or backend changes needed/users/highestLevel) is unaffected and continues to show up to 100 entriesTest plan
/usersand confirm the "Highest level" card shows exactly 10 entries/users/highestLeveland confirm it still shows up to 100 entriesCloses ENG-1253
Created by Huginn 🐦⬛
Preview domain
https://eng-1253-level-leaderboard-too-l.preview.app.daily.dev