[Held requests] break held message into separate system message + comment#38738
Conversation
robertjchen
left a comment
There was a problem hiding this comment.
Worked great locally! 🙌
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
Hi @robertjchen , may I know does this PR need C+ review? I'll do it if needed. |
|
@eh2077 thanks for the offer! However, we are moving quickly on this one and will be merging it shortly so C+ review is not needed. 👍 |
|
✋ 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/robertjchen in version: 1.4.56-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.56-8 🚀
|
| actorAccountID: currentUserAccountID, | ||
| message: [ | ||
| { | ||
| type: CONST.REPORT.MESSAGE.TYPE.TEXT, |
There was a problem hiding this comment.
Comming from #40408, this message type should be CONST.REPORT.MESSAGE.TYPE.COMMENT. Otherwise, it causes inconsistency with BE and displaying style
| function putOnHold(transactionID: string, comment: string, reportID: string) { | ||
| const createdReportAction = ReportUtils.buildOptimisticHoldReportAction(comment); | ||
| const createdReportAction = ReportUtils.buildOptimisticHoldReportAction(); | ||
| const createdReportActionComment = ReportUtils.buildOptimisticHoldReportActionComment(comment); |
There was a problem hiding this comment.
We should have set the lastVisibleActionCreated to createdReportActionComment.created optimistically.
Fixed it in #54793
Details
Fixed Issues
$ #36979
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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