-
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
Web - LHN - Workspace switcher resets to Expensify when sending invoice for the first time #54509
Comments
Triggered auto assignment to @cristipaval ( |
Triggered auto assignment to @laurenreidexpensify ( |
💬 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:
|
OK, so this is a real issue. We are sending invoice on workspace chat. |
Looking for issue. |
DANG! This is bad! |
Thanks @parasharrajat! |
This issue is a regression from #54030. |
I don't think we need to block deploy on this, but @chrispader please look into this when you can. #54030 looks a bit too complicated to revert. |
@jasperhuangg you can add External label to draw some attention if needed. |
ProposalPlease re-state the problem that we are trying to solve in this issue.WS switcher resets to all when sending invoice. What is the root cause of that problem?When we send a new invoice, we will switch to the policy that we use to send the invoice. Before #54030, when we navigate to a HOME screen and the home screen already exists on the bottom tab stack, it will simply update the params, but now, it will always push a new screen. And a new sidebar screen is mounted. In the sidebar screen, we have an effect. that the purpose is to switch to the all workspace view if the active workspace is not exist. App/src/pages/home/sidebar/SidebarScreen/BaseSidebarScreen.tsx Lines 24 to 38 in ad99c20
In our case, the activeWorkspaceID is available, but the activeWorkspace object is not, and that is because it's still loading. Lines 1417 to 1431 in ad99c20
Why is it loading only when we send an invoice to a new workspace? It's because when we send an invoice to a new workspace, we submit the company name and website. So, the onyx has a pending merge and What changes do you think we should make in order to solve the problem?Return early when the onyx is still loading.
(or we can set What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A |
In case we want to make it external, I have a proposal above. |
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.78-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.0 / Chrome
App Component: Left Hand Navigation (LHN)
Action Performed:
Expected Result:
In Step 10, the workspace switcher will not reset to Expensify when sending invoice for the first time (production behavior).
Actual Result:
In Step 10, the workspace switcher resets to Expensify when sending invoice for the first time.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6701610_1735009589993.20241224_105858.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: