From 25cb2b764eb002c29324c3deed4f177ddda26360 Mon Sep 17 00:00:00 2001
From: Ethan Dickson <ethan@coder.com>
Date: Fri, 28 Feb 2025 09:12:08 +0000
Subject: [PATCH 1/4] chore: change stale agent colour to yellow

---
 App/Converters/AgentStatusToColorConverter.cs | 2 ++
 App/ViewModels/AgentViewModel.cs              | 1 +
 App/ViewModels/TrayWindowViewModel.cs         | 2 +-
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/App/Converters/AgentStatusToColorConverter.cs b/App/Converters/AgentStatusToColorConverter.cs
index b92f980..9babbf6 100644
--- a/App/Converters/AgentStatusToColorConverter.cs
+++ b/App/Converters/AgentStatusToColorConverter.cs
@@ -11,6 +11,7 @@ public class AgentStatusToColorConverter : IValueConverter
     private static readonly SolidColorBrush Green = new(Color.FromArgb(255, 52, 199, 89));
     private static readonly SolidColorBrush Red = new(Color.FromArgb(255, 255, 59, 48));
     private static readonly SolidColorBrush Gray = new(Color.FromArgb(255, 142, 142, 147));
+    private static readonly SolidColorBrush Yellow = new(Color.FromArgb(255, 204, 1, 0));
 
     public object Convert(object value, Type targetType, object parameter, string language)
     {
@@ -20,6 +21,7 @@ public object Convert(object value, Type targetType, object parameter, string la
         {
             AgentConnectionStatus.Green => Green,
             AgentConnectionStatus.Red => Red,
+            AgentConnectionStatus.Yellow => Yellow,
             _ => Gray,
         };
     }
diff --git a/App/ViewModels/AgentViewModel.cs b/App/ViewModels/AgentViewModel.cs
index c084d31..7a78727 100644
--- a/App/ViewModels/AgentViewModel.cs
+++ b/App/ViewModels/AgentViewModel.cs
@@ -10,6 +10,7 @@ public enum AgentConnectionStatus
 {
     Green,
     Red,
+    Yellow,
     Gray,
 }
 
diff --git a/App/ViewModels/TrayWindowViewModel.cs b/App/ViewModels/TrayWindowViewModel.cs
index c643d2f..62e9f0f 100644
--- a/App/ViewModels/TrayWindowViewModel.cs
+++ b/App/ViewModels/TrayWindowViewModel.cs
@@ -137,7 +137,7 @@ private void UpdateFromRpcModel(RpcModel rpcModel)
                 HostnameSuffix = fqdnSuffix,
                 ConnectionStatus = lastHandshakeAgo < TimeSpan.FromMinutes(5)
                     ? AgentConnectionStatus.Green
-                    : AgentConnectionStatus.Red,
+                    : AgentConnectionStatus.Yellow,
                 DashboardUrl = WorkspaceUri(coderUri, workspace?.Name),
             });
         }

From 88c3d82260e92050c1fe0fc743cc1d88ececfa65 Mon Sep 17 00:00:00 2001
From: Ethan <39577870+ethanndickson@users.noreply.github.com>
Date: Fri, 28 Feb 2025 22:10:34 +1100
Subject: [PATCH 2/4] fixup

---
 App/ViewModels/AgentViewModel.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/App/ViewModels/AgentViewModel.cs b/App/ViewModels/AgentViewModel.cs
index 7a78727..f5b5e0e 100644
--- a/App/ViewModels/AgentViewModel.cs
+++ b/App/ViewModels/AgentViewModel.cs
@@ -9,8 +9,8 @@ namespace Coder.Desktop.App.ViewModels;
 public enum AgentConnectionStatus
 {
     Green,
-    Red,
     Yellow,
+    Red,
     Gray,
 }
 

From 42e4aa871bf4d46264150e7a28957f552655e74d Mon Sep 17 00:00:00 2001
From: Ethan <39577870+ethanndickson@users.noreply.github.com>
Date: Fri, 28 Feb 2025 22:11:49 +1100
Subject: [PATCH 3/4] fix

---
 App/Converters/AgentStatusToColorConverter.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/App/Converters/AgentStatusToColorConverter.cs b/App/Converters/AgentStatusToColorConverter.cs
index 9babbf6..c47ab5c 100644
--- a/App/Converters/AgentStatusToColorConverter.cs
+++ b/App/Converters/AgentStatusToColorConverter.cs
@@ -20,8 +20,8 @@ public object Convert(object value, Type targetType, object parameter, string la
         return status switch
         {
             AgentConnectionStatus.Green => Green,
-            AgentConnectionStatus.Red => Red,
             AgentConnectionStatus.Yellow => Yellow,
+            AgentConnectionStatus.Red => Red,
             _ => Gray,
         };
     }

From 01222506ae2067d60de4eb911cc932d3ce031230 Mon Sep 17 00:00:00 2001
From: Ethan <39577870+ethanndickson@users.noreply.github.com>
Date: Fri, 28 Feb 2025 22:12:21 +1100
Subject: [PATCH 4/4] fix

---
 App/Converters/AgentStatusToColorConverter.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/App/Converters/AgentStatusToColorConverter.cs b/App/Converters/AgentStatusToColorConverter.cs
index c47ab5c..25f1f66 100644
--- a/App/Converters/AgentStatusToColorConverter.cs
+++ b/App/Converters/AgentStatusToColorConverter.cs
@@ -9,9 +9,9 @@ namespace Coder.Desktop.App.Converters;
 public class AgentStatusToColorConverter : IValueConverter
 {
     private static readonly SolidColorBrush Green = new(Color.FromArgb(255, 52, 199, 89));
+    private static readonly SolidColorBrush Yellow = new(Color.FromArgb(255, 204, 1, 0));
     private static readonly SolidColorBrush Red = new(Color.FromArgb(255, 255, 59, 48));
     private static readonly SolidColorBrush Gray = new(Color.FromArgb(255, 142, 142, 147));
-    private static readonly SolidColorBrush Yellow = new(Color.FromArgb(255, 204, 1, 0));
 
     public object Convert(object value, Type targetType, object parameter, string language)
     {