From bdc3e8920776daccaccde95ff379df324cc91602 Mon Sep 17 00:00:00 2001 From: Ethan Dickson Date: Thu, 1 May 2025 14:13:15 +1000 Subject: [PATCH 1/2] feat: add coder connect to connection status indicator --- src/remote.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/remote.ts b/src/remote.ts index 5b8a9694..a5d73bad 100644 --- a/src/remote.ts +++ b/src/remote.ts @@ -698,8 +698,18 @@ export class Remote { derp_latency: { [key: string]: number } upload_bytes_sec: number download_bytes_sec: number + using_coder_connect: boolean }) => { let statusText = "$(globe) " + + // Coder Connect doesn't populate any other stats + if (network.using_coder_connect) { + networkStatus.text = statusText + "Coder Connect " + networkStatus.tooltip = "You're connected using Coder Connect!" + networkStatus.show() + return + } + if (network.p2p) { statusText += "Direct " networkStatus.tooltip = "You're connected peer-to-peer ✨." From 6bb0b30f43787ad12b05173a6780de05f4cdcf70 Mon Sep 17 00:00:00 2001 From: Ethan Dickson Date: Thu, 1 May 2025 19:17:15 +1000 Subject: [PATCH 2/2] remove exclamation mark :( --- src/remote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote.ts b/src/remote.ts index a5d73bad..3ff8f6e3 100644 --- a/src/remote.ts +++ b/src/remote.ts @@ -705,7 +705,7 @@ export class Remote { // Coder Connect doesn't populate any other stats if (network.using_coder_connect) { networkStatus.text = statusText + "Coder Connect " - networkStatus.tooltip = "You're connected using Coder Connect!" + networkStatus.tooltip = "You're connected using Coder Connect." networkStatus.show() return }