-
Notifications
You must be signed in to change notification settings - Fork 3k
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: 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 |
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.
LGTM!
🎀 👀 🎀 C+ reviewed
const message = _.last(lodashGet(reportAction, 'message', [{}])); | ||
const messageHtml = lodashGet(message, 'html', ''); | ||
|
||
const isAttachment = _.has(reportAction, 'isAttachment') ? reportAction.isAttachment : ReportUtils.isReportMessageAttachment(message); | ||
if (!isAttachment) { | ||
const content = selection || messageHtml; | ||
if (content) { | ||
if (isReportPreviewAction) { |
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.
Can we move the declaration of const iouReport
and const displayingMessage
inside this if
?
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.
Cool. I've just updated!
@@ -172,13 +172,18 @@ export default [ | |||
// `ContextMenuItem` with `successText` and `successIcon` which will fallback to | |||
// the `text` and `icon` | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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