-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Hide rewards badge #37766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: rewards-onboarding-tour
Are you sure you want to change the base?
Hide rewards badge #37766
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. |
Builds ready [2f85d95]
UI Startup Metrics (1235 ± 80 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
|
Montoya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is just one issue with this implementation.
After dismissing, upon opening the extension, the button appears briefly and then disappears. It should default to hidden and check if the user has dismissed before showing it, instead.
post-dismiss.mov |
Builds ready [a7209b6]
UI Startup Metrics (1281 ± 107 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
|
Description
https://consensyssoftware.atlassian.net/browse/RWDS-793
Allow rewards badge to be hidden
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Adds a closeable Rewards badge that persists hidden state and updates rendering logic to respect it.
RewardsBadge: supportsallowHideBadge; shows a close icon on hover; hides on click viasetRewardsBadgeHidden(true)and persistsREWARDS_BADGE_HIDDENto storage; minor structure/class tweaks.RewardsPointsBalance: readsREWARDS_BADGE_HIDDENfrom storage on mount; conditionally renders badge/skeleton based onrewardsBadgeHidden; adjusts onboarding "seen" handling viasetOnboardingModalRendered.rewardsBadgeHiddentoRewardsStatewith actionsetRewardsBadgeHiddenand selectorselectRewardsBadgeHidden; initializes totrue.REWARDS_BADGE_HIDDENconstant.setRewardsBadgeHidden,selectRewardsBadgeHidden).RewardsBadge.test: mocksuseDispatch; verifies rendering and image/error behavior.Written by Cursor Bugbot for commit a7209b6. This will update automatically on new commits. Configure here.