@@ -72,19 +72,21 @@ enum class WorkspaceAndAgentStatus(val label: String, val description: String) {
7272 }
7373
7474 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 )
7679 else if (unhealthy()) context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Unhealthy )
7780 else if (canStart() || this == STOPPING ) context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Hibernating )
7881 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 )
8182 else context.envStateColorPalette.getColor(StandardRemoteEnvironmentState .Unreachable )
8283 }
8384
8485 private fun getStateIcon (): EnvironmentStateIcons {
85- return if (ready() || unhealthy()) EnvironmentStateIcons .Active
86- else if (canStart()) EnvironmentStateIcons .Offline
86+ return if (this == FAILED ) EnvironmentStateIcons .Error
8787 else if (pending() || this == DELETING || this == DELETED || this == STOPPING ) CircularSpinner
88+ else if (ready() || unhealthy()) EnvironmentStateIcons .Active
89+ else if (canStart()) EnvironmentStateIcons .Offline
8890 else EnvironmentStateIcons .NoIcon
8991 }
9092
0 commit comments