Skip to content

Commit 7e0b849

Browse files
authored
Provided a message explaining the workspace status (#3592)
1 parent bbdf581 commit 7e0b849

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Include more information in the Dev Environment status tooltip"
4+
}

jetbrains-gateway/src/software/aws/toolkits/jetbrains/gateway/Workspace.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ data class Workspace(
2222
val alias: String?,
2323
val identifier: WorkspaceIdentifier,
2424
val status: DevEnvironmentStatus,
25+
val statusReason: String?,
2526
val instanceType: InstanceType,
2627
val inactivityTimeout: InactivityTimeout,
2728
val repo: String?,
@@ -46,6 +47,7 @@ fun GetDevEnvironmentResponse.toWorkspace(identifier: WorkspaceIdentifier) = Wor
4647
alias = this.alias(),
4748
identifier = identifier,
4849
status = this.status(),
50+
statusReason = this.statusReason(),
4951
instanceType = this.instanceType(),
5052
inactivityTimeout = InactivityTimeout.fromMinutes(this.inactivityTimeoutMinutes()),
5153
repo = this.repositories().firstOrNull()?.repositoryName(),
@@ -59,6 +61,7 @@ fun DevEnvironmentSummary.toWorkspace(identifier: WorkspaceIdentifier) = Workspa
5961
alias = this.alias(),
6062
identifier = identifier,
6163
status = status(),
64+
statusReason = statusReason(),
6265
instanceType = this.instanceType(),
6366
inactivityTimeout = InactivityTimeout.fromMinutes(this.inactivityTimeoutMinutes()),
6467
repo = this.repositories().firstOrNull()?.repositoryName(),

jetbrains-gateway/src/software/aws/toolkits/jetbrains/gateway/welcomescreen/WorkspaceDetails.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ class WorkspaceDetails(ws: Workspace, workspaces: WorkspaceList, cawsClient: Cod
7373
ws.status == DevEnvironmentStatus.FAILED -> JBLabel(AllIcons.General.Error)
7474
else -> JBLabel(AwsGatewayIcons.GATEWAY_STOPPED)
7575
}
76-
statusIconLabel.toolTipText = ws.status.name
76+
77+
statusIconLabel.toolTipText = if (!ws.statusReason.isNullOrBlank()) "${ws.status.name}: ${ws.statusReason}" else ws.status.name
7778

7879
val (ideIcon, ideToolTip) = ws.platformProduct?.let {
7980
it.icon to it.ideName

0 commit comments

Comments
 (0)