-
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
Copy to clipboard functionality #2088
Copy to clipboard functionality #2088
Conversation
@roryabraham. I have converted Also, copying image on web put this html on clipboard.
but when I paste this on the ReportActionCompose. There is an error
Any Idea. why? |
Haven't taken a look at the code yet @parasharrajat (I'm about to), but just FYI we are launching a QA process, so can you please add detailed QA Steps to the PR description too? These should be steps that can be done by our QA engineers on a staging/production environment, so not using any temporary code changes or anything. Thanks! Thats going to be included in the PR template and a standard thing going forward. If it's the same testing steps as in the dev environment, just change that header to: Tests / QA Steps |
Questions:
|
Hmmm I think just doing nothing for now would be fine.
Just copy the html to the clipboard I guess. |
Ok you mean just take the HTML variant of the message and Set it as a string on Clipboard. I found one issue on the Mobile Platform.
|
This is a bit tricky to solve because AFAIK the only way to prevent that is giving the |
@roryabraham This issue is related to Context Menu so I think it's better to cover that in another PR. What do you say?
So in that case, Do you think |
Ready for review. Thanks. |
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.
Nice, looks good to me and tested well on iOS. Agreed we can handle the selectable text UX issue in a different issue.
@marcaaron Updated. All yours. |
Updated. |
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.
Great thanks for the changes and you patience!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Just now noticed when doing |
Good catch! I feel like the |
Please review @roryabraham
Details
Fixed Issues
Fixes #1778Tests / QA Steps:
true
so that the ReportActionContextMenu will show (see screenshots on the linked issue).Copy to Clipboard
on text, you should have text copied to the clipboard which you can test by pressing ctrl+vPossible caveats
Tested On
Screenshots
Web
video.mp4
Mobile Web
1617096056079.mp4
Desktop
screen.mp4
Android
1617098505020.mp4