Repository navigation
Give HTML system messages the wrapping styles the text branch already has - #102382
Conversation
… has ReportActionItemBasicMessage styles its plain-text branch with chatItemMessage, which carries maxWidth, pre-wrap and break-word. The children branch, used by every <comment><muted-text> system message, rendered into an unstyled View, so the text inside kept word-break: normal. An unbreakable token in the copy, such as the submitter address a QuickBooks export error quotes, then set the block's minimum width and the wide RHP action column clipped every line. styles.renderHTML holds the same three properties and is how the repo already wraps a RenderHTML elsewhere. Both word-break and white-space inherit, so they reach the text node the renderer creates.
|
@Krishna2323 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@Krishna2323 this is ready now |
garrettmknight
left a comment
There was a problem hiding this comment.
Looks good from a product perspective
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid_hybrid.mp4Android: mWeb Chromeandroid_mWeb.mp4iOS: HybridAppios_hybrid.mp4iOS: mWeb Safariios_mWeb.mp4 |
|
@mukhrr please merge main |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 marcochavezf has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/marcochavezf in version: 9.5.2-0 🚀
|
|
No help site update is needed. This PR is a layout bug fix that lets long words in system messages wrap instead of being cut off, and no help article describes that behavior. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.5.2-4 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
System messages that render HTML went into a wrapper carrying no wrapping styles, so a long unbreakable word could not break and the narrow RHP column clipped it. This change puts the existing
renderHTMLstyle on that wrapper, so those messages wrap the way plain-text system messages already do.Fixed Issues
$ #99937
PROPOSAL: #99937 (comment)
Tests
Preconditions: an account that has never used Accounting, a QuickBooks Online company in which the submitter's email does not already exist as a vendor, and a desktop window at least 1280px wide.
Offline tests
The message is rendered from report action data already in Onyx and the change only affects how that text wraps, so network state cannot alter it. To confirm no regression: with the report open in the right-hand pane, turn off your network connection and verify the system message still renders complete and wrapped, then reconnect and verify it is unchanged.
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari