-
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
[HOLD for payment 2023-08-10] [$1000] Web - Select and copy does not copy New Expensify link in link format #23251
Comments
Triggered auto assignment to @kadiealexander ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Copying an expensify link does not translate to markdown when pasted into the composer. What is the root cause of that problem?Expensify links are handled via App/src/components/HTMLEngineProvider/HTMLRenderers/AnchorRenderer.js Lines 101 to 102 in 82fd2f9
App/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.js Lines 47 to 51 in e87f2eb
What changes do you think we should make in order to solve the problem?We should provide What alternative solutions did you explore? (Optional)N/A |
I'm not able to reproduce this: 2023-07-21_17-06-51.mp4@dhanashree-sawant could you please take a look and see if we need to update the reproduction steps? |
Hi @kadiealexander, can you try once with newdot expensify link? I am able to reproduce with that. On staging, with staging link and on live, with live link |
@kadiealexander Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@dhanashree-sawant I tried both and was still unable to reproduce: Tested with new.expensify.com link from new.expensify.com on Chrome: 2023-07-25_16-10-30.mp4Tested with staging.new.expensify.com link from staging.new.expensify.com on Chrome: 2023-07-25_16-12-27.mp4 |
Thanks yes, sorry now I got it, I have tested with plain main page links and that seems to be working fine, if I write anything after the first '/', it causes the issue eg: Try to copy any other report URL and send it as link with different alias test and that will trigger the error. Sorry for the inconvenience till now. 2023-07-25.11-06-31.mp4 |
All good, glad we got to the root of it! :) 2023-07-25_18-02-45.mp4 |
Updated the reproduction steps with our findings. |
Job added to Upwork: https://www.upwork.com/jobs/~011c078f18bc8d09c6 |
Current assignee @kadiealexander is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.new dot expensify URL can't be copied as URL if it is having some nesting in route What is the root cause of that problem?in in our case, we are not getting when no What changes do you think we should make in order to solve the problem?App/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.js Lines 78 to 85 in e87f2eb
here no href is being passed because so we can pass but, it leads to a problem, this internal link starts opening in new window. to fix this, we modify line no. 80 as: target: isEmail || !linkProps.href ? '_self' : props.target, if following event.preventDefault, to avoid refreshing the page, we need the following code: onPress={(event) => {
if (!linkProps.onPress) {
return;
}
event.preventDefault();
linkProps.onPress();
}} What alternative solutions did you explore? (Optional)N/A |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Both the proposals have the correct RCA, but @Parshvi16's proposal is more complete as it mentions how to deal with links opened in new window. 🎀 👀 🎀 C+ reviewed. |
Apologies for the delay in the response here. I see some of the comments edited, hence wanted to verify before I respond. @samh-nl to address your comments, your proposal originally lacked any technical details. I don't expect the code, but at-least where/how do we pass the hrefs, etc. should've been a part of the proposal. And we do work out changes in the PR, bugs that come across testing when the PR is raised. About you mentioning the proposal being completely incorrect, if we come across this in the PR/issue, we would open up again for the proposals, where the new/existing proposals would be reviewed for the expected behavior. This generally doesn't happen, but I won't say it has never happened. Lastly, @Parshvi16 I would recommend sticking to the original proposals while implementing the solution, so that we're fair in any process without any conflicts. |
@mananjadhav Ok appreciate the feedback, I will take that into account going forward. |
🎯 ⚡️ Woah @mananjadhav / @Parshvi16, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
@roryabraham I'm not yet hired on upwork for this issue. Please check. |
@kadiealexander Can you please help here? |
@Parshvi16 please apply to the Upwork job, as I can't find your application. Thanks! |
Sorry, I just checked, my account is on hold due to surname spelling issue. can I use my friend's Upwork account? or should I wait? |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.49-3 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 2023-08-10. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
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:
|
@kadiealexander please check #23251 (comment) |
@Parshvi16 Please post on the associated Github issues for those jobs and the relevant team member will assist you. For this job, I need you to apply here: https://www.upwork.com/jobs/~011c078f18bc8d09c6 |
@kadiealexander submitted the proposal, please accept. |
Could you please let me know the name of the person you used to apply? |
Offer sent :) |
Payouts due on August 10th:
Eligible for 50% #urgency bonus? Yes Upwork job is here. |
I can't pinpoint to a specific PR, as we've got the links working since a long time. Hence, there is no offending PR. I also don't think we need a regression test for this one. |
@kadiealexander I've raised my request on NewDot. |
Reviewed the details for @mananjadhav. This is approved for payment in NewDot. |
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:
[test](google.com)
[test](staging.new.expensify.com/r/64705864)
(note, the home link new.expensify.com does not reproduce this issue)Expected Result:
App should copy all links equally on select and copy
Actual Result:
App does not copy expensify links as links and display their text normally
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.42-18
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
copy.does.not.copy.expensify.link.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689704143206879
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: