Repository navigation
fix(app): freeze the plan cards while the checkout handoff is pending - #25769
Conversation
…he monthly checkout Google Play's second "Currency differences with prominent display price" rejection paired the trial paywall's "7 days free, then US$269.91/year" with a Stripe cart for US$29.99/month. This pins the direct path: from the default Yearly selection, tapping Monthly updates the trial line to "7 days free, then US$29.99/month" before any checkout, and the CTA opens the Monthly card's own price. The pair in the evidence therefore cannot come from one paywall state; it needs a capture before the Monthly tap or the yearly-to-monthly fallback sheet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The CTA captures the selected price before the session request resolves, but the plan cards stayed tappable. Tapping the other card in that window redrew the trial terms for one plan while the captured plan's cart opened: a paywall reading "7 days free, then US$269.91/year" followed by a monthly Stripe cart, which is the pair in Play's review evidence. Wrap the card row in IgnorePointer(ignoring: _locked) so the selection cannot change between the CTA press and the checkout settling. No visual, copy or variant change; the A/B-tested paywall is untouched. The new widget test holds the session request open, taps the other card, and asserts the terms and the opened price stay on the captured plan.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment |
|
For the UI author approval: this diff is an interaction guard only.
|
|
approve-ui d00038f |
|
/approve-ui d00038f |
What changed and why
The trial paywall's plan cards stayed tappable while the CTA's checkout request was in flight. Tapping the other card in that window redrew the trial terms for one plan while the captured plan's cart opened — a paywall reading
7 days free, then US$269.91/yearfollowed by a monthly Stripe cart, which is the pair in Play's review evidence for the Android release.The card row is now wrapped in
IgnorePointer(ignoring: _locked), so the selection cannot change between the CTA press and the checkout settling. No visual, copy or variant change; the A/B-tested paywall is untouched.Product invariants affected
none
How it was verified
flutter test test/widgets/trial_paywall_monthly_offer_test.dartwith the repo-pinned Flutter 3.44.5:+14: All tests passed!dart analyzeon the changed page and test: clean.dart formatwith Flutter 3.44.5: no changes.Tests
app/test/widgets/trial_paywall_monthly_offer_test.dart—the plan cards are inert while the checkout request is in flight. It holds the session request open, taps the other card, and asserts the terms and the opened price stay on the captured plan. Without theIgnorePointerwrapper the tap changes the terms and the test fails.UI evidence
UI-Evidence: none -- interaction guard only; no visual, copy or layout change.
Failure class (fixes)
Failure-Class: FC-subscription-price-presentment-drift