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-06-01] [$4000] After returning to a setting from a profile, the tooltip loses position on the profile image when you hover the mouse for the first time. #15229

Closed
1 task
kavimuru opened this issue Feb 16, 2023 · 188 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2

Comments

@kavimuru
Copy link

kavimuru commented Feb 16, 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!


Action Performed:

  1. Go to the setting -> Profile
  2. Go back to Setting and hover the mouse over the profile image.
    (hover the image quickly)

Expected Result:

The tooltip should not lose the position even if you hover the image quickly.

Actual Result:

If you quickly hover over the image after returning from the profile, the tooltip loses position.

Workaround:

unknown

Platforms:

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

  • MacOS / Chrome

Version Number: 1.2.73-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
Notes/Photos/Videos:

tooltip.mp4
2023-02-16.20-31-00.mp4

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0175f90dca3be1912f
  • Upwork Job ID: 1628033343922810880
  • Last Price Increase: 2023-04-17
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 16, 2023
@MelvinBot
Copy link

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

@melvin-bot melvin-bot bot locked and limited conversation to collaborators Feb 16, 2023
@MelvinBot
Copy link

MelvinBot commented Feb 16, 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 Overdue label Feb 20, 2023
@MelvinBot
Copy link

@CortneyOfstad Whoops! This issue is 2 days overdue. Let's get this updated quick!

@CortneyOfstad
Copy link
Contributor

Was OoO — tackling this now!

@melvin-bot melvin-bot bot removed the Overdue label Feb 21, 2023
@CortneyOfstad CortneyOfstad added the Internal Requires API changes or must be handled by Expensify staff label Feb 21, 2023
@melvin-bot melvin-bot bot unlocked this conversation Feb 21, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~0175f90dca3be1912f

@CortneyOfstad CortneyOfstad added External Added to denote the issue can be worked on by a contributor and removed Internal Requires API changes or must be handled by Expensify staff labels Feb 21, 2023
@melvin-bot melvin-bot bot changed the title After returning to a setting from a profile, the tooltip loses position on the profile image when you hover the mouse for the first time. [$1000] After returning to a setting from a profile, the tooltip loses position on the profile image when you hover the mouse for the first time. Feb 21, 2023
@MelvinBot
Copy link

Current assignee @CortneyOfstad is eligible for the External assigner, not assigning anyone new.

@MelvinBot
Copy link

Triggered auto assignment to Contributor Plus for review of internal employee PR - @parasharrajat (Internal)

@MelvinBot
Copy link

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

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

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

@Ramkrishna1998
Copy link

The tooltip position is initialized only once during the first hover and the issue occurs because of the single initialization of the position of the tooltip so even if the target element position gets changed but tooltip position will not changed.

I have tried to implement the same scenario using the same component and I am attaching the before and after the fix

before: https://www.loom.com/share/f40dfbbdf9f94c07bee3e3c73285de34

after: https://www.loom.com/share/fa19295843f74158a8c4164546455202

@Litande
Copy link

Litande commented Feb 22, 2023

Proposal

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

After returning to a setting from a profile, the tooltip loses position on the profile image when you hover the mouse for the first time.

What is the root cause of that problem?

There 2 events that are causing this issue.

  1. The back button on settings have also a tooltip which triggers active state on TooltipSense component.
  2. While the initial display in Tooltip is delayed (500 ms - atm) when TooltipSense is active it is happening imidiate, those the positions of tooltip is passed imidiatly and the tooltip is shown in the wrong place

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

I propose 2 things:

  1. Extend TooltipSense component to have method called deactivateImidiate which will reset active state on back button click.
  2. In Tooltip to move the delay parameter as depency on active state before the execution of getWrapperPosition which desides on the tooltip position
    this will effectly will take the correct position and conserve the TooltipSense behavior.

What alternative solutions did you explore? (Optional)

Moving the delay to Hoverable component but at this point i belive it is over complecated without breaking the TooltipSense behavior.

@MelvinBot
Copy link

Looks like something related to react-navigation may have been mentioned in this issue discussion.

As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.

Feel free to drop a note in #expensify-open-source with any questions.

@MelvinBot
Copy link

📣 @Litande! 📣

Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.

Screen Shot 2022-11-16 at 4 42 54 PM

Format:

Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@MelvinBot
Copy link

⚠️ Missing/invalid email or upwork profile link. Please make sure you add both your Expensify email and Upwork profile link in the format specified.

@Litande
Copy link

Litande commented Feb 22, 2023

Contributor details
Your Expensify account email: mihaelchas@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/michaelchasovin

@melvin-bot
Copy link

melvin-bot bot commented May 25, 2023

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

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

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
Copy link

melvin-bot bot commented May 25, 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:

  • [@parasharrajat] The PR that introduced the bug has been identified. Link to the PR:
  • [@parasharrajat] 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:
  • [@parasharrajat] 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:
  • [@parasharrajat] Determine if we should create a regression test for this bug.
  • [@parasharrajat] 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.
  • [@anmurali] 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 Overdue and removed Weekly KSv2 labels May 31, 2023
@anmurali
Copy link

anmurali commented Jun 5, 2023

@parasharrajat can you complete the checklist above so I can pay and add regression (if applicable) before closing?

@melvin-bot melvin-bot bot removed the Overdue label Jun 5, 2023
@parasharrajat
Copy link
Member

parasharrajat commented Jun 5, 2023

[@parasharrajat] The PR that introduced the bug has been identified. Link to the PR: This bug is present since the first implementation. We never faced this up to this date.

[@parasharrajat] 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: NA

[@parasharrajat] 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: NA. This comes under edge-case scenarios and is rarely reproducible.

[@parasharrajat] Determine if we should create a regression test for this bug. yes

[@parasharrajat] 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. #15229 (comment)

@parasharrajat
Copy link
Member

parasharrajat commented Jun 5, 2023

Regression Test Steps

  1. Open the app on the web.

  2. Test tooltip positioning for animated elements.

    1. Go to the "Settings" Page.
    2. Click on the Avatar to go to "Profile" page.
    3. Click the back arrow to go back to "Settings" and quickly hover the mouse over the profile Avatar.
    4. Verify that the tooltip behaves as expected and is positioned correctly.
  3. Test the tooltip positioning in case of scrolling.

    1. Go to a page where content is scrollable and tooltips in the content. For example, a workspace chat with multiple messages
    2. Hover over an element with a tooltip (e.g. an avatar) and start scrolling slowly.
    3. Verify that the tooltip stays over that element.

Do you agree 👍 or 👎 ?

@melvin-bot melvin-bot bot added the Overdue label Jun 7, 2023
@flodnv
Copy link
Contributor

flodnv commented Jun 7, 2023

It sounds super edge case, I'm not sure TBH. What do you think @anmurali ? Should we ask QA?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 7, 2023
@anmurali
Copy link

No harm in adding a regression test proposal in a GH for Applause to evaluate.

@melvin-bot melvin-bot bot removed the Overdue label Jun 12, 2023
@anmurali
Copy link

Also sent offers to @cubuspl42 and @parasharrajat for payment

@ayazhussain79
Copy link
Contributor

@anmurali I reported that bug

@melvin-bot melvin-bot bot added the Overdue label Jun 14, 2023
@anmurali
Copy link

Sent offer

@melvin-bot melvin-bot bot removed the Overdue label Jun 14, 2023
@ayazhussain79
Copy link
Contributor

@anmurali offer accepted, Thank you

@melvin-bot melvin-bot bot added the Overdue label Jun 19, 2023
@flodnv
Copy link
Contributor

flodnv commented Jun 19, 2023

Are we done here @anmurali ?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 19, 2023
@anmurali
Copy link

Paid!

@ayazhussain79
Copy link
Contributor

@anmurali could you please close this bug contract on upwrok for me

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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2
Projects
None yet
Development

No branches or pull requests