mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-05 03:33:24 +08:00
* Add IPCs for checking if the agent config file exists and for killing the agent * Prepare app for the new document type * When setup is done, switch the setup document to the status document, add a menu item that opens it. I also replaced `Popover` with `Menu`, it makes the menu consistent with other menus in web UI. * Add `runWithPreparation` and `kill` functions to control the lifecycle of the agent. Compute the final agent state based on their state and the state of the process. * Extract information related to the agent to `useAgentProperties` hook, so we can show `systemUsername` or `roleName` in multiple places * Add `DocumentConnectMyComputerStatus` component * Show agent state on the CMC icon * Use `access` for checking file existence * Add `createConnectMyComputerStatusDocument` * Rename `isSetupDone` to `isAgentConfiguredAttempt` * Improve `isAgentConfiguredAttempt` error handling * Rename `state` to `agentState` * Return services for the given `rootClusterUri` in `MockWorkspaceContextProvider` * Fix comment * Refactor calculating agent state * Do not allow to open status document when agent is not configured * Prettier and license * Use proper icons instead od emojis * Fix story reloading * Remove dot at the end of `process-error` message to align it with other messages * Refactor agent status calculation (#30617) * Fix document redirection * Add comments * Rename `StackTrace` to `Logs` * Move `workspace` back to the `ShowState` story component * Use `downloadAgentAttempt` from the context directly in the setup * Redirect to another document in `useLayoutEffect` * Rename leftovers of stackTrace to logs --------- Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>