You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-10-29] [HOLD for payment 2024-10-25] [$250] Android - Search - Keyboard does not auto open in Search modal #51010
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
👋 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:
Identify the pull request that introduced this issue and revert it.
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:
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?
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:
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
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:
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:
[@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: N/A
[@jayeshmangwani] Determine if we should create a regression test for this bug. N/A
[@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. N/A
@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.
Activity
melvin-bot commentedon Oct 17, 2024
Triggered auto assignment to @srikarparsi (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Oct 17, 2024
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.melvin-bot commentedon Oct 17, 2024
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Oct 17, 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:
abzokhattab commentedon Oct 17, 2024
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
useAutoFocusInputinside theSearchRouterInputcomponent like we do in other textInput fields and theautoFocusdoesn't work well on android with modalsWhat changes do you think we should make in order to solve the problem?
we should assign the ref to the
inputCallbackRefvalue of theuseAutoFocusInputhook:then use it in the
TextInputhere:then we could remove the autoFocus as its now handled by the
useAutoFocusInputWhat alternative solutions did you explore? (Optional)
optionally we can delay the focus so that the input field focuses correctly by adding
shouldDelayFocusrayane-d commentedon Oct 17, 2024
cc @289Adam289 @Kicu @SzymczakJ @luacmartins
Kicu commentedon Oct 17, 2024
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?
51 remaining items
melvin-bot commentedon Oct 18, 2024
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:
[-][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[/+]melvin-bot commentedon Oct 22, 2024
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:
melvin-bot commentedon Oct 22, 2024
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:
sakluger commentedon Oct 25, 2024
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
jayeshmangwani commentedon Oct 26, 2024
jayeshmangwani commentedon Oct 26, 2024
@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.
sakluger commentedon Oct 28, 2024
Thanks @jayeshmangwani!
melvin-bot commentedon Oct 28, 2024
@sakluger @luacmartins @srikarparsi Be sure to fill out the Contact List!
garrettmknight commentedon Nov 6, 2024
$250 approved for @jayeshmangwani