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

Tooltip appears sometimes when go back from chat (mWeb - Safari) - reported by @aneequeahmad #9737

Closed
mvtglobally opened this issue Jul 6, 2022 · 82 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 Engineering Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review

Comments

@mvtglobally
Copy link

mvtglobally commented Jul 6, 2022

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 chat with someone
  2. Go back from chat using back button and open chat again and go back.
  3. Repeat this process sometimes and a tool tip will appear when back on chat screen

Expected Result:

No tootip should appear on chats list screen.

Actual Result:

Tooltip appear on chat list screen

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Mobile Web (Safari)/ iphone 11 pro

Version Number: 1.1.79-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Image from iOS (13)

Image.from.iOS.5.mov

Expensify/Expensify Issue URL:
Issue reported by: @aneequeahmad
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1655759723252049

Job Post: https://www.upwork.com/jobs/~01d41ef083193aa30f

View all open jobs on GitHub

@mvtglobally mvtglobally added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Jul 6, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2022

Triggered auto assignment to @Christinadobrzyn (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@melvin-bot melvin-bot bot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Jul 6, 2022
@Christinadobrzyn
Copy link
Contributor

Based on this chat - https://expensify.slack.com/archives/C01GTK53T8Q/p1655759723252049 - looks like this might be a bug.

@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2022

Triggered auto assignment to @roryabraham (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@Christinadobrzyn Christinadobrzyn removed their assignment Jul 6, 2022
@roryabraham
Copy link
Contributor

Looks like we need consistent reproduction steps on this. This can be external but should be treated as a monthly, at least until there are more consistent steps to reproduce it.

@roryabraham roryabraham added the External Added to denote the issue can be worked on by a contributor label Jul 7, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2022

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

@roryabraham
Copy link
Contributor

@kevinksullivan as soon as this is exported please make it a monthly

@kevinksullivan kevinksullivan added Exported Monthly KSv2 and removed Daily KSv2 labels Jul 8, 2022
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Monthly KSv2 labels Jul 8, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jul 8, 2022

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (Exported)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 8, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jul 8, 2022

Current assignee @roryabraham is eligible for the Exported assigner, not assigning anyone new.

@melvin-bot melvin-bot bot changed the title Tooltip appears sometimes when go back from chat (mWeb - Safari) - reported by @aneequeahmad [$250] Tooltip appears sometimes when go back from chat (mWeb - Safari) - reported by @aneequeahmad Jul 8, 2022
@roryabraham roryabraham added Monthly KSv2 and removed Weekly KSv2 labels Jul 8, 2022
@metehanozyurt
Copy link
Contributor

Proposal

Cause

When button press tooltip showed up mWeb.

Solution

We can restrict tooltip views on mobile webs. We need to get help from the canUseTouchscreen function in our library and make the following changes. In this way, we prevent other tooltips from appearing. While doing the tests, I found that other tooltips were also appearing. We do not encounter this problem only with the back button.

render() {
// Skip the tooltip and return the children, if the text is empty.
if (_.isEmpty(this.props.text)) {
return this.props.children;
}
let child = (
<View

Adding this line

        // Skip the tooltip and return the children, if the text is empty.
        if (_.isEmpty(this.props.text)) {
            return this.props.children;
        }
        
        // Skip the tooltip and return the children, if the mweb.
        if (this.canUseTouchScreen) {
            return this.props.children;
        }
        let child = (

and this change on constructor

....
        this.canUseTouchScreen = canUseTouchScreen();
        this.state = {
            // Is tooltip rendered?
....

@melvin-bot melvin-bot bot added Daily KSv2 and removed Monthly KSv2 labels Jul 10, 2022
@parasharrajat
Copy link
Member

Note: There is a regression from this issue's PR #14149.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jan 16, 2023
@JmillsExpensify
Copy link

Alright, so time to circle back on the payment. Based on the regression from this PR, no bonus is eligible. Further per our Contributing guidelines, we still need to wait until the 19th, or 7 days after the linked fix reaches production. I'm updating the issue title as a result.

In the meantime, @roryabraham @Santhosh-Sellavel can you handle your portion of the bug zero steps? I'll get a headstart on the regression tests.

@JmillsExpensify JmillsExpensify changed the title [HOLD for payment 2023-01-17] Tooltip appears sometimes when go back from chat (mWeb - Safari) - reported by @aneequeahmad [HOLD for payment 2023-01-19] Tooltip appears sometimes when go back from chat (mWeb - Safari) - reported by @aneequeahmad Jan 18, 2023
@JmillsExpensify
Copy link

Also while we are at it, based on the regression, that would mean the following payouts now apply. cc @roryabraham for confirmation given the special considerations discussed above.

Sound right?

@mallenexpensify mallenexpensify removed the Reviewing Has a PR in review label Jan 20, 2023
@melvin-bot melvin-bot bot added the Overdue label Jan 20, 2023
@roryabraham
Copy link
Contributor

Sounds right 👍🏼

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 21, 2023
@JmillsExpensify
Copy link

Offers sent to Contributors. In the meantime, @roryabraham @Santhosh-Sellavel can either of you close out your items on the BZ checklist? I'll get the regression test started.

@melvin-bot melvin-bot bot removed the Overdue label Jan 24, 2023
@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Jan 24, 2023

I'll think this more like an improvement to the tooltip we can check all off @roryabraham .

@aneequeahmad
Copy link
Contributor

@JmillsExpensify Accepted offer, Thanks for mentioning

@JmillsExpensify
Copy link

You're all set!

@JmillsExpensify
Copy link

We still need to compensate Santhosh. Keep open until we close that loop.

@JmillsExpensify
Copy link

All contributors paid out. I'll close the loop on the regression test today.

@JmillsExpensify JmillsExpensify changed the title [HOLD for payment 2023-01-19] Tooltip appears sometimes when go back from chat (mWeb - Safari) - reported by @aneequeahmad [HOLD for test] Tooltip appears sometimes when go back from chat (mWeb - Safari) - reported by @aneequeahmad Jan 25, 2023
@melvin-bot melvin-bot bot added the Overdue label Jan 30, 2023
@JmillsExpensify
Copy link

Sorry ya'll. I'll close the loop on that test. Monday and late last week got away from me.

@melvin-bot melvin-bot bot added Overdue Reviewing Has a PR in review and removed Overdue labels Jan 31, 2023
@JmillsExpensify
Copy link

Closed the loop above, so closing this issue.

@JmillsExpensify JmillsExpensify changed the title [HOLD for test] Tooltip appears sometimes when go back from chat (mWeb - Safari) - reported by @aneequeahmad Tooltip appears sometimes when go back from chat (mWeb - Safari) - reported by @aneequeahmad Feb 7, 2023
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 Engineering Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests