Skip to content

Commit 25cb2b7

Browse files
committed
chore: change stale agent colour to yellow
1 parent acc89ee commit 25cb2b7

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

App/Converters/AgentStatusToColorConverter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class AgentStatusToColorConverter : IValueConverter
1111
private static readonly SolidColorBrush Green = new(Color.FromArgb(255, 52, 199, 89));
1212
private static readonly SolidColorBrush Red = new(Color.FromArgb(255, 255, 59, 48));
1313
private static readonly SolidColorBrush Gray = new(Color.FromArgb(255, 142, 142, 147));
14+
private static readonly SolidColorBrush Yellow = new(Color.FromArgb(255, 204, 1, 0));
1415

1516
public object Convert(object value, Type targetType, object parameter, string language)
1617
{
@@ -20,6 +21,7 @@ public object Convert(object value, Type targetType, object parameter, string la
2021
{
2122
AgentConnectionStatus.Green => Green,
2223
AgentConnectionStatus.Red => Red,
24+
AgentConnectionStatus.Yellow => Yellow,
2325
_ => Gray,
2426
};
2527
}

App/ViewModels/AgentViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public enum AgentConnectionStatus
1010
{
1111
Green,
1212
Red,
13+
Yellow,
1314
Gray,
1415
}
1516

App/ViewModels/TrayWindowViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private void UpdateFromRpcModel(RpcModel rpcModel)
137137
HostnameSuffix = fqdnSuffix,
138138
ConnectionStatus = lastHandshakeAgo < TimeSpan.FromMinutes(5)
139139
? AgentConnectionStatus.Green
140-
: AgentConnectionStatus.Red,
140+
: AgentConnectionStatus.Yellow,
141141
DashboardUrl = WorkspaceUri(coderUri, workspace?.Name),
142142
});
143143
}

0 commit comments

Comments
 (0)
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