-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 Copying Sent Money Report Action text copies a wrong text #27889
Fix Copying Sent Money Report Action text copies a wrong text #27889
Conversation
@mananjadhav 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] |
@mananjadhav could you please review this PR? the issue is a deploy blocker |
@narefyev91 could you review as well? thanks. |
}); | ||
Clipboard.setString(displaymessage); | ||
let displayMessage; | ||
if (originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.PAY) { |
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.
i think we can move all logic from if to some util function and return here just displayMessage
getTaskReportActionMessage for reference
@rayane-djouah seems when payment issued from workspace - copy message is not reflecting |
@narefyev91 what are the reproduction steps? |
@narefyev91 could you review please |
@rayane-djouah looks better but now - getting this |
…-clipboard-text-for-requested
Fixed @narefyev91 MacinCloud_LowGraphics_Popup.-.EU798.macincloud.com_6000.-.Remote.Desktop.Connection.2023-09-22.15-47-55.mp4 |
@narefyev91 PR ready for another review |
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.
Raised 2 comments - one of them is about deprecated method.
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.
Based on @mountiny's responses, the code changes are fine for me.
I'll work on the checklist after the small changes of renaming the method are done.
changes are done! @mananjadhav please proceed with the checklist |
Reviewer Checklist
Screenshots/VideosWebweb-copy-iou-message.movMobile Web - Chromemweb-chrome-copy-iou-message.movMobile Web - Safarimweb-safari-copy-iou-message.movDesktopdesktop-copy-iou-message.moviOSiou-copy-iou-message.movAndroidandroid-copy-iou-message.mov |
I am waiting on the Android build, it's taking some time. |
@mountiny @joelbettner I've completed the checklisted. |
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.
All yours @joelbettner
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, but there are conflicts.
…-text-for-requested
@joelbettner conflicts resolved |
All yours @joelbettner |
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.
Joel approved so going to merge now so we avoid future conflicts
✋ 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/mountiny in version: 1.3.75-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.75-12 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.76-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.76-6 🚀
|
const originalMessage = _.get(reportAction, 'originalMessage', {}); | ||
let displayMessage; | ||
if (originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.PAY) { | ||
const {amount, currency, IOUReportID} = originalMessage; |
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.
Coming from #29441
The REPORT_ACTION_TYPE.PAY
action type is used for both fulfilling existing requests and sending money. To differentiate between these two scenarios, we should have checked if the originalMessage
contains the IOUDetails
property. If it does, it indicates that this is a 'Send money' action.
Details
Fixed Issues
coming from #27142
$ #27114
$ #26531
$ #27858
Tests
Offline tests
N/A
QA Steps
Same as tests above.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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/Videos
Web
MacinCloud_LowGraphics_Popup.-.EU798.macincloud.com_6000.-.Remote.Desktop.Connection.2023-09-20.22-27-59.mp4
Mobile Web - Chrome
MacinCloud_LowGraphics_Popup.-.EU798.macincloud.com_6000.-.Remote.Desktop.Connection.2023-09-20.22-33-58.mp4
Mobile Web - Safari
MacinCloud_LowGraphics_Popup.-.EU798.macincloud.com_6000.-.Remote.Desktop.Connection.2023-09-20.22-30-50.mp4
Desktop
MacinCloud_LowGraphics_Popup.-.EU798.macincloud.com_6000.-.Remote.Desktop.Connection.2023-09-20.22-37-20.mp4
iOS
MacinCloud_LowGraphics_Popup.-.EU798.macincloud.com_6000.-.Remote.Desktop.Connection.2023-09-20.22-46-13.mp4
Android