-
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
[Needs regression test steps] [$1000] When copy pasting message containing email/links, email address/link occupies new line. #9250
Comments
Triggered auto assignment to @Julesssss ( |
Reproduced, this should be fixed. |
Triggered auto assignment to @kevinksullivan ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @luacmartins ( |
Hmm I wonder why I got assigned if @Julesssss is an ECM and is still assigned as well 🤔 @Julesssss should I keep myself assigned to this one? |
Odd, I was OOO but I didn't think auto-assignment was smart enough to know that? Anyway, I'll keep it 👍 |
You can do this. Please share your proposal. |
Proposals : Hey,
Above method is converting the copied text to HTML then to markdown. There are two options we can have to solve this issue: 1.) We can update the getHtmlOfSelection() for selected text which is being used while converting it into markdown as below
since, parser.replace() method is already being used in while we are trying to edit a comment, we can use the same method for selection ! 2.) We can set the selected text in clipboard as a plain text which is being selected by updating copySelectionToClipboard() method as below.
or by updating current getHTMLOfSelection() as returning
instead of
|
Hey @NehaSantani, thanks for the proposal. Did you test this solution on local setup? How will you convert the text to Markdown? |
Hi @parasharrajat,
which inturn is called from below method
The whole conversion currently in the code is going like this However, the issue is inside HTML conversion of text! The only change we need to do to solve the issue mentioned is inside getHTMLOfSelection() method which is called from getAsMarkdown() method. Updated getHTMLofSelection().
My proposal to use above code in getHTMLOfSelection() method is because we are already using parser.replace to convert it to html while editing a message! Also,Yes i tested it in local. L1Screen.Recording.2022-06-09.at.9.29.34.AM.mov |
Try this to copy chat between two messages. Start from bottom to the third last line(Hi Neha) of the previous message. Then paste it on composer and let me know what output you get. |
Proposal: In src/components/Composer/index.js Line 222: Change this: To this: Explain: In render each Tested all the cases above, everything seems good. |
I am working on it
@kevinksullivan done. Thanks all. |
Testing blocked on web, mWeb because of this known issue (403 auth error) |
Commented here, but you should be able to get unblocked here now after whitelisting. 👍 |
ok, @ahmdshrif please fill out the form too so you could complete PR. |
I fill out the form. and wait to add me to the whitelist. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.41-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-12-27. 🎊 After the hold period, please check if any of the following need payment for this issue, and if so check them off after paying:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
I think @kevinksullivan is OOO till Jan 4. |
There was a few days delay until PR complete due to login issue on web. |
Gotcha covered @aimane-chnaif , @ahmdshrif too! @aimane-chnaif I did a quick check of the timeline but didn't factor in down time with IP issues. I'm seeing
I'm seeing this post on 12/13 about the IP issue, with the 10th and 11th being weekend days, it makes sense that y'all might be affected by the issue. @aimane-chnaif and/or @ahmdshrif, if you were affected, can you provide some details/links and reasoning in a post so we can have it for audit purposes? It doesn't have to be detailed and we only need one of you to do it. Thx |
@ahmdshrif created draft PR on Dec 10
|
IP issue happened before Dec 10 and I found out @ahmdshrif's comment on slack on Dec 10 |
Thanks for the breakdown @aimane-chnaif, I agree. I have issued 50% bonuses to you and @ahmdshrif . Leaving open for regression test steps/BZ check list |
@Julesssss, @ahmdshrif, @kevinksullivan, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Still climbing through the OOO backlog, will knock this out tomorrow AM. |
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:
Typed a message a@mail.com is my email. b@mail.com is someone else's email.
Copied and pasted in the text box below
Expected Result:
Text should copy in the same line
Actual Result:
When copy pasting message containing email/links, email address/link occupies new line.
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.69-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: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @MonilBhavsar
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1653548218883739
Job Post: https://www.upwork.com/jobs/~01e09832b6e53bb854
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: