-
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
[$1000] Misleading right-click on email linked to URL #18912
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Hyperlinked email still shows What is the root cause of that problem?The root cause is that we're just checking if the text matches the email pattern and ignoring what the What changes do you think we should make in order to solve the problem?We can replace this with:
What alternative solutions did you explore? (Optional)We can also display both |
ProposalPlease re-state the problem that we are trying to solve in this issue.Right-click menu on email linked to URL shows What is the root cause of that problem?The root cause of this issue is that we determine the type of context menu by
and
which is buggy because
A markdown link
is rendered as anchor tag <a href="https://google.com" dir="auto" rel="noreferrer noopener" target="_blank" role="link" class="css-text-1rynq56" data-testid="a" style="color: rgb(90, 176, 255); font-size: 15px; text-align: left; font-family: ExpensifyNeue-Regular, "Segoe UI Emoji", "Noto Color Emoji"; line-height: 20px; text-decoration-line: underline; text-decoration-color: rgb(90, 176, 255); user-select: text;">test@gmail.com</a> So, the value of
That's why right-click menu on email linked to URL shows What changes do you think we should make in order to solve the problem?To fix this issue, we can check if the We improve the checking condition here
to props.href.startsWith('mailto:') ? ContextMenuActions.CONTEXT_MENU_TYPES.EMAIL : ContextMenuActions.CONTEXT_MENU_TYPES.LINK, Below are useful test cases to verify the solution
What alternative solutions did you explore? (Optional)N/A |
This isn't typical behaviour I've seen, so asking here: https://expensify.slack.com/archives/C049HHMV9SM/p1684113182168159?thread_ts=1684029611.911239&cid=C049HHMV9SM |
Job added to Upwork: https://www.upwork.com/jobs/~0185cc75d081384f04 |
Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
Triggered auto assignment to @jasperhuangg ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The message is "Copy Email to Clipboard", but after selecting the menu, the URL is copied - this is confusing for the user. What is the root cause of that problem?In here
displayName is an email, if yes we'll show Copy Email to Clipboard . In the case of a link with displayName as an email, it will show incorrectly.
What changes do you think we should make in order to solve the problem?We need to, additionally check if the In here
If we only check if the link contains We also shouldn't assume all anchors that starts with What alternative solutions did you explore? (Optional)If we want to be even stricter in the condition, we can also use the following:
to make sure it's the |
ProposalPlease re-state the problem that we are trying to solve in this issue.Misleading right-click on email linked to URL. What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?I was thinking of some changes to obtain the result in the following video: 18912.mp4
and use If this feels unsafe(shouldn't be), we may adapt What alternative solutions did you explore?As the user may click the link and it auto opens in a new tab, maybe we should let the user copy the email address instead of the URL. Otherwise, he'll have to manually copy the email if he wants to send a message there. So, we may let him see "Copy email" and actually pass the email to be copied inside the Clipboard. For this, we may simply replace:
|
@fedirjh Have you had a chance to review these proposals? I like @allroundexperts proposal, but want a second opinion. |
@jasperhuangg I am currently testing some higher-priority PRs. I will review this one by the end of the day. |
Thank you, everyone, for the proposals. The proposals are quite similar and share the same solution therefore, I agree with @jasperhuangg, and we should proceed with @allroundexperts' proposal . 🎀 👀 🎀 C+ reviewed |
@fedirjh I think @allroundexperts 's proposal is not perfect enough to address test case like
Can I have your feedback about my proposal? |
@eh2077 I think the code in the proposal is meant to give an idea only (that is why it can contain pseudo code). The approach is similar in all other proposals IMO. |
@fedirjh @jasperhuangg I believe there're multiple cases that the selected proposal will fail at:
Also I think the proposals are not the same solutions, I'd appreciate a more thorough reviews here. I believe for small issues, the completeness of the proposal matters. If we ignore this and accept any proposal with a "generally looks ok" solution (with many failed cases), it will greatly discourage contributors from trying to come up with a completely bug-free and regression-free solutions, which is not a good outcome for the product as a whole I think. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.20-5 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-06-07. 🎊 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.
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:
|
Paying today. PR merged after 5 days, so no bonus. |
Everyone has been paid. @fedirjh and @allroundexperts - could you complete the checklist please? |
@jliexpensify Am I eligible for a report bonus for pointing out a related issue about @fedirjh Would you like to share your thoughts on this? I think you would have full context about what I mentioned as you made a great summary of previous discussions here #18912 (comment) |
@eh2077 is there a separate reporting GH that was raised that you can link me to? |
Regression Test Proposal
|
@jliexpensify I can confirm that @eh2077 made valuable contributions and bring the attention to another case (potential bug) which we ended up fixing in this issue. |
Was there a bug-reporting GH that you can link me to? |
@jliexpensify I didn’t file another bug report about it because I was thinking to fix it together in this issue at the beginning. I also mentioned in the slack thread when we first discussed reproduction of the bug, see https://expensify.slack.com/archives/C049HHMV9SM/p1684113923020359?thread_ts=1684029611.911239&cid=C049HHMV9SM. |
Thanks for the context, I'm not sure of the process here so I'll surface this internally and get back to you. |
@allroundexperts @jliexpensify @jasperhuangg @fedirjh this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
Current assignees @allroundexperts and @fedirjh are eligible for the Internal assigner, not assigning anyone new. |
@fedirjh what are the next steps required for us to close out this issue? |
@jasperhuangg We are waiting for @jliexpensify's decision #18912 (comment) to close this issue. Could you please update the title as the checklist is already filled #18912 (comment). |
Apologies, I was OOO yesterday, checking the thread now. |
@eh2077 - unfortunately we won't be paying you a reporting bonus here: we'll only pay a bug reporter this bonus if they have initially reported it and it's on a GH. This is our process and it's not something we can deviate from, for fairness. We do appreciate your contributions here and that you've gone above and beyond to help us discover additional issues that were fixed. In the future, I would encourage you to raise a separate bug report for a GH to be created, this will ensure you'll get the reporting bonus (if applicable). |
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 :
Since the message is an email with a link, the message should be "Copy URL to Clipboard", and after selecting the menu, the URL is copied
Actual Result :
The message is "Copy Email to Clipboard", but after selecting the menu, the URL is copied - this is confusing for the user.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.13.3
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
Email.URL.Right.Click.mp4
Recording.608.mp4
Expensify/Expensify Issue URL:
Issue reported by: @kerupuksambel
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684029611911239
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: