Skip to content
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-10-25] [$500] Dev: Web - The "Copy URL to clipboard" tooltip does not appear when hovering over a task description link #27812

Closed
1 of 6 tasks
kbecciv opened this issue Sep 19, 2023 · 38 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Sep 19, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Open a chat.
  2. Navigate to the "Assign task" section.
  3. Enter a title and insert a link in the description, then create the task.
  4. After task creation, right-click on the description link.
  5. Observe that the tooltip for "Copy URL to clipboard" does not appear

Expected Result:

When hovering over a task description link and right-clicking, the "Copy URL to clipboard" tooltip should be displayed

Actual Result:

The "Copy URL to clipboard" tooltip does not appear when hovering over a task description link

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: Dev 1.3.71.7
Reproducible in staging?: n
Reproducible in production?: n
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

screen-recording-2023-09-19-at-65133-pm_3LXLwhH6.mp4

Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695131883280419

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015f37f0d47d0bab66
  • Upwork Job ID: 1704225979412377600
  • Last Price Increase: 2023-10-04
  • Automatic offers:
    • jjcoffee | Reviewer | 27066533
    • ZhenjaHorbach | Contributor | 27066534
@kbecciv kbecciv added the External Added to denote the issue can be worked on by a contributor label Sep 19, 2023
@melvin-bot melvin-bot bot changed the title Dev: Web - The "Copy URL to clipboard" tooltip does not appear when hovering over a task description link [$500] Dev: Web - The "Copy URL to clipboard" tooltip does not appear when hovering over a task description link Sep 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 19, 2023

Job added to Upwork: https://www.upwork.com/jobs/~015f37f0d47d0bab66

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 19, 2023

Triggered auto assignment to @alexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 19, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee (External)

@rmm-fl
Copy link
Contributor

rmm-fl commented Sep 19, 2023

Regression from #27736

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Sep 19, 2023

Regression from #27736

It's true (

Proposal

Please re-state the problem that we are trying to solve in this issue

The "Copy URL" tooltip is not displayed when hovering over a task description link and right-clicking

What is the root cause of that problem?

We don't use <comment> wrapper for links in MenuItem

if (props.shouldParseTitle) {
return html;
}

What changes do you think we should make in order to solve the problem?

We can use <comment></comment> tag for result this function

const getProcessedTitle = useMemo(() => {
if (props.shouldRenderAsHTML) {
return convertToLTR(props.title);
}
if (props.shouldParseTitle) {
return html;
}

I can guess why this was done ( was deleted)
So that when creating a task we cannot click on links

Therefore, it would be nice to add a new prop that will allow us to disable and enable clickability depending on the situation(optional)

What alternative solutions did you explore? (Optional)

NA

@jjcoffee
Copy link
Contributor

We may want to hold this on #27769 in case they want to fix the regression. I've asked there.

@jjcoffee
Copy link
Contributor

@alexpensify can you update the title to hold on #27769, per this comment.

@alexpensify alexpensify changed the title [$500] Dev: Web - The "Copy URL to clipboard" tooltip does not appear when hovering over a task description link [HOLD #27769] [$500] Dev: Web - The "Copy URL to clipboard" tooltip does not appear when hovering over a task description link Sep 20, 2023
@alexpensify alexpensify added Weekly KSv2 and removed Daily KSv2 labels Sep 20, 2023
@alexpensify
Copy link
Contributor

Thanks for flagging @jjcoffee -- Done!

@alexpensify
Copy link
Contributor

@jjcoffee - this GH we were holding on is in production now. Can you test to confirm if we should keep this one open? Thanks!

@jjcoffee
Copy link
Contributor

@alexpensify Thanks for the heads up! Looks like they decided not to fix it, and I can still repro, so we're good to take this off hold.

We also already have a proposal from @ZhenjaHorbach we can go with. I like the idea of adding a shouldEnableLinks prop, but I'm unsure how necessary it is. Did you think of a situation where we would not want this enabled @ZhenjaHorbach?

🎀👀🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Sep 29, 2023

Triggered auto assignment to @youssef-lr, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@ZhenjaHorbach
Copy link
Contributor

@jjcoffee
I don’t even remember anymore))
But looking at my proposal

So that when creating a task we cannot click on links

I think at least in this case we would like to disable the links

@jjcoffee
Copy link
Contributor

@ZhenjaHorbach Hmm I'm not sure what the expected behaviour is when creating a task. It does autolink there too at the moment (unless that's a separate bug 😄) so I think I would err on the side of making it copyable (as links generally are in the app).

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Sep 29, 2023

