Repository navigation
fix(app): stop Profile settings rows overflowing with enlarged text - #13019
Conversation
There was a problem hiding this comment.
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-oponTapprovides 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, |
There was a problem hiding this comment.
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
41e602f to
153e366
Compare
|
Thanks @nathanjcx — clean extraction and a solid fix for #12898. Reviewed all four changed files:
One follow-up worth a maintainer call (the earlier bot review raised it too, and it's fair): the email row in 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 |
kodjima33
left a comment
There was a problem hiding this comment.
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).
The beta tag doesn't overflow anymore. Fixedd issue: #12898
Summary
Fixes #12898. On the Profile settings page the "Transcribe Later" row painted
RIGHT OVERFLOWED BY 32 PIXELSand 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'sExpandedcolumn.Changes:
ProfileSettingsTilewidget (app/lib/pages/settings/widgets/profile_settings_tile.dart), extracted from the two near-identical row builders inprofile.dart. Title and tag sit in aWrap, 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 sameWrapfor its title, BETA/NEW tags, and trailing chip.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.shpasses;dart formatclean.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