Skip to content

fix: limit highest level leaderboard to top 10 on homepage#5863

Merged
AmarTrebinjac merged 1 commit intomainfrom
eng-1253-level-leaderboard-too-long
Apr 14, 2026
Merged

fix: limit highest level leaderboard to top 10 on homepage#5863
AmarTrebinjac merged 1 commit intomainfrom
eng-1253-level-leaderboard-too-long

Conversation

@AmarTrebinjac
Copy link
Copy Markdown
Contributor

@AmarTrebinjac AmarTrebinjac commented Apr 14, 2026

Summary

  • Pass { limit: 10 } to HIGHEST_LEVEL_QUERY in the homepage getStaticProps so the "Highest level" card shows only 10 entries, consistent with all other leaderboard cards on /users
  • The query already accepts a $limit variable (defaulting to 100 for the detail page), so this is a single-variable override at the call site — no query or backend changes needed
  • The detail page (/users/highestLevel) is unaffected and continues to show up to 100 entries

Test plan

  • Load /users and confirm the "Highest level" card shows exactly 10 entries
  • Load /users/highestLevel and confirm it still shows up to 100 entries

Closes ENG-1253


Created by Huginn 🐦‍⬛

Preview domain

https://eng-1253-level-leaderboard-too-l.preview.app.daily.dev

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>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 14, 2026

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

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview Apr 14, 2026 2:33pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Apr 14, 2026 2:33pm

Request Review

@AmarTrebinjac AmarTrebinjac merged commit 7d8d134 into main Apr 14, 2026
13 checks passed
@AmarTrebinjac AmarTrebinjac deleted the eng-1253-level-leaderboard-too-long branch April 14, 2026 20:59
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