Skip to content

feat: show workspace health error alert above agents in WorkspacePage #19400

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
Aug 22, 2025

Conversation

aqandrew
Copy link
Contributor

closes #19338

image

@@ -192,6 +196,41 @@ export const Workspace: FC<WorkspaceProps> = ({
</Alert>
)}

{!workspace.health.healthy && (
<Alert severity="warning">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alert's background color is --surface-secondary. The buttons turn --surface-secondary on hover, so there's no apparent change when hovering. (This is also the case in WorkspaceNotifications.)

Does it make sense to keep these colors? Or should we do something like give NotificationActionButton an even lighter background (--surface-tertiary) on hover?

Copy link
Member

Choose a reason for hiding this comment

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

the existing popup has the same problem. it should definitely get fixed eventually but our colors are a bit of a mess right now. probably out of scope for this issue.

Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

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

while you're poking at this, could I get you to update the MockUnhealthyWorkspace entity a little more for me? I think it's a bit more "realistic" if the agent is actually in an error state, as that affects some other styling on the page. I came up with...

export const MockUnhealthyWorkspace: TypesGen.Workspace = {
	...MockWorkspace,
	id: "test-unhealthy-workspace",
	health: {
		healthy: false,
		failing_agents: [MockWorkspaceAgent.id],
	},
	latest_build: {
		...MockWorkspace.latest_build,
		resources: [
			{
				...MockWorkspaceResource,
				agents: [
					{
						...MockWorkspaceAgent,
						status: "timeout",
						lifecycle_state: "start_error",
						health: { healthy: false },
					},
				],
			},
		],
	},
};

it might even be worth splitting into a MockUnhealthyAgent if you want but I'll leave it up to you

@@ -192,6 +196,41 @@ export const Workspace: FC<WorkspaceProps> = ({
</Alert>
)}

{!workspace.health.healthy && (
<Alert severity="warning">
Copy link
Member

Choose a reason for hiding this comment

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

the existing popup has the same problem. it should definitely get fixed eventually but our colors are a bit of a mess right now. probably out of scope for this issue.

@aqandrew
Copy link
Contributor Author

update the MockUnhealthyWorkspace entity a little more

Good idea. These stories make a lot more visual sense now that the agent is red instead of blue

image

@aqandrew aqandrew merged commit 9a872f9 into main Aug 22, 2025
30 of 33 checks passed
@aqandrew aqandrew deleted the aqandrew/unhealthy-workspace-alert branch August 22, 2025 00:22
@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2025
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.

workspace health errors are barely visible
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy