-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix/17212: Also update html message and get last message in LHN when edit offline #17586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/17212: Also update html message and get last message in LHN when edit offline #17586
Conversation
|
@francoisl @fedirjh One of you needs to 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] |
|
@fedirjh Everything is updated, help to check again |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-04-18.at.5.40.31.PM.movMobile Web - ChromeScreen.Recording.2023-04-18.at.6.03.22.PM.movMobile Web - SafariScreen.Recording.2023-04-18.at.5.49.24.PM.movDesktopScreen.Recording.2023-04-18.at.6.13.15.PM.moviOSScreen.Recording.2023-04-18.at.5.48.16.PM.movAndroidScreen.Recording.2023-04-18.at.6.00.22.PM.mov |
fedirjh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| lastMessageText: lodashGet(lastVisibleAction, 'message[0].text'), | ||
| lastVisibleActionCreated: lastVisibleAction.created, | ||
| lastActorEmail: lastVisibleAction.actorEmail, | ||
| lastMessageText: Str.htmlDecode(lastMessageText), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need Str.htmlDecode() here if we already use htmlToTextabove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nevermind got it, it's to decode sequences like < to <, etc.
|
|
|
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
…-message-on-LHN-in-offline-mode (cherry picked from commit b2c28ac)
…-17586 🍒 Cherry pick PR #17586 to staging 🍒
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.3.1-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.1-3 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
Details
Also update html message and get last message in LHN when edit offline
Fixed Issues
$ #17212
PROPOSAL: #17212 (comment)
$ REGRESSION: #17574
Tests
codecodemessage is updated on LHNOffline tests
Same above
QA Steps
codecodemessage is updated on LHNPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Screen-Recording-2023-04-18-at-22.28.33.mp4
Mobile Web - Chrome
Record_2023-04-18-22-57-55.mp4
Mobile Web - Safari
Screen-Recording-2023-04-18-at-22.36.51.mp4
Desktop
Screen-Recording-2023-04-18-at-22.40.38.mp4
iOS
Screen-Recording-2023-04-18-at-22.55.34.mp4
Android
17212.mp4