Skip to content

feat(site): Show warning if startup script is running #7326

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

Merged
merged 6 commits into from
May 2, 2023

Conversation

BrunoQuaresma
Copy link
Collaborator

Preview:
image

Close #6819

@BrunoQuaresma BrunoQuaresma requested a review from a team April 28, 2023 18:56
@BrunoQuaresma BrunoQuaresma self-assigned this Apr 28, 2023
@BrunoQuaresma BrunoQuaresma requested review from rodrimaia and removed request for a team April 28, 2023 18:56
@@ -100,6 +75,11 @@ const TerminalPage: FC<
applicationsHost,
} = terminalState.context
const reloading = useReloading(isDisconnected)
const shouldDisplayStartupWarning = workspaceAgent
? ["starting", "starting_timeout", "start_error"].includes(
Copy link
Member

@mafredri mafredri Apr 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This start_error is a permanent state when error is encountered (until shutdown). The workspace will never be ready. Perhaps we should show a different kind of warning in that case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh I see. I totally agree.

Copy link
Contributor

@rodrimaia rodrimaia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved ;) (left a question, but I am not sure of it)

@BrunoQuaresma BrunoQuaresma requested a review from mafredri May 2, 2023 16:22
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@BrunoQuaresma BrunoQuaresma merged commit 730039f into main May 2, 2023
@BrunoQuaresma BrunoQuaresma deleted the bq/show-alert-on-terminal branch May 2, 2023 17:49
@github-actions github-actions bot locked and limited conversation to collaborators May 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prevent web terminal entry when login_before_ready = false
3 participants