fix: Inconsistent Copy Functionality while requesting money#22633
Conversation
|
@narefyev91 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] |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromeandroid-web.movMobile Web - Safariios-web.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
narefyev91
left a comment
There was a problem hiding this comment.
LGTM!
🎀 👀 🎀 C+ reviewed
| if (!isAttachment) { | ||
| const content = selection || messageHtml; | ||
| if (content) { | ||
| if (isReportPreviewAction) { |
There was a problem hiding this comment.
Can we move the declaration of const iouReport and const displayingMessage inside this if?
There was a problem hiding this comment.
Cool. I've just updated!
| onPress: (closePopover, {reportAction, selection}) => { | ||
| const isReportPreviewAction = ReportActionUtils.isReportPreviewAction(reportAction); | ||
| const iouReport = ReportUtils.getReport(ReportActionUtils.getIOUReportIDFromReportActionPreview(reportAction)); | ||
| const displayingMessage = ReportUtils.getReportPreviewMessage(iouReport, reportAction); |
There was a problem hiding this comment.
| const displayingMessage = ReportUtils.getReportPreviewMessage(iouReport, reportAction); | |
| const displayMessage = ReportUtils.getReportPreviewMessage(iouReport, reportAction); |
|
✋ 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/flodnv in version: 1.3.40-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.40-5 🚀
|
Details
Fixed Issues
$ #22304
PROPOSAL: #18311 (comment)
Tests
Offline tests
Same as Tests
QA Steps
PR 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
Web
Screen.Recording.2023-07-11.at.22.47.17.mov
Mobile Web - Chrome
Screen.Recording.2023-07-11.at.22.48.10.mov
Mobile Web - Safari
Screen.Recording.2023-07-11.at.22.49.56.mov
Desktop
Screen.Recording.2023-07-11.at.22.50.56.mov
iOS
Screen.Recording.2023-07-11.at.22.54.13.mov
Android
Screen.Recording.2023-07-11.at.22.48.10.mov