@jjcoffee
I was thinking about this case )
I don't know how reasonable it is to add ability to copy
If this is just a preview (Screenshot with changes if we add <comment>${html}</comment> for all links)

But I think that is not critical
So we can remove the condition from my proposition )

Screenshot 2023-09-29 at 14 31 55

@alexpensify alexpensify changed the title [HOLD #27769] [$500] Dev: Web - The "Copy URL to clipboard" tooltip does not appear when hovering over a task description link [$500] Dev: Web - The "Copy URL to clipboard" tooltip does not appear when hovering over a task description link Oct 3, 2023
@alexpensify alexpensify added Daily KSv2 and removed Weekly KSv2 labels Oct 3, 2023
@melvin-bot melvin-bot bot added the Overdue label Oct 3, 2023
@alexpensify
Copy link
Contributor

@jjcoffee any feedback for @ZhenjaHorbach's latest update? Thanks!

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Oct 5, 2023
@alexpensify
Copy link
Contributor

@youssef-lr we need the assignment so that @ZhenjaHorbach can carry on with the next steps. Thanks!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 6, 2023
@youssef-lr
Copy link
Contributor

Done!

@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2023

📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2023

📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2023

📣 @ayazhussain79 We're missing your Upwork ID to automatically send you an offer for the Reporter role.
Once you apply to the Upwork job, your Upwork ID will be stored and you will be automatically hired for future jobs!

@alexpensify
Copy link
Contributor

@ZhenjaHorbach -- there is a more recent discussion going on in Slack. Please jump in there before starting this PR. Thanks!

@alexpensify
Copy link
Contributor

I've followed up in the Slack thread to confirm if we need to make changes here or close this GH.

@jjcoffee
Copy link
Contributor

@alexpensify Sorry, should've posted an update - we've settled on there needing to be markdown rendering correctly in all these views (Confirm Task, Task detail, Private Notes), so we're good to keep this open. Just waiting for @youssef-lr to approve the PR!

@alexpensify
Copy link
Contributor

Whoops - thanks for calling that out because I didn't check the PR 🤦🏼

@alexpensify
Copy link
Contributor

I reached out in Chat to see if we can get the review soon.

@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @ZhenjaHorbach got assigned: 2023-10-06 22:42:31 Z
  • when the PR got merged: 2023-10-17 19:31:17 UTC
  • days elapsed: 6

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 18, 2023
@melvin-bot melvin-bot bot changed the title [$500] Dev: Web - The "Copy URL to clipboard" tooltip does not appear when hovering over a task description link [HOLD for payment 2023-10-25] [$500] Dev: Web - The "Copy URL to clipboard" tooltip does not appear when hovering over a task description link Oct 18, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.86-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-10-25. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 25, 2023
@jjcoffee
Copy link
Contributor

Regression test proposal

  1. Open any chat
  2. Click the + and "Assign task"
  3. Enter a title and insert the following in the description field
https://new.expensify.com/
~https://new.expensify.com/~
# https://new.expensify.com/
  1. Save the description and verify that the Confirm Task screen correctly renders the markdown and links.
  2. Right click any of the links in the description and verify that the "Copy URL to clipboard" tooltip appears
  3. Save the task.
  4. On the task detail screen, verify the same as in steps 5 and 6.

Do we agree 👍 or 👎

@alexpensify
Copy link
Contributor

alexpensify commented Oct 26, 2023

Here is the payment summary:

Upwork Job: https://www.upwork.com/jobs/~015f37f0d47d0bab66

*If applicable, the bonuses will be applied on the final payment

Extra Notes regarding payment: There is no urgency bonus but no penalty either since this GH required discussion and review on the right solution.

@alexpensify
Copy link
Contributor

@ayazalavi - I need your help to accept the offer in Upwork, looks like automation failed here.

@ayazhussain79
Copy link
Contributor

@alexpensify offer accepted, Thank you

@alexpensify
Copy link
Contributor

Closing - everyone has been paid and I've created the regression test request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants