Skip to content

[PANA-4766] Add truncationMode property to TextStyle schema#318

Merged
gonzalezreal merged 1 commit into
masterfrom
gonzalezreal/PANA-4766/mobile-text-truncation-mode
Oct 29, 2025
Merged

[PANA-4766] Add truncationMode property to TextStyle schema#318
gonzalezreal merged 1 commit into
masterfrom
gonzalezreal/PANA-4766/mobile-text-truncation-mode

Conversation

@gonzalezreal

@gonzalezreal gonzalezreal commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

Adds a truncationMode property to the TextStyle schema to capture text truncation behavior in Session Replay.

The mobile Session Replay schemas capture text content, position, and basic styling (color, font, size) but don't capture how text should be truncated when it exceeds the wireframe bounds.

Here is the suggested mapping per platform:

Platform API Value truncationMode Notes
iOS NSLineBreakMode byTruncatingTail "tail" Most common
byTruncatingHead "head" Ellipsis at start
byTruncatingMiddle "middle" Ellipsis in middle
byClipping "clip" Hard cut
byWordWrapping (omit) Normal wrapping
Android Classic TruncateAt END "tail" Most common
START "head" Ellipsis at start
MIDDLE "middle" Ellipsis in middle
MARQUEE (omit) Scrolling animation
null + maxLines "clip" No ellipsis, hard cut
null (omit) Normal wrapping
Compose TextOverflow Ellipsis "tail" Only ellipsis option
Clip "clip" Hard cut
Visible (omit) No truncation
Flutter TextOverflow ellipsis "tail" Only ellipsis option
clip "clip" Hard cut
fade "clip" Fades out
visible (omit) No truncation

@gonzalezreal gonzalezreal requested review from a team as code owners October 28, 2025 10:25
@gonzalezreal gonzalezreal force-pushed the gonzalezreal/PANA-4766/mobile-text-truncation-mode branch from 5c6ec09 to 783c543 Compare October 28, 2025 10:28
Comment thread lib/cjs/generated/sessionReplay.d.ts
@gonzalezreal gonzalezreal merged commit 72236fa into master Oct 29, 2025
11 of 12 checks passed
@gonzalezreal gonzalezreal deleted the gonzalezreal/PANA-4766/mobile-text-truncation-mode branch October 29, 2025 08:39
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.

4 participants