Fix /transition route for already signed in users#7509
Conversation
|
This is mostly working. Also if you are logged into NewDot on another tab that tab will just crash, but not sure anything needs to be done about that. It seems more important to not interrupt the flow if someone is trying to create a new workspace with a new account. |
|
LGTM, appreciate the detailed test cases!
Got it, I'm guessing that could come in a separate followup PR, right?
Totally agree! Definitely shouldn't be an issue, as the user will most likely follow on through the normal flow (in the new tab) and not even notice the old tab. |
Oh! Actually, I solved this with a small change and forgot to leave an update. Multiple workspaces should not be getting created. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by @marcaaron in version: 1.1.37-0 🚀
|
|
🚀 Deployed to production by @roryabraham in version: 1.1.37-2 🚀
|
Details
There are a few ways a user can transition from OldDot to NewDot none of them work particularly well when the user is already signed into an existing account that is different from the one they are logging in as.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/193842
$ https://github.com/Expensify/Expensify/issues/193843
Tests / QA Steps
Test new account that does not have a policy yet
Test creating a new free policy for account that already has one while logged in as another user
Test transition when logged in as another user and tapping inbox task as a workspace user in setup
Test transition when logged in as another user and tapping inbox task as a workspace user with valid VBA
expensify.com/admin_policiesand select the WorkspaceNote: Also test that the mainline case of no users logged into NewDot or OldDot and a user signing up for the first time works fine.
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android