-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v14] Improve Connect My Computer UI & logout experience (#32791)
* Kill agent after removing workspace on logout Quick shutdown of an agent now induces a 3 second timeout if there are active connections (#31869). I changed the logout procedure so that we first remove the workspace (and thus close all tabs) and only then kill the agent. This makes it so that if there were any open connections from the app, we'll close them before killing the agent, which means the app will close without that 3 second timeout. * Make Start Agent button's handler ignore errors * Avoid rendering labels if there's no node This could happen if someone started and stopped the agent and then clicked Start Agent with expired certs. agentNode would go from undefined to defined back to undefined, but it seems that <Transition> doesn't unmount immediately. * clusters.Cluster.Logout: Make error handling more explicit !trace.IsNotFound(err) returns true both when the error is nil and when it's not nil but the error is not NotFound. Meaning that code after the conditional would run only when err is NotFound. I added a bogus error to test something after the conditional and then spent 30 minutes wondering what's going on. * Display an empty ring if agent is set up but not running This makes it consistent with the Connections list which also displays an empty ring if there are no connections. * Expand NavigationMenu stories, add story for agent starting * Avoid calculating indicator status if user cannot use feature * Copy progress icon from Cloud's ProgressBar * Return 'not-configured' early if agent is not configured * Add story for when agent is configured but not started, reorder stories
- Loading branch information
Showing
6 changed files
with
201 additions
and
94 deletions.
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
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
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
Oops, something went wrong.