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 2024-07-10] [HOLD for payment 2024-07-02] Web - Book travel - There is hover effect on "Save money on ..." and "Get realtime updates.." #44211

Closed
2 of 6 tasks
lanitochka17 opened this issue Jun 22, 2024 · 10 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 22, 2024

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: 9.0.1-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4661870
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Book travel
  3. Hover over "Save money on your bookings" and "Get realtime updates and alerts"

Expected Result:

There will be no hover effect on "Save money on your bookings" and "Get realtime updates and alerts" (production behavior)

Actual Result:

There is hover effect on "Save money on your bookings" and "Get realtime updates and alerts"

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

Add any screenshot/video evidence

Bug6521550_1719065442534.20240622_220725.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 22, 2024
Copy link

melvin-bot bot commented Jun 22, 2024

Triggered auto assignment to @luacmartins (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@Krishna2323
Copy link
Contributor

Proposal

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

Web - Book travel - There is hover effect on "Save money on ..." and "Get realtime updates.."

What is the root cause of that problem?

The background is updated whenever isHovered && !pressed is true.

!focused && (isHovered || pressed) && hoverAndPressStyle,
shouldGreyOutWhenDisabled && disabled && styles.buttonOpacityDisabled,
isHovered && !pressed && styles.hoveredComponentBG,

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

We should also check if the item is interactive or not on both places where we update the hover styles.

!focused && interactive &&  (isHovered || pressed) && hoverAndPressStyle,
shouldGreyOutWhenDisabled && disabled && styles.buttonOpacityDisabled,
isHovered && interactive && !pressed && styles.hoveredComponentBG,

What alternative solutions did you explore? (Optional)

@ishpaul777
Copy link
Contributor

Proposal

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

Book travel - There is hover effect on "Save money on ..." and "Get realtime updates.."

What is the root cause of that problem?

Offending PR -https://github.com/Expensify/App/pull/43987/files

Here hover hoveredComponentBG is applied when isHovered && !pressed but there is no consideration when component is not interactive

!focused && (isHovered || pressed) && hoverAndPressStyle,
shouldGreyOutWhenDisabled && disabled && styles.buttonOpacityDisabled,
isHovered && !pressed && styles.hoveredComponentBG,

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

In <Hoverable> component we can pass a prop isDisabled={!interactive} to disable hover.

<Hoverable>

@rojiphil
Copy link
Contributor

Thanks all for the help here by tagging the offending PR and sharing the insights on the issue.
Fixing this issue here at #44219 since this is a regression from #43987
cc @MonilBhavsar

@mountiny mountiny self-assigned this Jun 24, 2024
@mountiny mountiny removed the DeployBlocker Indicates it should block deploying the API label Jun 24, 2024
@yuwenmemon yuwenmemon removed the DeployBlockerCash This issue or pull request should block deployment label Jun 24, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 25, 2024
@melvin-bot melvin-bot bot changed the title Web - Book travel - There is hover effect on "Save money on ..." and "Get realtime updates.." [HOLD for payment 2024-07-02] Web - Book travel - There is hover effect on "Save money on ..." and "Get realtime updates.." Jun 25, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 25, 2024
Copy link

melvin-bot bot commented Jun 25, 2024

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

Copy link

melvin-bot bot commented Jun 25, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 2, 2024
Copy link

melvin-bot bot commented Jul 2, 2024

Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.

@luacmartins
Copy link
Contributor

Payment will be handled in #41901. Closing.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jul 3, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-07-02] Web - Book travel - There is hover effect on "Save money on ..." and "Get realtime updates.." [HOLD for payment 2024-07-10] [HOLD for payment 2024-07-02] Web - Book travel - There is hover effect on "Save money on ..." and "Get realtime updates.." Jul 3, 2024
Copy link

melvin-bot bot commented Jul 3, 2024

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

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 Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants