Fix last message text in LHN is not shown correctly#70777
Conversation
|
@QichenZhu 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] |
|
Can you please verify the message is displayed correctly in chat as well, test with |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-native.webmAndroid: mWeb Chromeandroid-web.moviOS: HybridAppios-native.moviOS: mWeb Safariios-web.movMacOS: Chrome / Safarimac-web.movMacOS: Desktopmac-desktop.mov |
| result.alternateText = translateLocal('workspaceActions.downgradedWorkspace'); | ||
| } else if (isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.INTEGRATION_SYNC_FAILED)) { | ||
| result.alternateText = getIntegrationSyncFailedMessage(lastAction, report?.policyID); | ||
| result.alternateText = Parser.htmlToText(getIntegrationSyncFailedMessage(lastAction, report?.policyID)); |
There was a problem hiding this comment.
How can we be confident that we've handled all branches that can produce HTML entities?
There was a problem hiding this comment.
That's the thing that I can't guarantee 100%, but I've tried to look at all cases, translation that is being use,d and add Parser.htmlToText if it contains HTML markdown. If there is a case missed, we can quickly raise another PR to fix it. (I don't think it's a severe issue though when it happens)
pecanoro
left a comment
There was a problem hiding this comment.
@bernhardoj Can you improve the QA steps? We are only testing the bug, but I am worried we might be bringing regressions, so it would be great if we add steps to also test more common cases
|
I've added more test cases. |
|
✋ 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/pecanoro in version: 9.2.19-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.2.19-3 🚀
|


Explanation of Change
Fixed Issues
$ #60746
PROPOSAL: #60746 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
<div>test</div>)Additional tests:
A. Moved expense to self DM
B. Failed to integrate accounting
C. Move IOU report to workspace
D. Move expense to another report
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop