-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-22] [$250] Bank account - "Business bank account details" page becomes blank after return online #60517
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
Comments
Triggered auto assignment to @alexpensify ( |
Triggered auto assignment to @marcaaron ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
Not a blocker. GR is under beta. cc @burczu |
Coming from the perspective of the Web Deploy, I removed the
|
@marcaaron, since this isn't a deploy blocker, I moved it to Daily. Is this one ready for the |
Job added to Upwork: https://www.upwork.com/jobs/~021914413773616142569 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When a user is on the "Business bank account details" page, goes offline, and then returns online, the page content remains blank. The expected bank account information fails to load automatically after the network connection is restored. What is the root cause of that problem?The root cause is that the component responsible for displaying the bank account details does not automatically trigger a data refresh when the network status changes from offline to online. While the app likely detects the reconnection globally (e.g., via listeners connected to What changes do you think we should make in order to solve the problem?We need to ensure that the component responsible for this view (likely within The plan is:
Here's the core logic snippet illustrating the import React, {useEffect, useRef} from 'react';
// Adjust import paths as needed
import withNetwork from '@components/withNetwork';
import * as BankAccounts from '@libs/actions/BankAccounts';
function BusinessBankAccountDetailsPage({ network, /* other props */ }) {
const prevIsOffline = useRef(network.isOffline);
useEffect(() => {
// Re-fetch data when coming back online
if (prevIsOffline.current && !network.isOffline) {
BankAccounts.openPersonalBankAccountPage(); // Or the relevant refresh action
}
prevIsOffline.current = network.isOffline;
}, [network.isOffline]);
// ... Rest of component rendering logic using data from Onyx ...
return ( /* JSX */ );
}
// Ensure the component is wrapped with withNetwork HOC
export default withNetwork()(/* potentially other HOCs like withOnyx */(BusinessBankAccountDetailsPage)); This hook ensures the data refresh action is called precisely when the app transitions back online. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We need tests specifically targeting the offline-to-online transition for this page:
These tests should run across iOS, Android, and Web platforms. Contributor detailsYour Expensify account email: [email protected] Looking forward to work on the issue |
@MrMuzyk - I've assigned this GH to you, so you can help with the update. Thanks! |
Because there were other issues with the flow and they're all relatively small we've decided to fix all of them in one big follow-up issue - #60633 |
Seems fix is in progress here. |
PR that fixes it just got merged. This will be ready to be retested soon. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.45-21 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-05-22. 🎊 For reference, here are some details about the assignees on this issue: |
@jjcoffee @alexpensify @jjcoffee 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] |
No payment required for me as I didn't work on this. @alexpensify can you unassign me? |
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO. |
Closing - I believe that @hungvu193 will be paid via the Project GH. |
Uh oh!
There was an error while loading. Please reload this page.
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.1.30-0
Reproducible in staging?: Yes
Reproducible in production?: Unable to check
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: No, reproducible on hybrid only
If this was caught during regression testing, add the test name, ID and link from TestRail: #56931
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Workspace Settings
Action Performed:
Expected Result:
After returning online, the page will not be blank.
Actual Result:
After returning online, the page becomes blank.
When returning to previous page, Country field is cleared.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6806801_1745016793926.20250419_064717.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alexpensifyThe text was updated successfully, but these errors were encountered: