-
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
Sign in, out, or navigate on transition mount #8257
Merged
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
acbdf28
Sign in, out, or navigate on transition mount
neil-marcellini a873630
Queue requests to sign in with a short lived token
neil-marcellini 191c02f
Retry growls when the ref is not available
neil-marcellini e527f2e
Show a loading screen when the betas are loading
neil-marcellini 2d63d2b
Remove setTimeout on Growl
marcaaron 6e375bb
Fix CreateMenu from popping up when navigating to workspace page on s…
marcaaron 151571b
do it for large screens too
marcaaron a77553c
add logs
marcaaron e1e594f
Merge remote-tracking branch 'origin/main' into neil-setup-transition
marcaaron 7e65708
revert growl changes improve log
marcaaron 38c4b8a
Remove IS_LOADING_BETAS
marcaaron 282a9d1
remove isLoadingBetas
marcaaron 25bb9c4
Remove shouldProcessImmediately
marcaaron 2996c88
remove parseInt
marcaaron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,9 @@ function show({routes, toggleCreateMenu}) { | |
// If we are rendering the SidebarScreen at the same time as a workspace route that means we've already created a workspace via workspace/new and should not open the global | ||
// create menu right now. | ||
const topRouteName = lodashGet(_.last(routes), 'name', ''); | ||
const isDisplayingWorkspaceRoute = topRouteName.toLowerCase().includes('workspace'); | ||
const loginWithShortLivedTokenRoute = _.find(routes, route => route.name === 'LogInWithShortLivedToken'); | ||
const exitingToWorkspaceRoute = lodashGet(loginWithShortLivedTokenRoute, 'params.exitTo', '') === 'workspace/new'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added this otherwise we would pop open the create menu in some contexts. I guess the top route is not always "workspace" and sometimes still the |
||
const isDisplayingWorkspaceRoute = topRouteName.toLowerCase().includes('workspace') || exitingToWorkspaceRoute; | ||
|
||
// It's also possible that we already have a workspace policy. In either case we will not toggle the menu but do still want to set the NVP in this case | ||
// since the user does not need to create a workspace. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here - I'm having trouble seeing how this is connected to the transition stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this code and it doesn't seem to impact anything.