feat(rewards): show ondo outcome toasts#29315
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. |
…test fixtures Co-authored-by: VGR-GIT <vangulckrik@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
No E2E test tags are applicable because:
Performance Test Selection: |
|



Description
Shows a toast on the rewards home page or the campaign overview page if you're a potential winner with a verification code, or if you're a participant and we know that you're not a winner.
Changelog
CHANGELOG entry: null
Screenshots/Recordings
Showing toast for participant who didn't win once we know in the same tier for sure that there are 5 winners:
Showing a toast for winners with verification code but still in pending state.
Note
Medium Risk
Adds a new focus-driven toast + navigation side effect on key Rewards screens and persists new dismissal state in Redux, which could impact user-facing UX and state rehydration if mis-keyed or triggered unexpectedly.
Overview
Adds
useOndoOutcomeToast, which detects the most recently completed ONDO Holding campaign, derives an outcome variant from participant outcome data, and shows a persistent icon toast (with haptics) that deep-links to the winning or campaign details view.Introduces Redux support for remembering dismissed outcome toasts via
dismissedCampaignOutcomeToasts(new selector +dismissCampaignOutcomeToastaction) and persists/rehydrates this map.Wires the hook into
RewardsDashboardandCampaignsView, updates fixtures/locales, and adds/extends unit tests covering toast behavior, dismissal, and integration.Reviewed by Cursor Bugbot for commit 0aa3329. Bugbot is set up for automated code reviews on this repo. Configure here.