chore: show entries closed toast when passed cutoff date#28000
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. |
https://consensyssoftware.atlassian.net/browse/RWDS-1109 ## Changelog ### Added - `CampaignEntriesClosedBanner` component shown when deposit cutoff date has passed - Entries-closed toast notification via `useRewardsToast` ### Changed - `CampaignJoinCTA` hides the join button when opt-in is no longer allowed past cutoff date - `useGetCampaignParticipantStatus` reflects cutoff-date awareness - `OndoCampaignDetailsView` renders the entries-closed banner and leaderboard for campaigns past cutoff ## Screenshots <!-- Add screenshots here --> Co-authored-by: VGR-GIT <vangulckrik@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…larity The variable canOptIn was true when opt-in was NOT allowed (entries closed), making its name the exact opposite of its value. Renamed to areEntriesClosed to match the actual semantics. Also fixes a latent bug in leaderboardCampaignId: the original !canOptIn evaluated to true when entries were still open, contradicting the documented intent of enabling the leaderboard for "active campaign past cutoff date". The fix uses areEntriesClosed directly so the leaderboard fetches correctly when entries are closed. Co-authored-by: VGR-GIT <vangulckrik@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Show CampaignHowItWorks when entries are still open (!areEntriesClosed), not after they close. Fix the inverted condition in OndoCampaignDetailsView and update the two affected test cases to match the correct behaviour. 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 existing E2E tests cover the Rewards/Ondo campaign functionality (confirmed by searching e2e and tests directories). The changes do not touch any shared infrastructure: no TabBar, no navigation structure changes, no confirmation flows, no wallet core, no controllers with side effects. The rewards controller type change is non-breaking (optional field addition). No E2E tags are applicable or necessary for these changes. 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.
|




Description
https://consensyssoftware.atlassian.net/browse/RWDS-1109
Changelog
CHANGELOG entry: prevent ondo campaign opt in based on cut off date
Screenshots/Recordings
Note
Medium Risk
Changes opt-in eligibility and leaderboard rendering based on a new
depositCutoffDate, which can affect user ability to join campaigns and what data is fetched/rendered. Risk is moderate due to time-based logic and UI state/loading interactions, but scoped to Rewards campaign details.Overview
Adds
depositCutoffDatesupport forONDO_HOLDINGcampaigns and introducesisOptinAllowedto centralize the time-based opt-in gating.Updates
OndoCampaignDetailsViewandCampaignJoinCTAto hide the join CTA once entries close, show a new dismissibleCampaignEntriesClosedBanner, and treat active-but-closed campaigns similar to completed campaigns for leaderboard fetching/rendering (with a skeleton while participant status loads).Extends types and i18n strings for the new cutoff field and banner text, and adds/updates unit tests to cover cutoff, banner visibility, and loading behaviors.
Written by Cursor Bugbot for commit 94596b3. This will update automatically on new commits. Configure here.