Skip to content

Show consent checkmark only when consent is granted and await its animation before navigating - #3071

Merged
StylianosGakis merged 3 commits into
bug/onboarding-payment-close-instead-of-retryfrom
bug/onboarding-consent-checkmark-animation
Aug 20, 2026
Merged

Show consent checkmark only when consent is granted and await its animation before navigating#3071
StylianosGakis merged 3 commits into
bug/onboarding-payment-close-instead-of-retryfrom
bug/onboarding-consent-checkmark-animation

Conversation

@StylianosGakis

Copy link
Copy Markdown
Member

a11y

  • if these are UI changes - check for their accessibility

…mation before navigating

The analytics-consent step's green checkmark used to pop in a second after the
screen appeared, regardless of what the member had chosen. It now reflects the
stored analytics consent: shown from the first frame when consent was already
granted, hidden otherwise, and animated in or out when the member allows or
denies.

When the decision flips the checkmark, the step waits for the pop to finish
before advancing: the card reports the visibility it settled on and the
presenter holds navigation until that report arrives. A decision that leaves
the checkmark as it was advances immediately.

All routes off the screen now go through a single pending-navigation state, so
the allow/deny buttons disable while a decision is in flight and repeated taps
can only ever produce one navigation.
@StylianosGakis
StylianosGakis marked this pull request as ready for review August 20, 2026 07:40
@StylianosGakis
StylianosGakis requested a review from a team as a code owner August 20, 2026 07:40
The pendingNavigation latch had no release. Since continueFrom leaves the
consent entry on the back stack and the presenter is WhileSubscribed, coming
back re-subscribed the same presenter with the latch still set, so
buttonsEnabled stayed false and the step could not be completed.

Release the latch after the navigation completes, keeping it held for the whole
in-flight window including the checkmark animation wait. This matches the phone
step, which resets its submitting state for the same reason.

Also re-derive the checkmark from stored consent before the Content early
return, and seed it from lastState, so a presenter that restarts while this
screen is showing does not drop a granted member's checkmark.

The repeated-decisions test no longer sends a decision after the navigation has
happened, which is a tap on an entry sitting behind another one and cannot be
delivered. The burst assertion that covers the actual requirement is unchanged.
@StylianosGakis
StylianosGakis merged commit a044ced into develop Aug 20, 2026
4 checks passed
@StylianosGakis
StylianosGakis deleted the bug/onboarding-consent-checkmark-animation branch August 20, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants