-
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
[$500] BUG: Copy / Pasting a last message in the compose box, returning the copied text and some random text reported by @mollfpr #11921
Comments
Triggered auto assignment to @alexpensify ( |
@kavimuru - I'm unable to replicate this issue. Can you please try again? Thanks! |
@alexpensify Could you try to send a message and double/triple tap on empty space chat to highlight the text then copy with Screen.Recording.2022-10-18.at.09.52.52.mov |
I'm still unable to replicate it. I followed the new steps to select the white space and input |
Triggered auto assignment to @jasperhuangg ( |
Can repro on both staging and production; you need to triple-click to highlight the entire message. Going to investigate |
Triggered auto assignment to @abekkala ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Current assignee @jasperhuangg is eligible for the External assigner, not assigning anyone new. |
@NikkiWines Can I get your opinion if your GH here would also fix this one? |
confirmed this one is unique and won't fix with that one |
PROPOSALReplacing import React from 'react';
import ExpensiMark from 'expensify-common/lib/ExpensiMark';
+ import Str from 'expensify-common/lib/str';
....
copySelectionToClipboard() {
const selection = SelectionScraper.getCurrentSelection();
if (!selection) {
return;
}
const parser = new ExpensiMark();
if (!Clipboard.canSetHtml()) {
Clipboard.setString(parser.htmlToMarkdown(selection));
return;
}
if (selection.match(/It's.*Chats/)) {
const replacement = parser.htmlToMarkdown(selection.split(/It's.*Chats/)[0]);
Clipboard.setHtml(Str.htmlEncode(replacement), parser.htmlToText(selection).split(/It's.*Chats/)[0]);
return;
}
if (selection.includes('Chats') && selection.includes('Concierge')) {
const replacement = parser.htmlToMarkdown(selection.split(/Chats/)[0]);
Clipboard.setHtml(Str.htmlEncode(replacement), parser.htmlToText(selection).split(/Chats/)[0]);
return;
}
Clipboard.setHtml(selection, parser.htmlToText(selection));
} webb-2022-10-24_09.16.52.mp4 |
@abekkala, @sobitneupane, @jasperhuangg Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@jasperhuangg can you try to replicate again? it seems that @trjExpensify was able to replicate |
@abekkala @trjExpensify sorry missed these notifications, ah I realized I was triple tapping a message with links in it, it only selects everything in the message up to (and not including) the link. The bug won't happen if you do this: Untitled.movTo reproduce this you have to use with messages without links (i.e. where triple tapping highlights the entire message). Thanks for reopening and keeping it going! |
^TLDR: we're still looking for proposals for this one! |
Yeah, the URL bug is here: #11735 |
ProposalSeems this issue has the same fix with #12028 |
@jasperhuangg @sobitneupane |
If the fix for this is going to be coming in the same PR as the one for #12028, then we should combine C+ reviewers and issues. |
@trjExpensify It is likely that the same PR will solve both the issues. |
@abekkala, @sobitneupane, @jasperhuangg Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@trjExpensify Should I also review the proposal #12028 (comment) for this issue? |
@sobitneupane it looks like @thesahindia has reviewed that proposal and given it the ✅. Though, @thesahindia can you confirm it fixes this issue as well ahead of us closing it? |
Correct it will be fixed at #12028 |
Cool! So @mollfpr, for reporting this issue, I've sent you a combined offer on the Upwork job attached to #12028. @abekkala you can go ahead and close the Upwork job and then this issue. Thanks everyone! 🎉 |
Closed Upwork job. |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The pasted text is the text that you just copy
Actual Result:
The pasted text is the text that you just copy and some random text and error message appears
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.16-2
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/196245398-44c8e0e9-d06d-4dda-ac78-1c2a51465e83.mp4
https://user-images.githubusercontent.com/43996225/196245405-3f3d68f8-2a5f-452f-8dfe-ac9057ccec10.mov
Expensify/Expensify Issue URL:
Issue reported by: @mollfpr
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1666000158578689
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: