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

[$250] iOS - Search - Search input field does not auto focus #51482

Open
2 of 8 tasks
lanitochka17 opened this issue Oct 25, 2024 · 19 comments
Open
2 of 8 tasks

[$250] iOS - Search - Search input field does not auto focus #51482

lanitochka17 opened this issue Oct 25, 2024 · 19 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 25, 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.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): applausetester+kh1610015@applause.expensifail.com
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: @FitseTLT
@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
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. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants