chore: adds the initial setup for leaderboard feature#28053
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Why SmokeWalletPlatform: This tag directly covers the Trending discovery tab and homepage sections. The Homepage.tsx changes (section ordering, section index calculation) and the Why SmokePerps: Perps is a section inside the Trending tab. The homepage section ordering change (new TOP_TRADERS section inserted between TOKENS and PERPS) could affect Why SmokePredictions: Similarly, Predictions is a section inside the Trending tab. The section index changes could affect Predictions section tracking. Per tag description: "Predictions is also a section inside the Trending tab (SmokeWalletPlatform); changes to Predictions views affect Trending." The feature is disabled by default so risk to existing tests is low-medium. No SmokeConfirmations needed as this is a UI scaffold with no transaction flows yet. Performance Test Selection: |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
|
✅ E2E Fixture Validation — Schema is up to date |
|




Description
Adds the remote flag aiSocialLeaderboardEnabled and selector. When enabled, the homepage shows a Top Traders section (header + empty horizontal carousel placeholder) and registers the Top Traders as a stack screen with back/search and placeholder "Top traders". No leaderboard data or API yet this, is just the initial setup for the feature.
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk: changes are additive, feature-flag gated, and primarily UI/navigation scaffolding with tests and strings; no data fetching or critical flows are modified.
Overview
Adds initial Social Leaderboard scaffolding behind a remote flag. Introduces a version-gated
aiSocialLeaderboardEnabledselector and registry entry, and conditionally registers a newRoutes.SOCIAL_LEADERBOARD.VIEWstack screen (TopTradersView).Homepage gains a new flag-controlled section. Adds
TopTradersSection(header + empty horizontal carousel placeholder), includes it in homepage section ordering/refresh and analytics section naming, and updates tests/localization to cover the new route, flag behavior, and section index/total calculations.Written by Cursor Bugbot for commit 5e5c1da. This will update automatically on new commits. Configure here.