-
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
[hold for payment 2024-07-30] [$250] Chat - Incorrect format is copied to clipboard after copying an edited header with bold markdown #43931
Comments
Triggered auto assignment to @garrettmknight ( |
@garrettmknight FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
Adding to live markdown per this |
@garrettmknight Huh... This is 4 days overdue. Who can take care of this? |
Waiting for SWM to work on this one. |
Hi, I’m Bartosz from SWM I believe this issue is something that could be handled by external contributors, especially considering that it's probably going to require changes just in E/App. WDYT @garrettmknight ? |
Job added to Upwork: https://www.upwork.com/jobs/~01c865bc9dffbb5438 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Still Reproduced I tried to fix this issue and found that the problem lies in how we are converting the text entered by the user into the input. When the user copies our text, it includes HTML markup unlike what you can copy here. As a result, when this markup gets into htmlString.split (here) it adds \n to the end of the line. I don't know where we should try to fix this, on the input or rendering sides. That is not last update, I am still working on it
|
ProposalPlease re-state the problem that we are trying to solve in this issue.We are adding \n after # in the input when header includes additional tags like What is the root cause of that problem?We add \n at the end of the line in replaceBlockElementWithNewLine: here What changes do you think we should make in order to solve the problem?I got stable and successful results changed the first "if" statement conditions to: if (text.match(/[\n|>][>]?[\s]?$/) || index === splitText.length - 1 || text === "# ") {
joinedText += text;
} This works because if a \n follows the #, we will add it regardless. Therefore, I added a check to prevent adding \n after the #. 2024-06-28.13-15-20.mp4Testing string:
|
@rushatgabhane can you give this one a look when you get a chance? |
@Amoralchik's proposal looks good #43931 (comment) we have unit tests on the library so it should be good 👍 🎀👀🎀 |
I Created Pull Request to update expensify-common to version 2.0.42. This version includes the following fix: Expensify/expensify-common#744 |
Triggered auto assignment to @joekaufmanexpensify ( |
@joekaufmanexpensify just need you to watch this one while I'm out - I'll pick back up when I'm back if it's still going. Thanks! |
Sounds good! Moving back to weekly as I see PR is in review. |
Hi, the changes are in production #45556 (comment) |
Hi, @joekaufmanexpensify The PR in the App has been closed as the expensify-common update has been completed here: #45556 (comment). We can either proceed to testing or close it with full payment per the example here: #44835 (comment). As mentioned in #44835 (comment) :
Original PR to Expensify-common: Expensify/expensify-common#744 |
Got it. Just to make sure my understanding is correct:
Is that right? If so, payment would be due 7 days after the fix went to production, which would be 2024-07-30. |
Awesome. TY! So payment is due tomorrow in that case. We need to pay:
|
@Amoralchik offer sent for $250! |
@joekaufmanexpensify accepted |
$250 approved for @rushatgabhane |
@Amoralchik $250 sent and contract ended! |
Upwork job closed |
All set, thanks everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.85-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The correct format gets pasted
Actual Result:
The header markdown is pasted on the first line and the rest of the text is pasted on a new line
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6517371_1718723531842.bandicam_2024-06-18_16-23-17-279.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @hayata-suenagaThe text was updated successfully, but these errors were encountered: