@@ -72,19 +72,21 @@ enum class WorkspaceAndAgentStatus(val label: String, val description: String) {
72
72
}
73
73
74
74
private fun getStateColor (context : CoderToolboxContext ): StateColor {
75
- return if (ready()) context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Active )
75
+ return if (this == FAILED ) context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .FailedToStart )
76
+ else if (this == DELETING ) context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Deleting )
77
+ else if (this == DELETED ) context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Deleted )
78
+ else if (ready()) context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Active )
76
79
else if (unhealthy()) context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Unhealthy )
77
80
else if (canStart() || this == STOPPING ) context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Hibernating )
78
81
else if (pending()) context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Activating )
79
- else if (this == DELETING ) context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Deleting )
80
- else if (this == DELETED ) context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Deleted )
81
82
else context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Unreachable )
82
83
}
83
84
84
85
private fun getStateIcon (): EnvironmentStateIcons {
85
- return if (ready() || unhealthy()) EnvironmentStateIcons .Active
86
- else if (canStart()) EnvironmentStateIcons .Offline
86
+ return if (this == FAILED ) EnvironmentStateIcons .Error
87
87
else if (pending() || this == DELETING || this == DELETED || this == STOPPING ) CircularSpinner
88
+ else if (ready() || unhealthy()) EnvironmentStateIcons .Active
89
+ else if (canStart()) EnvironmentStateIcons .Offline
88
90
else EnvironmentStateIcons .NoIcon
89
91
}
90
92
0 commit comments