-
Notifications
You must be signed in to change notification settings - Fork 3k
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 - Keyboard opens in front of the hold banner #53572
Comments
Triggered auto assignment to @anmurali ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
App/src/components/MoneyReportHeader.tsx Lines 512 to 513 in d7859ea
App/src/components/MoneyRequestHeader.tsx Lines 218 to 219 in d7859ea
Meanwhile, the input will be focused automatically if we are focusing on it before, so the composer is focused and the keyboard is opening. As a result, the keyboard opens in front of the hold banner. What changes do you think we should make in order to solve the problem?
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)Alternative solution 1:
Alternative solution 2:
App/src/components/Modal/BaseModal.tsx Line 106 in 5180ef4
Note: These two alternative solutions will work in all other modals, not only the hold modal. And, the feature "after the popover is closed, we should focus on the composer if it is focused before (Optional)" is handled like what I mentioned in the main solution. |
@anmurali Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~021866934797160828341 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Edited by proposal-police: This proposal was edited at 2024-12-12 07:06:53 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Keyboard opens in front of the hold banner What is the root cause of that problem?When we navigate back from the Hold page, the hold banner is triggered to show App/src/components/MoneyRequestHeader.tsx Line 129 in 5180ef4
At this moment, the composer is also triggered by auto-focus, causing the keyboard to appear. App/src/pages/home/ReportScreen.tsx Line 859 in 7ba97ac
So, the hold banner and keyboard are showing at the same time, causing this to happen What changes do you think we should make in order to solve the problem?To resolve this issue, we should dismiss the keyboard if the hold banner is showing. We add App/src/components/MoneyRequestHeader.tsx Line 137 in 5180ef4
if (isSmallScreenWidth) {
Keyboard.dismiss();
if (Navigation.getActiveRoute().slice(1) === ROUTES.PROCESS_MONEY_REQUEST_HOLD.route) {
Navigation.goBack();
}
} else {
Navigation.navigate(ROUTES.PROCESS_MONEY_REQUEST_HOLD.getRoute(Navigation.getReportRHPActiveRoute()));
} if (isSmallScreenWidth) {
Keyboard.dismiss();
if (Navigation.getActiveRoute().slice(1) === ROUTES.PROCESS_MONEY_REQUEST_HOLD.route) {
Navigation.goBack();
}
} else {
Navigation.navigate(ROUTES.PROCESS_MONEY_REQUEST_HOLD.getRoute(Navigation.getReportRHPActiveRoute()));
} Note: After clicking ‘Got it’ on the hold banner, do we want the input to autofocus? We will discuss this in the pull request phase. POCScreen.Recording.2024-12-12.at.14.02.42.movThis is a UI bug; no need for a test What alternative solutions did you explore? (Optional)Alternatively, we can expose a prop to trigger dismissing the keyboard from the ReportScreen Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Proposal updated
|
Triggered auto assignment to @rlinoz, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @truph01 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@eVoloshchak PR is ready |
@eVoloshchak friendly bump on reviewing the PR |
@eVoloshchak Could you review the PR once you have a chance? It is delayed for 3 weeks |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
I think we should handle specific cases like my proposal because this helps reduce the impact on other areas. Since this is the only case like this ticket, I think we should fix this specific case. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.84-7 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 2025-01-21. 🎊 For reference, here are some details about the assignees on this issue:
|
@eVoloshchak @anmurali @eVoloshchak 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] |
Not awaiting payment, the solution was reverted |
I am unable to reproduce this issue anymore: Screen.Recording.2025-01-23.at.17.31.08.mov |
Double checking #53572 (comment) |
Can't repro anymore either |
Closing. |
@anmurali Since both C+ and I spend efforts toward the PR, should we still be eligible for compensation here? |
@truph01 and @eVoloshchak are, very likely, due compensation because they hired/assigned. The PR was created and reviewed so compensation is 100% Contributor: @truph01 paid $250 via Upwork Deets from this SO (also noticed there are two payment-related SOs, I'm going to combine those today
|
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.71-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: #49971
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The keyboard doesn't open while the banner is shown
Actual Result:
The keyboard opens up in front of the hold banner
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: