-
Notifications
You must be signed in to change notification settings - Fork 971
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
Conversation
@@ -192,6 +196,41 @@ export const Workspace: FC<WorkspaceProps> = ({ | |||
</Alert> | |||
)} | |||
|
|||
{!workspace.health.healthy && ( | |||
<Alert severity="warning"> |
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.
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?
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.
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.
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.
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"> |
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.
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.
closes #19338