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

[Awaiting Checklist Completion] [$500] Hovering over multiline link for few times removes message background color #29824

Closed
2 of 6 tasks
m-natarajan opened this issue Oct 17, 2023 · 29 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Oct 17, 2023

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.3.85-1
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
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697542987624259

Action Performed:

  1. Open the app
  2. Open any report
  3. Send multiline link with one line space in between
  4. Hover over them back and forth for few times
  5. Observe that app removes background color from message and hovering over whole length of message still doesn't enable background color

Expected Result:

App should not remove background color from messages when we are hovering on it

Actual Result:

App removes background color from messages even when we are hovering on it if we hover back and forth on multline link for few times

Workaround:

unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
mac.chrome.moving.cursor.over.multiline.link.removes.bg.color.mov
Recording.116.mp4
MacOS: Desktop
mac.desktop.moving.cursor.over.multline.link.removes.bg.color.mov

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c1eee5b08ec459f3
  • Upwork Job ID: 1714379542416052224
  • Last Price Increase: 2023-10-24
  • Automatic offers:
    • 0xmiroslav | Reviewer | 27488648
    • bernhardoj | Contributor | 27488649
    • dhanashree-sawant | Reporter | 27488650
Issue OwnerCurrent Issue Owner: @0xmiroslav
@m-natarajan m-natarajan added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 17, 2023
@melvin-bot melvin-bot bot changed the title Hovering over multiline link for few times removes message background color [$500] Hovering over multiline link for few times removes message background color Oct 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

Triggered auto assignment to @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01c1eee5b08ec459f3

@melvin-bot
Copy link

melvin-bot bot commented Oct 17, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

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

melvin-bot bot commented Oct 17, 2023

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

@bernhardoj
Copy link
Contributor

Proposal

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

Hover over a link message and then move the mouse up quickly sometimes remove the message hover effect even though our mouse is still hovering over it.

What is the root cause of that problem?

When we hover over a link, a tooltip will show. When we move up our mouse quickly, our mouse will briefly hover over the tooltip. In Hoverable, we have a logic to remove the hover effect if we hover over an element that is not the child of the currently hovered element, in our case the ReportActionItem.

const unsetHoveredIfOutside = (e) => {
if (!ref.current || !isHovered) {
return;
}
if (ref.current.contains(e.target)) {
return;
}
setIsHovered(false);
};

The tooltip is not a child of ReportActionItem because we put the tooltip on the body element, so the hover effect will lost.

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

The simplest solution is to set pointerEvents: none to the tooltip, so mouseover won't be triggered on a tooltip.

What alternative solutions did you explore? (Optional)

In unsetHoveredIfOutside, we can add another check to ignore the logic if the hovered element is a tooltip or its children (this is important because mouseover will be triggered for all children).

const unsetHoveredIfOutside = (e) => {
+   if (e.target.closest('[data-tag="tooltip"]')) {
+       return;
+   }

TooltipRenderedOnPageBody.js

<Animated.View
+   dataSet={{tag: 'tooltip'}}

@ashuvssut
Copy link
Contributor

ashuvssut commented Oct 18, 2023

(NOT a Proposal)

Root cause

Here's a Video with voiceover explaining the Root cause

Please unmute the audio in the following video

root.cause.hover.ReportActionItem.mp4

I Proposed a wrong solution. So I removed my Proposal and i m leaving this video from my proposal bcz i think this might be helpful

@melvin-bot melvin-bot bot added the Overdue label Oct 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

@twisterdotcom, @0xmiroslav Huh... This is 4 days overdue. Who can take care of this?

@twisterdotcom
Copy link
Contributor

@0xmiroslav let me know what you think of @ashuvssut or @bernhardoj's proposals.

@ashuvssut - I do think the video is nice, but could you follow the normal template in future please?

@melvin-bot melvin-bot bot removed the Overdue label Oct 23, 2023
@ashuvssut
Copy link
Contributor

ashuvssut commented Oct 24, 2023

I had a proposal before. But when I saw at @bernhardoj's proposal, I realized that my solution was wrong. So, I removed my proposal 😅

@twisterdotcom
Copy link
Contributor

Shall we get @bernhardoj on this then @0xmiroslav?

@melvin-bot
Copy link

melvin-bot bot commented Oct 24, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Oct 26, 2023
@twisterdotcom
Copy link
Contributor

bump @0xmiroslav

@melvin-bot melvin-bot bot removed the Overdue label Oct 26, 2023
@0xmiros
Copy link
Contributor

0xmiros commented Oct 26, 2023

reviewing

@melvin-bot melvin-bot bot added the Overdue label Oct 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

@twisterdotcom, @0xmiroslav Whoops! This issue is 2 days overdue. Let's get this updated quick!

@0xmiros
Copy link
Contributor

0xmiros commented Oct 30, 2023

updating today

@melvin-bot melvin-bot bot removed the Overdue label Oct 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 31, 2023

@twisterdotcom @0xmiroslav this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@0xmiros
Copy link
Contributor

0xmiros commented Oct 31, 2023

@bernhardoj's proposal looks good.
As tooltip itself doesn't require hover, the main solution (pointerEvents: none) is fine to me.
🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Oct 31, 2023

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

@deetergp
Copy link
Contributor

deetergp commented Nov 2, 2023

I agree with @0xmiroslav, let's go with @bernhardoj 👍

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 2, 2023
Copy link

melvin-bot bot commented Nov 2, 2023

📣 @0xmiroslav 🎉 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

Copy link

melvin-bot bot commented Nov 2, 2023

📣 @bernhardoj 🎉 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 📖

Copy link

melvin-bot bot commented Nov 2, 2023

📣 @dhanashree-sawant 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@bernhardoj
Copy link
Contributor

PR is ready

cc: @0xmiroslav

@melvin-bot melvin-bot bot added the Weekly KSv2 label Nov 2, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 15, 2023
@melvin-bot melvin-bot bot changed the title [$500] Hovering over multiline link for few times removes message background color [HOLD for payment 2023-11-22] [$500] Hovering over multiline link for few times removes message background color Nov 15, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 15, 2023
Copy link

melvin-bot bot commented Nov 15, 2023

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

Copy link

melvin-bot bot commented Nov 15, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.99-0 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-11-22. 🎊

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:

Copy link

melvin-bot bot commented Nov 15, 2023

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:

  • [@0xmiroslav] The PR that introduced the bug has been identified. Link to the PR:
  • [@0xmiroslav] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@0xmiroslav] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@0xmiroslav] Determine if we should create a regression test for this bug.
  • [@0xmiroslav] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@twisterdotcom] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 22, 2023
@twisterdotcom
Copy link
Contributor

Ah, I was OOO yesterday. Doing this now.

@twisterdotcom
Copy link
Contributor

Payment Summary:
@bernhardoj paid $500 here (Contributor)
@0xmiroslav paid $500 here (Reviewer)
@dhanashree-sawant paid $50 here (Reporter)

@0xmiroslav please complete the checklist.

@twisterdotcom twisterdotcom removed the Awaiting Payment Auto-added when associated PR is deployed to production label Nov 23, 2023
@0xmiros
Copy link
Contributor

0xmiros commented Nov 23, 2023

No regression. As this is edge case and minor style issue, I think we can skip regression test.

@twisterdotcom twisterdotcom changed the title [HOLD for payment 2023-11-22] [$500] Hovering over multiline link for few times removes message background color [Awaiting Checklist Completion] [$500] Hovering over multiline link for few times removes message background color Nov 23, 2023
@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants