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-07-26] [$1000] App keeps the hover state when returning back from the opened links #18675

Closed
1 of 6 tasks
kavimuru opened this issue May 9, 2023 · 81 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 External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented May 9, 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. Open the app in mac chrome/mac safari
  2. Open settings
  3. Click on help link
  4. Revisit the expensify tab and observe that link still has background hover color

Expected Result:

App should remove the hover effect from link background when clicked (when visiting external link) - like it does on Windows Chrome

Actual Result:

App keeps the hover effect on external link even when we click and visit the link

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?

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

Version Number: 1.3.12.0
Reproducible in staging?: y
Reproducible in production?:
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

hover.stuck.external.link.mac.mov
Recording.187.mp4

Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683626608112949

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016746e1721b3e89aa
  • Upwork Job ID: 1656133072671420416
  • Last Price Increase: 2023-06-01
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

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

@melvin-bot
Copy link

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

@jliexpensify
Copy link
Contributor

Yep, can repro this one!

@jliexpensify jliexpensify added the External Added to denote the issue can be worked on by a contributor label May 10, 2023
@melvin-bot melvin-bot bot changed the title App keeps the hover state when returning back from the opened links [$1000] App keeps the hover state when returning back from the opened links May 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 10, 2023

Job added to Upwork: https://www.upwork.com/jobs/~016746e1721b3e89aa

@melvin-bot
Copy link

melvin-bot bot commented May 10, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 10, 2023

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

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

melvin-bot bot commented May 10, 2023

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

@jliexpensify
Copy link
Contributor

@jasperhuangg @aimane-chnaif - curious to get your thoughts: will @allroundexperts proposal in #16923 resolve this issue as well?

@mostfa29
Copy link

Proposal

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

The problem we are trying to solve in this issue is that the App's hover effect on a link's background is not being removed when the link is clicked and visited externally.

What is the root cause of that problem?

The root cause of the problem is that when a user clicks on an external link, the focus is shifted away from the component, but the onBlur event is not triggered. As a result, the onPressOut event is not triggered either.

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

In order to solve the problem, we can add an event listener to the external link and manually trigger the onBlur event for the component when the external link is clicked. This will ensure that the onPressOut event is triggered even when the focus is shifted away from the component.

What alternative solutions did you explore? (Optional)

I explored several alternative solutions, including using the onFocus event instead of onBlur, and using a different event handler for external links. However, I found that manually triggering the onBlur event was the most effective solution.

@melvin-bot
Copy link

melvin-bot bot commented May 11, 2023

📣 @mostfa29! 📣
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>

@mostfa29
Copy link

Contributor details
Your Expensify account email: amin29199@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~011bc7e925bdaf6efe

@melvin-bot
Copy link

melvin-bot bot commented May 11, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@melvin-bot melvin-bot bot added the Overdue label May 12, 2023
@jasperhuangg
Copy link
Contributor

@jliexpensify Yup, looks like that proposal will solve this issue as well in one-fell swoop. Let's HOLD this issue on that one

@melvin-bot melvin-bot bot removed the Overdue label May 15, 2023
@jasperhuangg jasperhuangg changed the title [$1000] App keeps the hover state when returning back from the opened links [HOLD 16923] [$1000] App keeps the hover state when returning back from the opened links May 15, 2023
@melvin-bot melvin-bot bot added the Overdue label May 17, 2023
@jasperhuangg
Copy link
Contributor

still on HOLD

@melvin-bot melvin-bot bot removed the Overdue label May 17, 2023
@allroundexperts
Copy link
Contributor

@jasperhuangg My proposal wasn't able to go through. You can read more about this here and also add your opinion.

@jasperhuangg
Copy link
Contributor

@allroundexperts If your proposal isn't able to fix all instances of this issue in one-fell swoop, then I think this particular instance of the issue isn't worth fixing, since when the user navigates back to the page the issue disappears.

@jliexpensify
Copy link
Contributor

Hmm @aimane-chnaif it says the Upworks job is closed. Did you get an actual invite?

@aimane-chnaif
Copy link
Contributor

No invitation

@jliexpensify
Copy link
Contributor

Weird ok, I guess the following is happening:

  1. Upworks jobs longer than 1 month are being auto-closed (?)
  2. When an Engineer assigns a contributor, since the job is closed, they don't get the invite

I'll create a manual job, this is pretty annoying!

@jliexpensify
Copy link
Contributor

@dhanashree-sawant
Copy link

@jliexpensify, Thanks! Offer accepted.

@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 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 @cubuspl42 got assigned: 2023-07-11 18:59:22 Z
  • when the PR got merged: 2023-07-14 22:20:49 UTC
  • days elapsed: 3

On to the next one 🚀

@cubuspl42
Copy link
Contributor

@MelvinBot Well, you're technically right, but it nearly made it, the PR was submitted 4 hours after the assignment and the review comments were minor. What took the time was waiting for review. But you're a good bot anyway.

@jliexpensify
Copy link
Contributor

Yeah, that's fine - we'll pay put a bonus since you just missed out on the timeframe @cubuspl42 . Btw, you invoice us separately, correct?

@melvin-bot
Copy link

melvin-bot bot commented Jul 18, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@aimane-chnaif
Copy link
Contributor

Not a blocker - #23052 (comment)

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 19, 2023
@melvin-bot melvin-bot bot changed the title [$1000] App keeps the hover state when returning back from the opened links [HOLD for payment 2023-07-26] [$1000] App keeps the hover state when returning back from the opened links Jul 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 19, 2023

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 19, 2023

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

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 Jul 19, 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:

  • [@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR:
  • [@aimane-chnaif] 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:
  • [@aimane-chnaif] 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:
  • [@aimane-chnaif] Determine if we should create a regression test for this bug.
  • [@aimane-chnaif] 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.
  • [@jliexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@jliexpensify
Copy link
Contributor

@aimane-chnaif bump to please complete the checklist

Looks like this qualifies for a bonus

@cubuspl42 - just confirming, do you invoice us separately?

@aimane-chnaif
Copy link
Contributor

I don't think we need regression test. The issue itself is edge case.

@cubuspl42
Copy link
Contributor

@jliexpensify I'm sorry but I don't understand the question 🙁 Is it related to something on Upwork?

@jliexpensify
Copy link
Contributor

Yes @cubuspl42 - I'm just wondering if you're from an external agency and invoicing us separately, or if you've got an Upworks profile? :)

@cubuspl42
Copy link
Contributor

@jliexpensify Via Upwork: https://www.upwork.com/freelancers/jakubt

@jliexpensify
Copy link
Contributor

jliexpensify commented Jul 25, 2023

Great, thanks - I'll pay out in a couple of days: https://www.upwork.com/jobs/~01ae392bba5fe121b4

Jakub - $1000 + $500 (bonus)
Aimane - $1000 (C+) + $500 (bonus)
Dhanashree - $250 (reporting)

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

Everyone is paid and job is closed!

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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

9 participants