Repository navigation
fix(app): keep the trial price and Start Free Trial on the first screen at the largest text size - #26791
Conversation
At accessibility text sizes the timeline date moves under the row body so the title and date wrap by word, the brand scales to its header slot instead of cutting to "O...", and the pinned footer stops at 40% of the screen and scrolls, anchored so the button and legal line stay in view. Default text sizes keep main's layout.
… text size The pinned footer's text stops growing at the first accessibility size, so the whole price line and the button fit on screen together on a 375x667 phone and an iPhone 17 Pro. The timeline above repeats the price at full size.
…bove Start Free Trial At accessibility text sizes the offer (notes, Terms and Privacy, price line, button) ends the page's scroll at the reader's own text size instead of a footer clamped to 160%. The button comes last, so its price line always sits right above it. Where the two are taller than a small phone's screen (German and Arabic at the largest size on a 4-inch phone), a tap on the button while the price line is cut off scrolls the whole line into view; checkout starts only with the whole price line on screen.
…ending At the largest text size the inline button swapped its label for a spinner, shrank to 56pt, and the page scrolled up to 112pt; after a failed checkout only part of the button showed. The label now stays laid out under the spinner, so the button and the page stay put through pending, failure and retry.
…screen at every text size At accessibility text sizes the footer stays pinned as on main. Its price line, button and legal links stop growing at 1.7x, the most at which the German renewal line and the button fit half of a 320x568 phone; the legal links scroll inside the footer if needed. Everything above the footer keeps the reader's full text size. Plan cards stack at accessibility sizes and keep plan names and prices on one line, so nothing breaks mid-word or mid-number. Drops the offer-at-the-end-of-the-scroll path and its first-tap scroll.
Keep the PR's stacked plan cards and pinned footer with main's per-month pricing copy and percent saving. At AX sizes a long per-month price line may take the footer's safety shrink (option A), never under the default size. Arabic vowel marks count as part of their word in the plan-card check.
iOS simulator frames at the largest text on iPhone 17 Pro and iPhone SE in English, German, Arabic and Japanese, default text, and the plan switch, replacing the earlier widget renders.
e61a5b5 to
a6dd19d
Compare
…cancel (#26604) ## Problem The 30-day downsell in onboarding opened with "You've been upgraded to 30 days free" and "30 days of Omi Pro, on us", then Claim opened a card form. The copy promised a gift and then asked for a card. - 1,010 of 1,586 owner onboarding viewers (63.7%) see this sheet in 14 days. 275 tap Claim. - 113 of those 275 (41.1%) leave the card form with no success within 1 h. 87 of them (77%) leave within 30 s, median 12.4 s. Source: `~/mobile-ux-agent/runs/2026-11-30/analysis/sessions.md` (PostHog unsampled onboarding and paywall events, Stripe join). This PR closed on Nov 28 after 3 review rounds on one conflict: at the largest text (AX5) on a 375x667 phone, the general review wanted full system text size and the money review wanted the price, renewal terms, Claim and No Thanks in one view. **Nik's decision (Nov 30, same rule as #26791 option A):** the price and the buy button stay on the first screen, even if they render slightly smaller than the system text size. ## Change Copy (unchanged from money review round 2, 49 locales): - Title: "Try Omi Pro free for {days} days" - "Add a card to start. You pay nothing today." - "After {days} days, your paid plan starts at the price below unless you cancel first. Cancel in Settings > Plan & Usage." The old body is split at the sentence boundary into `trialUpsellCardNote` and `trialUpsellRenewalTerms`, word for word in every locale (a script checked each split rejoins to the reviewed string). The reminder promise stays removed. Layout (`app/lib/pages/paywall/trial_upsell_sheet.dart`), round 5: - Pinned on the first screen, in this order: card note ("Add a card to start. You pay nothing today."), renewal terms, price line, Claim, No Thanks. - The title scrolls above them. Its area always holds the title's first whole line and shows only whole lines, so no glyph is sliced at the scroll edge. The title keeps the reader's text size unless the whole offer would not fit under its first line; then it shrinks first (see the scales below). - At large text the pinned block's text stops growing at the largest scale (0.05 steps) where everything fits. If it still does not fit at 1x: gaps tighten (Claim 56 to 48 pt), then the title shrinks to 1x, then title and offer shrink together, never below 14/17 (iOS's smallest body size). Measured with the same strings, styles, widths, gaps and button padding. Default text is unchanged (1x, nothing scrolls). - Result at AX5 (system 3.12x) on head 466100a (heading at 1.7 line height), title / offer scale: 375x667 en 3.12/1.07, de 3.12/1.00, ar 3.12/1.12, ja 3.12/1.37. 320x568 en 2.22/1.00, de 0.95/0.95, ar 1.82/1.00, ja 3.12/1.00. On a 320 pt phone the heading can draw under the system size (en, ar, de) so the whole offer fits; German there is the only case below the default size. Kept from earlier rounds: Claim wraps instead of clipping to "Claim my", terms text is `textPrimary` (light 21:1). Unchanged: the price line, the Claim tap and checkout call, the 30-day duration, eligibility and the Play gate. Files: `trial_upsell_sheet.dart`, `app/lib/l10n/app_*.arb` + generated Dart (via `scripts/l10n.py`), `app/test/widgets/money_actions_text_scale_test.dart`, `app/test/widgets/trial_upsell_copy_test.dart`, changelog fragment. ## Impact estimate If the downsell states the card, the renewal and the price next to Claim, free→paid (device owners) goes 29.77% → 29.80-29.87% (range; zero or negative is possible). - A: 3,467 / 11,646 owners = 29.77%, ACTUAL, `runs/2026-11-30/metrics.json` (Oct 31 to Nov 30). - Reach: 275 owner Claims / 14 d ≈ 137 per week, ACTUAL (sessions.md). - Rate: the 41.1% card-form back-out (113 / 275) falls 2 to 4 points, MODELED (readers who already know a card is coming should leave less often; no Omi A/B on this copy). That is +2.8 to +5.5 trial starts per week. - Downstream: trial → paid 25% to 50%, MODELED from the ACTUAL 7-day owner rates (19 / 41 = 46.3% Nov 29, 37 / 62 = 59.7% Nov 28), discounted because no 30-day trial has matured yet. - Result: +0.7 to +2.8 owner payers per week (3 to 12 per 30 d, over 11,646 owners = +0.03 to +0.10 pp). The Nov 28 brief's +3 to 6 per week is above this range. Honest copy may also lower the Claim rate. Payments land 30+ days after the start. ## Evidence iOS simulator evidence (iOS 26.4, iPhone 17 Pro and iPhone SE 3rd gen, offline backend with live Stripe prices). Builds: images 1-2 = bc35c17 (last code commit; "main" columns = origin/main a4c0f74); image 3 = c21e4b8 (17 Pro) and d31d4d3 (SE); image 4 = c21e4b8; image 5 = c21e4b8 (default text, unchanged since: the heading style only changes at accessibility sizes). Largest text (AX5), first screen, no scroll. iPhone SE main | this change, iPhone 17 Pro main | this change:  Arabic and Japanese at AX5 with real glyphs (17 Pro, SE, 17 Pro, SE):  Claim opens checkout, Back returns to the same offer (17 Pro default text, then SE at the largest text):  No thanks closes the offer and onboarding continues (17 Pro default, SE AX5):  Default text, light and dark (17 Pro, SE):  | Check (widget tests, AX5 = 53/17) | Nov 28 head 4fc0f10 | c21e4b8 (historical; still true at 466100a) | |---|---|---| | Card note, terms, price, Claim, No Thanks all on screen with no scroll, in that order, 375x667 and 320x568, en/de/ar/ja | no: end of the sheet after scrolling | yes, 8/8 | | Heading's first line whole, no heading line cut by the scroll edge | not tested | yes, 8/8 | | Offer never below 14/17, title never smaller than the offer | n/a | yes | | Default text: 1x and nothing scrolls | yes | yes | | Claim checks out the shown price | yes | yes | | Double tap starts one checkout, label shows Please wait | not tested | yes | | Declined card (checkout failed) leaves the reader on the sheet, Claim works again | not tested | yes | Historical, round 5: simulator BEFORE (origin/main a4c0f74) / AFTER (c21e4b8), iOS 26.4, iPhone 17 Pro and iPhone SE (3rd gen), offline backend with live Stripe prices. Path: fresh account, sign in, signup trial paywall, close, 30-day sheet. Contact sheet (BEFORE | AFTER, AX5 rows first): `~/mobile-ux-agent/runs/2026-11-30/p2/before-after.png`; frames in `~/mobile-ux-agent/runs/2026-11-30/p2/sim/{before,after}/`. | First screen, no scroll | main 17 Pro | main SE | c21e4b8 17 Pro | c21e4b8 SE | |---|---|---|---|---| | AX5: card note, renewal terms, price, Claim, No Thanks fully visible | no (heading and part of the body only, no card note in the copy) | no | yes | yes | | AX5: heading's first line whole | yes | yes | yes ("Try Omi") | yes ("Try Omi") | | Default text, light: all five visible | no card note in the copy | no card note | yes | yes | | Default text, dark: all five visible | no card note in the copy | no card note | yes | yes | | AX5, app killed with the sheet up and reopened | offer not shown again (resumes at name) | same | offer not shown again (resumes at Grant Permissions) | same | ## At ship - No flags, no new events, no new prices. Events unchanged: Trial Upsell Shown / Claimed / Declined. - Read after ship: owner Claim → Back without success in 1 h (113 / 275 = 41.1% today). ## Tests - `money_actions_text_scale_test.dart`: 17 pass on 466100a. At AX5 on 375x667 and 320x568 in en, de, ar, ja: card note, terms, price, whole Claim and No Thanks inside the sheet in that order before any scroll, both buttons tappable, the heading's first line whole and no heading line cut by the scroll edge; drawn scale; double-tap lock; declined charge stays on the sheet and retries the same offer. - `trial_upsell_copy_test.dart`: all 49 locales name the trial length and the locale's own Plan & Usage in the pinned terms, no placeholders, no dashes. - Paywall, billing and payment suites: 61 files, 849 / 849 pass. CI on c21e4b8 was green (27 pass, 26 skipped); CI on 466100a below. - `l10n.py check` ok (49 locales). ux-contract, ui-isolate, brand guards clean. `make preflight` passed. ## Round 7-8 change At the largest text the heading's lines get 1.7 line height with even leading (default size unchanged). On iPhone 17 Pro in Arabic, the tanween above the second line's alif otherwise showed a sliver under the first, whole line. `money_actions_text_scale_test` checks the spacing at accessibility sizes and its absence at default. ## Not verified - Reopening after a kill with the sheet up does not offer the trial again, on main and on this head (onboarding resumes past the paywall step). Not changed here. - German on the simulator was not shot; the widget tests cover it at AX5 on 375 and 320 pt phones. Arabic and Japanese were shot on both phones (image 2). - German at AX5 on a 320 pt wide phone draws the title and offer at 0.95x, slightly under the default size, so all five items fit before scrolling. - Money review of this round: the copy is unchanged from round 2, the split is verbatim. ## Product invariants affected none ## Failure class (fixes) Failure-Class: none UI-Evidence: see the images above (.agent-artifacts/ui-evidence/mux-2026-11-30-trial-offer-truthful-copy)
There was a problem hiding this comment.
4 issues found across 8 files
Confidence score: 4/5
trial_paywall_real_font_test.dartcan skip the word-break assertion for a wide Arabic word because the skip relies on a guessed glyph width. Measure the word withTextPainteror narrow the skip condition.trial_paywall_real_font_test.dartdiscards every exception raised after the tap, which could hide unrelated test failures. Assert on the expected exception or clear it without swallowing others.trial_paywall_real_font_test.dartgives the home-button and no-home-button pending-checkout cases identical names, making reports ambiguous and--namefilters match both. Include the home-button variant in the test name.evidence.jsonreferences a build hash that does not resolve in this checkout, so the screenshot-to-tree match cannot be verified. Use a resolvable build commit or remove that claim.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".agent-artifacts/ui-evidence/mux-2026-11-30-trial-paywall-ax/evidence.json">
<violation number="1" location=".agent-artifacts/ui-evidence/mux-2026-11-30-trial-paywall-ax/evidence.json:7">
P3: The build reference `e61a5b5289` does not resolve in this checkout, so the claim that the screenshot matches this tree can't be verified. Name the commit the screenshots were built from by a resolvable hash, and drop the unexplained 'trailer-free' and 'round 5' terms.</violation>
</file>
<file name="app/test/widgets/trial_paywall_real_font_test.dart">
<violation number="1" location="app/test/widgets/trial_paywall_real_font_test.dart:225">
P2: `tester.takeException()` here discards every exception raised after the tap, not only the snackbar error. Assert on the expected exception, or clear it in a way that still fails on unrelated errors.</violation>
<violation number="2" location="app/test/widgets/trial_paywall_real_font_test.dart:261">
P2: This heuristic skips the word-break assertion for Arabic words based on a guessed 12pt glyph width, so a real break in a wide Arabic word goes unchecked. Measure the word with `TextPainter` or limit the skip to the test font's square glyphs.</violation>
<violation number="3" location="app/test/widgets/trial_paywall_real_font_test.dart:287">
P2: The pending-checkout test names omit the home-button variant. The 375x667 at largest-size cases with and without a home button get identical names, so reports are ambiguous and `--name` filters match both. Append `' home button'` when `homeButton` is true, as the main loop does.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| final tops = {for (final box in boxes) box.top.round()}; | ||
| // The test font draws Arabic letters as 1em squares, about twice SF Arabic's width: a word | ||
| // wider than the whole line in squares only, it is not a layout fact. | ||
| final squares = _arabic.hasMatch(match.group(0)!) && |
There was a problem hiding this comment.
P2: This heuristic skips the word-break assertion for Arabic words based on a guessed 12pt glyph width, so a real break in a wide Arabic word goes unchecked. Measure the word with TextPainter or limit the skip to the test font's square glyphs.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/test/widgets/trial_paywall_real_font_test.dart, line 261:
<comment>This heuristic skips the word-break assertion for Arabic words based on a guessed 12pt glyph width, so a real break in a wide Arabic word goes unchecked. Measure the word with `TextPainter` or limit the skip to the test font's square glyphs.</comment>
<file context>
@@ -76,14 +173,244 @@ void main() {
+ final tops = {for (final box in boxes) box.top.round()};
+ // The test font draws Arabic letters as 1em squares, about twice SF Arabic's width: a word
+ // wider than the whole line in squares only, it is not a layout fact.
+ final squares = _arabic.hasMatch(match.group(0)!) &&
+ (match.end - match.start) * paragraph.textScaler.scale(12) > paragraph.size.width;
+ if (squares) continue;
</file context>
| await tester.tapAt(cta.center); | ||
| await tester.pumpAndSettle(); | ||
| expect(auth.checkouts, 1); | ||
| tester.takeException(); // the failed-checkout snackbar is not under test here |
There was a problem hiding this comment.
P2: tester.takeException() here discards every exception raised after the tap, not only the snackbar error. Assert on the expected exception, or clear it in a way that still fails on unrelated errors.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/test/widgets/trial_paywall_real_font_test.dart, line 225:
<comment>`tester.takeException()` here discards every exception raised after the tap, not only the snackbar error. Assert on the expected exception, or clear it in a way that still fails on unrelated errors.</comment>
<file context>
@@ -76,14 +173,244 @@ void main() {
+ await tester.tapAt(cta.center);
+ await tester.pumpAndSettle();
+ expect(auth.checkouts, 1);
+ tester.takeException(); // the failed-checkout snackbar is not under test here
+ debugDefaultTargetPlatformOverride = null;
+ });
</file context>
| (Size(375, 667), 1.0, false), | ||
| ]) { | ||
| for (final locale in const [Locale('en'), Locale('de'), Locale('ja')]) { | ||
| final name = '${locale.languageCode} ${size.width.toInt()}x${size.height.toInt()} at ${(scale * 100).round()}%'; |
There was a problem hiding this comment.
P2: The pending-checkout test names omit the home-button variant. The 375x667 at largest-size cases with and without a home button get identical names, so reports are ambiguous and --name filters match both. Append ' home button' when homeButton is true, as the main loop does.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At app/test/widgets/trial_paywall_real_font_test.dart, line 287:
<comment>The pending-checkout test names omit the home-button variant. The 375x667 at largest-size cases with and without a home button get identical names, so reports are ambiguous and `--name` filters match both. Append `' home button'` when `homeButton` is true, as the main loop does.</comment>
<file context>
@@ -76,14 +173,244 @@ void main() {
+ (Size(375, 667), 1.0, false),
+ ]) {
+ for (final locale in const [Locale('en'), Locale('de'), Locale('ja')]) {
+ final name = '${locale.languageCode} ${size.width.toInt()}x${size.height.toInt()} at ${(scale * 100).round()}%';
+ testWidgets('$name: a pending then failed checkout keeps the button and the page in place, and retry works',
+ (tester) async {
</file context>
| final name = '${locale.languageCode} ${size.width.toInt()}x${size.height.toInt()} at ${(scale * 100).round()}%'; | |
| final name = '${locale.languageCode} ${size.width.toInt()}x${size.height.toInt()}' | |
| '${homeButton ? ' home button' : ''} at ${(scale * 100).round()}%'; |
| { | ||
| "file": "001-mobile-ios-trial-paywall-largest-text.png", | ||
| "platform": "mobile-ios", | ||
| "description": "iOS simulator, largest text (AX5), first screen with no scroll. Left: main at a4c0f74194 (round 5, before main's per-month copy), iPhone 17 Pro light: price at full size, headline clipped. Then this change (built at e61a5b5289, same tree as the trailer-free 20166e8cad), with iOS set to dark (this paywall renders light under dark appearance on main and here alike): iPhone 17 Pro and iPhone SE, whole price line directly above a whole Try for US$0.00 button, Terms and Privacy below.", |
There was a problem hiding this comment.
P3: The build reference e61a5b5289 does not resolve in this checkout, so the claim that the screenshot matches this tree can't be verified. Name the commit the screenshots were built from by a resolvable hash, and drop the unexplained 'trailer-free' and 'round 5' terms.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At .agent-artifacts/ui-evidence/mux-2026-11-30-trial-paywall-ax/evidence.json, line 7:
<comment>The build reference `e61a5b5289` does not resolve in this checkout, so the claim that the screenshot matches this tree can't be verified. Name the commit the screenshots were built from by a resolvable hash, and drop the unexplained 'trailer-free' and 'round 5' terms.</comment>
<file context>
@@ -0,0 +1,33 @@
+ {
+ "file": "001-mobile-ios-trial-paywall-largest-text.png",
+ "platform": "mobile-ios",
+ "description": "iOS simulator, largest text (AX5), first screen with no scroll. Left: main at a4c0f74194 (round 5, before main's per-month copy), iPhone 17 Pro light: price at full size, headline clipped. Then this change (built at e61a5b5289, same tree as the trailer-free 20166e8cad), with iOS set to dark (this paywall renders light under dark appearance on main and here alike): iPhone 17 Pro and iPhone SE, whole price line directly above a whole Try for US$0.00 button, Terms and Privacy below.",
+ "captured_by": "agent",
+ "source": "visual-audit"
</file context>
Problem
At the largest iOS text size the free trial paywall breaks. The brand cuts to "O...", "Today" in the timeline stacks one letter per line next to its date, and on a 375x667 phone the footer overflows (Privacy Policy is cut, the page body gets no room). Gotcha 12 in the MUX pipeline README logged this on 2026-10-28. The round 2 build of this PR also showed plan cards breaking mid-word at AX5 ("Mont/hly", "US$/29./99").
Decision
Nik chose option A on 2026-11-30, which overrides the round 1 review's no-clamp finding. At the largest text sizes, the price and the buy button stay on the first screen, even if they draw slightly smaller than the system text size.
Change
app/lib/pages/paywall/trial_paywall_page.dart. Everything below applies at accessibility text sizes only (scale >= 1.6, iOS AX1 and up), except the busy-button fix, which applies at every size. The default text size otherwise keeps main's widgets.Money: the CTA still binds to the shown offer. The double-tap lock and the provider's in-flight guard are unchanged, and so are prices and the Play paths.
Impact estimate
Owners who pay: 29.77% -> 29.78-29.83% (MODELED).
runs/2026-11-30/metrics.json(3467 paid of 11646 observed owners, Oct 31 to Nov 30).Evidence
iOS simulator (iOS 26.4), iPhone 17 Pro and iPhone SE (3rd gen), offline backend with live Stripe prices, built at e61a5b5 (merge with main; same tree as the current head minus the evidence commit). Every frame opened. Raw frames:
~/mobile-ux-agent/runs/2026-11-30/p1/r6/and round 5~/mobile-ux-agent/runs/2026-11-30/p1/sim/r5/.Largest text (AX5), first screen with no scroll. Left: main a4c0f74 (round 5, before main's per-month copy) for comparison. Then this change on iPhone 17 Pro and iPhone SE: the whole price line sits right above a whole "Try for US$0.00", Terms and Privacy below.
Default text, iPhone 17 Pro: main a4c0f74 (round 5) | this change. Default keeps main's layout, now with main's per-month yearly price line.
Largest text in German, Arabic and Japanese (17 Pro, SE each), system glyphs:
Plan switch at the largest text: scrolled to the cards and picked Monthly then Yearly (German SE), Monthly (Arabic 17 Pro, Japanese SE). The pinned price line follows the selected plan; card prices stay on one line.
Round 5 on the pre-merge head 2d9a45e also covered close, reopen, relaunch, Close/Restore pinned and the Terms/Privacy round trip on both phones (
~/mobile-ux-agent/runs/2026-11-30/p1/result.txt, "Simulator r5").Merge with main (round 6)
Main's per-month pricing copy (#26841) conflicted in
trial_paywall_page.dart. The merge keeps this PR's stacked plan cards and pinned footer with main's per-month price, percent saving and yearly terms line. That line is longer, so on small phones at AX5 it can take the footer's safety shrink (German 320x568: 0.78, Arabic: 0.68 of the 1.7x cap), still above the default text size, per option A. The real-font test now allows that shrink with a floor at the default size, and counts Arabic vowel marks as part of their word in the plan-card check.At ship
Tests
app/test/widgets/trial_paywall_real_font_test.dartuses SF Pro and covers en/de/ar/ja on 402x874 and 375x667 with Face ID insets, and 375x667 and 320x568 with home-button insets, at 200% and AX5. On the first frame with no scroll: the price line is whole, on screen and right above the button; the footer is at most half the screen; the price line and button are laid out at the 1.7x cap before fitting, and after the fit shrink their drawn scale stays at or above 1.0x (the default size); the headline keeps the system scale; one tap starts checkout.check_mobile_ux_contract,check_mobile_ui_isolateandcheck_brand_uiare clean.Not verified
Product invariants affected
none
Failure class (fixes)
Failure-Class: none
UI-Evidence: see the images above (.agent-artifacts/ui-evidence/mux-2026-11-30-trial-paywall-ax)