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-11-13] [$250] iOS - Search - Search input field does not auto focus #51482

Closed
2 of 8 tasks
lanitochka17 opened this issue Oct 25, 2024 · 24 comments
Closed
2 of 8 tasks
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 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 25, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.54-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

  1. Launch ND app or hybrid
  2. Tap on the search icon on the top right

Expected Result:

Search input field will auto focus (production behavior)

Actual Result:

Search input field does not auto focus

Workaround:

Unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6645639_1729867786972.ScreenRecording_10-25-2024_22-47-54_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021851691945418827648
  • Upwork Job ID: 1851691945418827648
  • Last Price Increase: 2024-10-30
  • Automatic offers:
    • suneox | Reviewer | 104686746
    • FitseTLT | Contributor | 104686747
Issue OwnerCurrent Issue Owner: @twisterdotcom
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Oct 25, 2024
Copy link

melvin-bot bot commented Oct 25, 2024

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

Copy link

melvin-bot bot commented Oct 25, 2024

💬 A slack conversation has been started in #expensify-open-source

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.

@lanitochka17
Copy link
Author

Production:

RPReplay_Final1729868136.1.MP4

@Beamanator
Copy link
Contributor

There seem to be multiple auto-focus bugs right now 🤔

@ChavdaSachin
Copy link
Contributor

And they are specific to IOS.

@Beamanator
Copy link
Contributor

@yuwenmemon since this is iOS-specific & related to focuses, I had a theory here what the cause could be - but maybe we could downgrade this to NAB?

@yuwenmemon
Copy link
Contributor

Same root cause as: #51464

@Beamanator
Copy link
Contributor

Agreed in slack this isn't a bad enough bug to block deploy

@Beamanator Beamanator added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Oct 29, 2024
@yuwenmemon
Copy link
Contributor

The similar issue seems to have a proposal that is promising, asked about this here: #51464 (comment)

@yuwenmemon yuwenmemon added Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor labels Oct 30, 2024
Copy link

melvin-bot bot commented Oct 30, 2024

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

@melvin-bot melvin-bot bot changed the title iOS - Search - Search input field does not auto focus [$250] iOS - Search - Search input field does not auto focus Oct 30, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 30, 2024
Copy link

melvin-bot bot commented Oct 30, 2024

Triggered auto assignment to @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Oct 30, 2024

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

@mkzie2
Copy link
Contributor

mkzie2 commented Oct 31, 2024

Proposal

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

Search input field does not auto focus

What is the root cause of that problem?

We use autoFocus prop to focus on the TextInput but it doesn't work as expected on IOS, maybe it's broken by the navigation transition or other transition.

autoFocus={autoFocus}
shouldDelayFocus={shouldDelayFocus}

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

We should use useAutoFocusInput hook to focus on the TextInput and remove autoFocus and shouldDelayFocus. I checked this original PR for the reason we use autoFocus and shouldDelayFocus but when testing with useAutoFocusInput, it works well on mWeb chrome.

const {inputCallbackRef} = useAutoFocusInput();
ref={inputCallbackRef}

autoFocus={autoFocus}
shouldDelayFocus={shouldDelayFocus}

What alternative solutions did you explore? (Optional)

@FitseTLT
Copy link
Contributor

Proposal

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

OS - Search - Search input field does not auto focus

What is the root cause of that problem?

The root cause is related with the patch applied in enable bridgeless pr (there is a discussion about it here)

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

We can solve it by introducing delay in the focus, as we did for android,

shouldDelayFocus={shouldDelayFocus}

we are already introducing the delay for android here
const shouldDelayFocus: ShouldDelayFocus = true;

so we should make it more general and include ios by changing the file to index.native.ts

What alternative solutions did you explore? (Optional)

@suneox
Copy link
Contributor

suneox commented Oct 31, 2024

@FitseTLT The RCA is correct, this issue only occurs at PR #48160 and update shouldDelayFocus for the native platform LGTM. So we can process with this proposal

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Oct 31, 2024

Current assignee @yuwenmemon is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 31, 2024
Copy link

melvin-bot bot commented Oct 31, 2024

📣 @suneox 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Oct 31, 2024

📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 1, 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 Nov 6, 2024
@melvin-bot melvin-bot bot changed the title [$250] iOS - Search - Search input field does not auto focus [HOLD for payment 2024-11-13] [$250] iOS - Search - Search input field does not auto focus Nov 6, 2024
Copy link

melvin-bot bot commented Nov 6, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 6, 2024
Copy link

melvin-bot bot commented Nov 6, 2024

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

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Nov 6, 2024

@suneox @twisterdotcom The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 12, 2024
@suneox
Copy link
Contributor

suneox commented Nov 12, 2024

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production
  • 2b. Reported on staging (deploy blocker)
  • 2c. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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: I think there isn’t an offending PR here, as this is related to an infrastructure update included in this PR.

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again. N/A: this issue only happen on specific platform and auto focus doesn't break functionality

@twisterdotcom
Copy link
Contributor

Payment Summary:

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

No branches or pull requests

8 participants