-
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: Copy to clipboard button does not copy content of an IOU edit comment #24630
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] |
@narefyev91 PR is ready for review! Please have a look, ty 😄 |
@hungvu193 can you please update check list for IOS and Desktop - do not see preview videos (you need to add space before video link) |
@narefyev91 I think |
Updated @narefyev91 😄 |
Ok for NaN let's skip that - but i see duplication during copy - and it should be fixed in current PR |
I saw that too, it happened after I merged my branch with latest main and that issue is out of scope for this PR I believe, |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chrome8mb.video-L6w-jmPFJvBN.mp4Mobile 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
It works well except for the duplication issue. I tried opening the link for the bug report (https://app.slack.com/client/T03SC9DTT/C049HHMV9SM) but it is not redirecting me to the right place, can you link it again? |
Ok, here's the GH issue about it: |
const isReportPreviewAction = ReportActionUtils.isReportPreviewAction(reportAction); | ||
const message = _.last(lodashGet(reportAction, 'message', [{}])); | ||
const messageHtml = lodashGet(message, 'html', ''); | ||
const originalMessage = _.get(reportAction, '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.
We need originalMessage
here because the taskAction doesn't have html
field in our message
object.
cc @narefyev91 @pecanoro
I am testing everything again before merging. @narefyev91 Can you test the PR again with the new changes? |
|
Damn, we have some conflicts! |
@pecanoro Resolved! But I'm not sure why these tests are failed 🤦 |
re-run test |
Oops, seems mapbox sdk is required to run the test 🤦 . |
Working well, thank you! |
✋ 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/pecanoro in version: 1.3.57-0 🚀
|
🚀 Deployed to staging by https://github.com/pecanoro in version: 1.3.58-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.57-6 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
Details
Fix: Copy to clipboard button does not copy content of an IOU edit comment
Fixed Issues
$ #24569
PROPOSAL: #24569 (comment)
Tests
Offline tests
Same as Tests.
QA Steps
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
Screen.Recording.2023-08-16.at.23.06.45.mov
Mobile Web - Chrome
Screen.Recording.2023-08-16.at.23.07.57.mov
Mobile Web - Safari
Screen.Recording.2023-08-16.at.23.11.13.mov
Desktop
Screen.Recording.2023-08-16.at.23.06.45.mov
iOS
Screen.Recording.2023-08-16.at.23.18.34.mov
Android
Screen.Recording.2023-08-16.at.23.07.57.mov