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

[$500] The back tooltip floats when we return from the Search. #36053

Closed
1 of 6 tasks
m-natarajan opened this issue Feb 7, 2024 · 22 comments
Closed
1 of 6 tasks

[$500] The back tooltip floats when we return from the Search. #36053

m-natarajan opened this issue Feb 7, 2024 · 22 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause

Comments

@m-natarajan
Copy link

m-natarajan commented Feb 7, 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: 1.4.38-0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause internal team

Action Performed:

1, Click on "Search."
2, Upon returning from the search, observe that the back tooltip unexpectedly floats.

Expected Result:

The back tooltip should disappear when the modal is closed.

Actual Result:

The back tooltip floats when we return from the Search.

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: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

floating.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a6a56ddf6a62fbf6
  • Upwork Job ID: 1755487058087190528
  • Last Price Increase: 2024-02-15
  • Automatic offers:
    • fedirjh | Contributor | 28150026
@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 7, 2024
Copy link

melvin-bot bot commented Feb 7, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Feb 7, 2024
Copy link
Contributor

github-actions bot commented Feb 7, 2024

👋 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.

Copy link

melvin-bot bot commented Feb 7, 2024

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

@cead22 cead22 added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Feb 7, 2024
@cead22
Copy link
Contributor

cead22 commented Feb 7, 2024

This doesn't feel like a blocker, @greg-schroeder can you put it through the regular bug process please?

@greg-schroeder greg-schroeder added the External Added to denote the issue can be worked on by a contributor label Feb 8, 2024
@greg-schroeder
Copy link
Contributor

Agreed not a blocker, setting External and leaving Daily

@melvin-bot melvin-bot bot changed the title The back tooltip floats when we return from the Search. [$500] The back tooltip floats when we return from the Search. Feb 8, 2024
Copy link

melvin-bot bot commented Feb 8, 2024

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

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

melvin-bot bot commented Feb 8, 2024

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

@Krishna2323
Copy link
Contributor

Krishna2323 commented Feb 8, 2024

Proposal

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

The back tooltip floats when we return from the Search.

What is the root cause of that problem?

We are not passing onBackButtonPress={Navigation.goBack} to HeaderWithBackButton in SearchPage and due to this when clicking on the back button the route is changed to home route instead of the previous route causing a delay in animations and disruptions in layouts.

onBackButtonPress = () => Navigation.goBack(ROUTES.HOME),

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

Pass onBackButtonPress={Navigation.goBack} to HeaderWithBackButton in SearchPage.

<HeaderWithBackButton title={translate('common.search')} />

The same issue doesn't happen with WorkspaceSwitcherPage because we pass the onBackButtonPress={Navigation.goBack} prop.

<HeaderWithBackButton
title={translate('workspace.switcher.headerTitle')}
onBackButtonPress={Navigation.goBack}

Result

tooltip_float.mp4

Alternative

Change the default value of onBackButtonPress inside HeaderWithBackButton to Navigation.goBack.

@Krishna2323
Copy link
Contributor

@greg-schroeder, I think you unassigned @fedirjh by mistake.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 8, 2024

This comment was marked as off-topic.

@greg-schroeder greg-schroeder added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 8, 2024
@greg-schroeder
Copy link
Contributor

Yes I did, that was an accident. I've rescinded that offer, silly automatation 😅

@nduisekeyev
Copy link

Proposal

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

The back tooltip floats from the workspace switcher.

What is the root cause of that problem?

The absence of the second argument in the HeaderWithBackButton from the Navigation library, which is responsible for enforcing navigation to the fallback route, results in the floating of the back tooltip.

function goBack(fallbackRoute?: Route, shouldEnforceFallback = false, shouldPopToTop = false) {

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

By passing Navigation.goBack(ROUTES.HOME, true) to the onBackButtonPress prop, we're ensuring that the goBack function is called with the appropriate arguments, including the fallback route (ROUTES.HOME) and the shouldEnforceFallback flag set to true in the HeaderWithBackButton.

onBackButtonPress = () => Navigation.goBack(ROUTES.HOME),

Screenshots/Videos

screenshoot_video.mov

What alternative solutions did you explore? (Optional)

N/A

Copy link

melvin-bot bot commented Feb 8, 2024

📣 @nduisekeyev! 📣
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. Make sure you've read and understood the contributing guidelines.
  2. 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.
  3. 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.
  4. 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>

@nduisekeyev
Copy link

Contributor details
Your Expensify account email: nur.duisekeyev@hotmail.com
Upwork Profile Link: https://www.upwork.com/fl/~01ab96855ba9fc9fc4

Copy link

melvin-bot bot commented Feb 9, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Feb 12, 2024
@fedirjh
Copy link
Contributor

fedirjh commented Feb 12, 2024

Unable to reproduce on staging v1.4.40-1

CleanShot.2024-02-12.at.22.30.07.mp4

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 12, 2024
Copy link

melvin-bot bot commented Feb 15, 2024

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

@greg-schroeder greg-schroeder added the retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause label Feb 16, 2024
@greg-schroeder
Copy link
Contributor

Adding retest label to have QA confirm if this is still an issue

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 16, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

@greg-schroeder, @fedirjh Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@greg-schroeder
Copy link
Contributor

Waiting for reproduction

@melvin-bot melvin-bot bot removed the Overdue label Feb 19, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@greg-schroeder
Copy link
Contributor

Closing this after multiple failures to reproduce, reopen if you disagree

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 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause
Projects
None yet
Development

No branches or pull requests

7 participants