Skip to content

fix(app): stop Profile settings rows overflowing with enlarged text - #13019

Merged
kodjima33 merged 1 commit into
BasedHardware:mainfrom
nathanchengx:fix/profile-row-overflow
Sep 8, 2026
Merged

kodjima33 merged 1 commit into
BasedHardware:mainfrom
nathanchengx:fix/profile-row-overflow

Conversation

@nathanchengx

@nathanchengx nathanchengx commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

The beta tag doesn't overflow anymore. Fixedd issue: #12898

IMG_2329

Summary

Fixes #12898. On the Profile settings page the "Transcribe Later" row painted RIGHT OVERFLOWED BY 32 PIXELS and the "Voice response" row broke mid-word ("Voice re / sponse") next to its "Headphones only" chip once system text was enlarged or bold.

Cause: the row builder placed the title and the BETA tag in a rigid Row, so the title could never give up width, and the value chip took whatever it wanted from the title's Expanded column.

Changes:

  • New ProfileSettingsTile widget (app/lib/pages/settings/widgets/profile_settings_tile.dart), extracted from the two near-identical row builders in profile.dart. Title and tag sit in a Wrap, so the title wraps by word and the tag flows beside or below it. The value chip is capped to 60% of the width it shares with the title (after icon, chevron, and gaps) and ellipsizes past that, so the title always keeps at least 40%.
  • settings_drawer.dart's row gets the same Wrap for its title, BETA/NEW tags, and trailing chip.
  • Widget test app/test/widgets/profile_settings_tile_test.dart: renders the tile 320 px wide at 1.6x text with title + BETA + chip and asserts no overflow exception; asserts a long chip is capped and the title keeps its share; covers the subtitle/chevron options.

Verification

  • bash test.sh (full app suite) green locally; bash scripts/analyze_ratchet.sh passes; dart format clean.
  • Verified on the iPhone 17 simulator with Dynamic Type at extra-extra-extra-large (xcrun simctl ui <udid> content_size extra-extra-extra-large): no overflow stripes on the Profile page, "Transcribe Later" wraps with BETA on its own line, "Voice response" wraps by word, and long chip values ("Headphones only", the email) ellipsize instead of squeezing the title.

Product invariants affected

none

Failure-Class: none

🤖 Generated with Claude Code

https://claude.ai/code/session_01YU5BMEAfcFxNSWmLLDNfZ3

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 4 files

Confidence score: 4/5

  • In app/lib/pages/settings/widgets/profile_settings_tile.dart, the new chip cap can truncate long email addresses while the email row’s no-op onTap provides no way to reveal the full value, reducing profile information visibility; allow expansion, copying, or another full-value affordance.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="app/lib/pages/settings/widgets/profile_settings_tile.dart">

<violation number="1" location="app/lib/pages/settings/widgets/profile_settings_tile.dart:130">
P2: The new chip cap ellipsizes the email value, but the email row has a no-op `onTap` and no other affordance, so a user with a long email address can no longer see the full value on the Profile page. Previously the full email was always visible. Since the name row at least opens the edit dialog, consider giving the email row a real action (e.g. show the full value in a sheet) or exempting it from the hard cap, so truncation never silently hides data.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

