fix: Room header displays a two-line description inconsistently#87397
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
@ryntgh Please update the testing steps to include verifying the room description text in the LHN:
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.hybrid.mp4Android: mWeb Chromeandroid.chrome.mp4iOS: HybridAppios.hybrid.mp4iOS: mWeb Safariios.safari.mp4MacOS: Chrome / Safarimac.safari.mp4 |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@dmkt9 Got it, I've updated the testing steps |
|
🚧 @arosiclair 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! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 9.3.59-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a display bug fix that normalizes newlines to spaces in room/workspace description headers and fixes raw HTML rendering in sidebar messages. It doesn't change any user-facing features, workflows, settings names, or terminology that the help site documents. The only related help site reference is in |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.3.59-4 🚀
|
Explanation of Change
This PR adds
StringUtils.lineBreaksToSpacesto bothreportDescriptionandpolicyDescriptioninHeaderView.tsxto normalize newlines into spaces for chat and workspace rooms. This PR also fixesgetWorkspaceDescriptionUpdatedMessageto use a readable message instead of raw HTMLFixed Issues
$ #87093
PROPOSAL: #87093 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
#adminsroom in the LHN, the system-generated message reads:set the description of this workspace to "FirstLine SecondLine"(you might need to resize the screen to see the full message).set the room description to: "FirstLine SecondLine"PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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.ScrollViewcomponent to make it scrollable when more elements are added to the page.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-App-2.mp4
Android: mWeb Chrome
Android-mWeb.mp4
iOS: Native
iOS-App-2.mp4
iOS: mWeb Safari
iOS-mWeb.mp4
MacOS: Chrome / Safari
MacOS-Chrome.mp4