-
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
Reintroduce workspace new without a modal, just the url #5396
Conversation
Reintroduce workspace new without a modal, just the url (cherry picked from commit cb6b55a)
Heads up was testing this some more and running into an issue when tapping on the existing workspace in OldDot Error here is thrown -> App/src/pages/workspace/WorkspaceSidebar.js Lines 83 to 90 in 639ce2e
|
Is it being logged in the logs? If is just console then does not matter much |
Can you give steps to reproduce please? |
App/src/libs/Navigation/NavigationRoot.js Line 33 in 639ce2e
|
|
Oh we could skip that log line if the path contains |
🚀 Cherry-picked to staging by @AndrewGable in version: 1.1.1-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Fixing the authToken logging here: #5425. Set put the CP label on it so it'll be ready as soon as it's merged. |
Oh, so it's probably being logged. We should remove it, although they are short lived tokens. |
@TomatoToaster @iwiznia are we ok to QA this PR now or need to wait ? |
You can skip QA on this one. @kevinksullivan, @MitchExpensify and some other volunteers are testing this whole flow. |
Tried doing this in dev, I reproduced it once and never again. Must be a race condition. |
Scratch that, I forgot to sign out again. Seems it is reproducible. |
Here's a summary of how to recreate this issue: Following the testing flow for an existing accounts
^ This last step fails if you are logged out of NewDot beforehand. It briefly flickers the modal but then says workspace is invalid and closes it. This error is being thrown here: App/src/pages/workspace/WorkspaceSidebar.js Lines 82 to 90 in 43f9d30
I assumed this had to do with the wonky logic we implemented ^ in order to wait for the policies to be loaded before we check that it doesn't exist. A solution might just be to get rid of that error and not care if users enter invalid links to reach the workspaces. I think this will work because eventually Onyx will load with the policy details and show the correct thing (haven't tested this yet). I noticed that if you get rid of Line 11 in 0e6fdbf
It just never appears to load the Workspace component. This is likely because If just getting rid of the error works, then I'm fine with that solution but I think the ideal solution keeps the |
Nether flow is available on Mobile so I think we're good here |
🚀 Deployed to staging by @marcaaron in version: 1.1.1-9 🚀
|
I see this PR has been added to the new checklist. Should this PR be QAd again? CC @iwiznia @TomatoToaster |
Looks like its already on production, @isagoico we can check this one off |
CC: @iwiznia, @cead22
Details
Reintroduces the Workspace/New command which will be used in inboxTasks and the pricing page from OldDot.
Note: this PR includes changes from this one and is held on it:
Fixed Issues
related to Expensify/Expensify#177739
Tests
Same as QA done locally.
Make sure you have these other PRs running locally
Expensify/Web-Expensify#31977
Expensify/Auth#5963
QA Steps
Flow 1: Unvalidated new accounts
Create a new account in OldDot that has access to the freePlan beta.
Go to settings -> policy -> group and select the free plan here:
Verify that a new tab opens and you are logged into NewDot and you are seeing the Workspace Settings page for a newly created Workspace:
Wait a minute
Do any action (like add a comment)
Check you are not logged out
Flow 2: Existing accounts
+
on the bottom right.Tested On
Screenshots
Included in QA