child: Text(
chipValue!,
maxLines: 1,
overflow: TextOverflow.ellipsis,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The new chip cap ellipsizes the email value, but the email row has a no-op onTap and no other affordance, so a user with a long email address can no longer see the full value on the Profile page. Previously the full email was always visible. Since the name row at least opens the edit dialog, consider giving the email row a real action (e.g. show the full value in a sheet) or exempting it from the hard cap, so truncation never silently hides data.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At app/lib/pages/settings/widgets/profile_settings_tile.dart, line 130:

<comment>The new chip cap ellipsizes the email value, but the email row has a no-op `onTap` and no other affordance, so a user with a long email address can no longer see the full value on the Profile page. Previously the full email was always visible. Since the name row at least opens the edit dialog, consider giving the email row a real action (e.g. show the full value in a sheet) or exempting it from the hard cap, so truncation never silently hides data.</comment>

<file context>
@@ -0,0 +1,157 @@
+                    child: Text(
+                      chipValue!,
+                      maxLines: 1,
+                      overflow: TextOverflow.ellipsis,
+                      style: const TextStyle(color: Colors.white, fontSize: 13, fontWeight: FontWeight.w500),
+                    ),
</file context>

The Profile page's "Transcribe Later" row painted RIGHT OVERFLOWED
stripes and "Voice response" broke mid-word next to its "Headphones
only" chip once system text was enlarged (#12898). The row builder put
the title and BETA tag in a rigid Row, so the title could not give up
width, and the value chip took whatever it wanted from the title.

- New ProfileSettingsTile widget (extracted from the two row builders in
  profile.dart): title and tag sit in a Wrap so the title wraps by word
  and the tag flows beside or below it; the chip is capped to 60% of the
  width shared with the title and ellipsizes past that.
- settings_drawer.dart's row gets the same Wrap for its title and tags.
- Widget test renders the tile narrow at 1.6x text and asserts no
  overflow, that a long chip is capped and the title keeps its share,
  and the subtitle/chevron options.

Failure-Class: none

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YU5BMEAfcFxNSWmLLDNfZ3
@nathanchengx
nathanchengx force-pushed the fix/profile-row-overflow branch from 41e602f to 153e366 Compare September 8, 2026 01:24
@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @nathanjcx — clean extraction and a solid fix for #12898. Reviewed all four changed files:

  • app/lib/pages/settings/widgets/profile_settings_tile.dart — good structure. The Wrap for title + tag (runSpacing: 4) lets the tag drop to its own line instead of overflowing, and chipMaxWidth() capping the chip at 60% of the width it shares with the title (after icon, chevron, and gaps) guarantees the title keeps at least 40%, which is what stops the mid-word breaks on "Voice response". maxLines: 1 + TextOverflow.ellipsis on the chip is the right call. One robustness note for future reuse: the cap is computed from LayoutBuilder constraints under the tile padding, which is correct here, but in an unbounded-width context the clamp would pass infinity through and the cap would silently become "no cap". Fine for the current ListView usage — just something to keep in mind if the tile gets reused.
  • app/lib/pages/settings/profile.dart — the delegation preserves the old visuals exactly (tile 0xFF1C1C1E / chip 0xFF2A2A2E / chevron 0xFF3C3C43, 16/18 padding, subtitle still gated on chipValue == null), and the second row builder keeps its InkWell behavior via useInkWell: true. Nice bonus: the BETA tag moves from a hardcoded 'BETA' to context.l10n.beta (still 'BETA' in app_en.arb), which the settings drawer already did.
  • app/lib/pages/settings/settings_drawer.dart — the same Row -> Wrap swap for title + BETA/NEW tags + trailing chip; replacing the manual SizedBox(width: 8) spacers with spacing: 8 is equivalent at normal sizes and fixes the overflow at large text.
  • app/test/widgets/profile_settings_tile_test.dart — good regression coverage: the exact "Transcribe Later" Text Overflow in App Debug #12898 scenario (title + BETA + chip at 1.6x text, 320 px wide) asserting no layout exception, plus the cap math (chipBox.width <= chipMaxWidth + 0.01) and the title-share invariant, subtitle gating, and chevron hiding.

One follow-up worth a maintainer call (the earlier bot review raised it too, and it's fair): the email row in profile.dart passes the full email as chipValue with a no-op onTap and showChevron: false. Before this PR a long email overflowed that row outright (broken layout, value unreadable anyway); now it ellipsizes at the cap — strictly better layout, but the full value becomes unreachable from this screen. If long emails matter here, a tap-to-copy or long-press-reveal on that row would close the gap. Not blocking for a fix that addresses the reported overflow.

Dart Analyze & Tests and Android Compile Smoke are green on this head. Leaving the merge call to a human maintainer.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level added flutter flutter work positive-signal Automation verified a genuine fix/quality contribution labels Sep 8, 2026

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix(app): fixes real overflow bug (#12898) in Profile settings rows with enlarged text, clear root cause, CI green, widget test added, confirmed not already fixed on main. Confidence 4/5 (diff slightly exceeds 300-line scoped-diff guideline, all else passes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flutter flutter work positive-signal Automation verified a genuine fix/quality contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Transcribe Later" Text Overflow in App Debug

3 participants