feat(Rewards): Put Earn Rewards banners in a carousel#30170
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. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 94cddbc. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: This component renders on the wallet dashboard as part of the Rewards/Earn section. The affected test tags are:
No E2E tests directly test EarnRewardsPreview by its test IDs, but the component is visible on the wallet dashboard and could affect navigation flows in both card and stake tests. No controllers, Engine, or critical infrastructure is changed, so broader test coverage is not warranted. Performance Test Selection: |
|




Description
This puts the banners in the Earn Rewards section of the Rewards tab into a carousel, so they only take up 1 line of vertical real estate at most, ensuring other content gets more visibility.
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/RWDS-1300
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Moderate UI/UX change that replaces static cards with a custom snap-offset carousel and gesture-based press suppression, which could introduce layout/tap regressions across screen sizes.
Overview
Converts the
EarnRewardsPreviewbanners from stacked full-width cards into a horizontal “peek” carousel usingScrollViewwith explicitsnapToOffsets, dynamic card sizing viauseWindowDimensions, and consistent inter-card spacing/padding.Preserves existing visibility rules (mUSD card vs skeleton based on geo, Card banner always present) while building the carousel slots dynamically, and disables banner presses only during active drag to prevent accidental taps while swiping.
Reviewed by Cursor Bugbot for commit 7888b5d. Bugbot is set up for automated code reviews on this repo. Configure here.