Skip to content

[HOLD for payment 2024-10-29] [HOLD for payment 2024-10-25] [$250] Android - Search - Keyboard does not auto open in Search modal #51010

Closed

Description

@IuliiaHerets

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.50-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
Email or phone of affected tester (no customers): applausetester+kh081006@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch New Expensify app.
  2. Open a report.
  3. Tap Search icon.

Expected Result:

Keyboard will auto open.

Actual Result:

Keyboard does not auto open.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6637494_1729158638593.1729158562598_Screen_Recording_20241017_174902_New_Expensify.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021846960678624915682
  • Upwork Job ID: 1846960678624915682
  • Last Price Increase: 2024-10-17
  • Automatic offers:
    • abzokhattab | Contributor | 104471055
Issue OwnerCurrent Issue Owner: @jayeshmangwani

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 17, 2024
  2. melvin-bot commented on Oct 17, 2024

    @melvin-bot

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

  3. melvin-bot commented on Oct 17, 2024

    @melvin-bot

    Triggered auto assignment to @sakluger (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.

  4. melvin-bot commented on Oct 17, 2024

    @melvin-bot

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

  5. github-actions commented on Oct 17, 2024

    @github-actions
    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.
  6. abzokhattab commented on Oct 17, 2024

    @abzokhattab
    Contributor

    Edited by proposal-police: This proposal was edited at 2024-10-17 18:17:16 UTC.

    Proposal

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

    Search - Keyboard does not auto open in Search modal

    What is the root cause of that problem?

    keyboard doesnt open up because we dont use the useAutoFocusInput inside the SearchRouterInput component like we do in other textInput fields and the autoFocus doesn't work well on android with modals

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

    we should assign the ref to the inputCallbackRef value of the useAutoFocusInput hook:

        const {inputCallbackRef } = useAutoFocusInput();

    then use it in the TextInput here:

                            ref={inputCallbackRef}

    then we could remove the autoFocus as its now handled by the useAutoFocusInput

    What alternative solutions did you explore? (Optional)

    optionally we can delay the focus so that the input field focuses correctly by adding shouldDelayFocus

  7. rayane-d commented on Oct 17, 2024

    @rayane-d
    Contributor
  8. Kicu commented on Oct 17, 2024

    @Kicu
    Contributor

    Was this tested on a physical phone? Cos I'm testing this on android emulator right now (Pixel) and the keyboard does open:

    rec-search-keyboard-andr.mp4
    rec-search-keyboard-andr2.mp4

    I did however noticed exactly one case where it didn't open, but I cannot reproduce it consistently. All the other cases it did open.
    I can test on a physical device later, but I'm curious if other people can reproduce this easily?

  9. 51 remaining items

  10. melvin-bot commented on Oct 18, 2024

    @melvin-bot

    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:

    • [@jayeshmangwani] The PR that introduced the bug has been identified. Link to the PR:
    • [@jayeshmangwani] 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:
    • [@jayeshmangwani] 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:
    • [@jayeshmangwani] Determine if we should create a regression test for this bug.
    • [@jayeshmangwani] 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.
    • [@sakluger] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  11. changed the title [-][HOLD for payment 2024-10-25] [$250] Android - Search - Keyboard does not auto open in Search modal[/-] [+][HOLD for payment 2024-10-29] [HOLD for payment 2024-10-25] [$250] Android - Search - Keyboard does not auto open in Search modal[/+] on Oct 22, 2024
  12. melvin-bot commented on Oct 22, 2024

    @melvin-bot

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

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

  13. melvin-bot commented on Oct 22, 2024

    @melvin-bot

    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:

    • [@jayeshmangwani] The PR that introduced the bug has been identified. Link to the PR:
    • [@jayeshmangwani] 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:
    • [@jayeshmangwani] 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:
    • [@jayeshmangwani] Determine if we should create a regression test for this bug.
    • [@jayeshmangwani] 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.
    • [@sakluger] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  14. sakluger commented on Oct 25, 2024

    @sakluger
    Contributor

    Weird - I'm not sure why the second payment hold was added, this was deployed to prod 7 days ago. I'll prep the payment summary.

    Summarizing payment on this issue:

    Contributor: @abzokhattab $250, paid via Upwork
    Contributor+: @jayeshmangwani $250, please complete the BZ checklist, then request on Newdot

  15. jayeshmangwani commented on Oct 26, 2024

    @jayeshmangwani
    Contributor
  16. jayeshmangwani commented on Oct 26, 2024

    @jayeshmangwani
    Contributor

    @sakluger I’ve checked the first two items on the checklist. For the third, I’m not sure if discussion is necessary here, as it could have been addressed in the PR review. As for items 4 and 5, I don’t think dedicated regression tests are needed.

  17. sakluger commented on Oct 28, 2024

    @sakluger
    Contributor
  18. melvin-bot commented on Oct 28, 2024

    @melvin-bot
  19. garrettmknight commented on Nov 6, 2024

    @garrettmknight
    Contributor

    $250 approved for @jayeshmangwani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions