chore(rewards): VIP view rework#30479
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. |
…states - Adds VipTierDto.equityRebateBps + referralCarryoverBps types - 4th VipFeeTile in tier-benefits carousel (renders T6+) - VipPointsSection extends to four states (pre-qual / qualified at T6/T7/T8) - en.json + locale shells get rewards.vip.equity_rebate_label ## **Changelog** CHANGELOG entry: Added equity rebate tile and progress-to-equity radial states to the VIP dashboard. Refs: RWDS-VIP plan §5 step 4 TODO (N1, N2): "Total Points" → "Total points" and "VIP Referrals" → "VIP referrals" pending design sign-off. Co-authored-by: VGR-GIT <vangulckrik@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Conditionally renders a VIP-specific intro on the referral details page (rev-share copy + Referrals X/cap + current-tier referralCarryoverBps as %) when the active subscription is VIP. Reads from useVipDashboard with skeleton + error-banner-with-retry states; non-VIP path is unchanged. Co-authored-by: VGR-GIT <vangulckrik@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ 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 b8206f3. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
No E2E tests directly cover the Rewards VIP dashboard. The Rewards feature is accessed via the wallet platform. SmokePerps is selected because the VIP dashboard is closely tied to perps trading (fee discounts, equity rebate for perps traders), and the Perps section is embedded in the Trending tab (SmokeWalletPlatform). SmokeWalletPlatform is selected because the Rewards/VIP feature is part of the wallet platform and the Trending tab integration. No other tags are warranted as the changes don't touch confirmations, swaps, accounts, identity, browser, snaps, or network infrastructure. Performance Test Selection: |
|




Description
VIP dashboard rework
In conjunction: https://github.com/consensys-vertical-apps/va-mmcx-rewards/pull/573
Changelog
CHANGELOG entry: null
Related issues
Fixes:
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 risk: updates VIP UI flows and expands VIP dashboard DTOs (points-based progress, new fields like equity rebate/referral carryover), which could break rendering if backend/Redux data mismatches.
Overview
Reworks the Rewards VIP experience to align with the updated VIP dashboard contract: progress and tier thresholds move from swaps/perps requirements to points-based metrics, and VIP volume now includes points, referral points, and referral counts.
Updates the VIP UI to use new backend-provided localized strings, adds a member ID display, introduces an optional Equity rebate fee tile, and revamps styling with a new
vip.svgicon and shared gold theme constants. Also enhances the referral details screen to show a VIP-specific info section with loading/error states driven byuseVipDashboard, and addsformatCompactValuefor non-currency compact number formatting.Reviewed by Cursor Bugbot for commit b8206f3. Bugbot is set up for automated code reviews on this repo. Configure here.