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
[$500] Bank Account - Cursor in Routing number shown in "Account number"switching background to foreground #31363
Version Number: 1.3.99-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause-Internal Team Slack conversation: @
Action Performed:
Launch app
Tap profile icon
Tap Workspaces----Workspace
Tap Bank account---Update to USD currency
Tap connect manually
Paste routing number
Keep cursor in Account number
Background the app
Copy the account number
Foreground the app
Expected Result:
When cursor placed in account number, and kept app in background and again bringing foreground, app cursor must be in the same "Account number" field.
Actual Result:
When cursor placed in "account number", and kept app in background and again bringing foreground, app cursor is in "routing number" field instead of "Account number".
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Bank Account - Cursor in Routing number shown in "Account number"switching background to foreground[/-][+][$500] Bank Account - Cursor in Routing number shown in "Account number"switching background to foreground[/+]on Nov 15, 2023
Please re-state the problem that we are trying to solve in this issue.
Cursor in Routing number shown in "Account number"switching background to foreground
What is the root cause of that problem?
After we come back from the background, ReconnectApp API is called which makes this.props.isLoadingReportData is true. So the first step component is unmounted and then after loading is completed, the first input is focused by default.
What changes do you think we should make in order to solve the problem?
We should replace IS_LOADING_REPORT_DATA with IS_LOADING_APP which will only be true when OpenApp API is called and rename isLoadingReportData prop by isLoadingApp. That can prevent loading is shown when the user comes back from the background.
What alternative solutions did you explore? (Optional)
Hm, I'm not sure it's worth making a change here. @nkuoch@MariaHCD I assume there's a pretty good reason why we show the loader here on the bank account page?
📣 @dukenv0307 🎉 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 📖
Activity
[-]Bank Account - Cursor in Routing number shown in "Account number"switching background to foreground[/-][+][$500] Bank Account - Cursor in Routing number shown in "Account number"switching background to foreground[/+]melvin-bot commentedon Nov 15, 2023
Job added to Upwork: https://www.upwork.com/jobs/~014a1de3bb375306db
melvin-bot commentedon Nov 15, 2023
Triggered auto assignment to @trjExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Nov 15, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Nov 15, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (
External)tienifr commentedon Nov 15, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Bank Account - Cursor in Routing number shown in "Account number"switching background to foreground
What is the root cause of that problem?
We're checking isLoading using
isLoadingReportDataApp/src/pages/ReimbursementAccount/ReimbursementAccountPage.js
Lines 400 to 401 in 8872311
When users comeback from background to foreground, we will call API
ReconnectAppthat makesisLoadingReportDatais true-> Connect bank account page is unmounted
-> Loading indicator is shown
When isLoadingReportData comes false, Connect bank account page is mounted again and the routing number is focused (by default)
What changes do you think we should make in order to solve the problem?
We should check isLoadingReportData to show the loading indicator at the first time
componentDidUpdate!this.state.hasReportDataLoadedin here instead ofisLoadingReportDataResult
Screen.Recording.2023-11-15.at.20.35.08.mov
dukenv0307 commentedon Nov 15, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Cursor in Routing number shown in "Account number"switching background to foreground
What is the root cause of that problem?
After we come back from the background,
ReconnectAppAPI is called which makesthis.props.isLoadingReportDataistrue. So the first step component is unmounted and then after loading is completed, the first input is focused by default.App/src/pages/ReimbursementAccount/ReimbursementAccountPage.js
Line 401 in 8872311
What changes do you think we should make in order to solve the problem?
We should replace
IS_LOADING_REPORT_DATAwithIS_LOADING_APPwhich will only be true whenOpenAppAPI is called and renameisLoadingReportDataprop byisLoadingApp. That can prevent loading is shown when the user comes back from the background.What alternative solutions did you explore? (Optional)
trjExpensify commentedon Nov 15, 2023
Hm, I'm not sure it's worth making a change here. @nkuoch @MariaHCD I assume there's a pretty good reason why we show the loader here on the bank account page?
tienifr commentedon Nov 16, 2023
@trjExpensify But I don't think showing the loading indicator whenever users background then foreground is the good idea. We have nothing to load.
22 remaining items
trjExpensify commentedon Dec 4, 2023
@joelbettner can you review this proposal please so we can move to a PR? Thanks!
joelbettner commentedon Dec 4, 2023
@dukenv0307's proposal looks good to me.
melvin-bot commentedon Dec 4, 2023
📣 @getusha 🎉 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
melvin-bot commentedon Dec 4, 2023
📣 @dukenv0307 🎉 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 📖
dukenv0307 commentedon Dec 5, 2023
@getusha The PR is ready for review
getusha commentedon Dec 25, 2023
@trjExpensify PR was deployed to production 2 weeks a go, seems like automation failed.
trjExpensify commentedon Jan 3, 2024
Hey, back from the festive break! Confirming payments as follows:
$500 - @getusha for the C+ review
$500 - @dukenv0307 for the fix.
Settled up, closing!