Skip to content

Commit f99d936

Browse files
committed
chore: remove "VPN" from setting description
Change-Id: If1e0c81dd7188eea92f814424a997944a07caf86 Signed-off-by: Thomas Kosiewski <[email protected]>
1 parent a906e98 commit f99d936

File tree

7 files changed

+12
-10
lines changed

7 files changed

+12
-10
lines changed

Coder Desktop/Coder Desktop/NetworkExtension.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ extension CoderVPNService {
5050
logger.debug("inserting new tunnel")
5151

5252
let tm = NETunnelProviderManager()
53-
tm.localizedDescription = "CoderVPN"
53+
tm.localizedDescription = "Coder"
5454
tm.protocolConfiguration = proto
5555

5656
logger.debug("saving new tunnel")

Coder Desktop/Coder Desktop/Views/Settings/GeneralTab.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct GeneralTab: View {
1010
}
1111
Section {
1212
Toggle(isOn: $state.stopVPNOnQuit) {
13-
Text("Stop VPN on Quit")
13+
Text("Stop Coder network connection on Quit")
1414
}
1515
}
1616
}.formStyle(.grouped)

Coder Desktop/Coder Desktop/Views/VPNMenu.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct VPNMenu<VPN: VPNService>: View {
2020
}
2121
}
2222
)) {
23-
Text("CoderVPN")
23+
Text("Coder")
2424
.frame(maxWidth: .infinity, alignment: .leading)
2525
.font(.body.bold())
2626
.foregroundColor(.primary)

Coder Desktop/Coder Desktop/Views/VPNState.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ struct VPNState<VPN: VPNService>: View {
1414
.font(.body)
1515
.foregroundStyle(.secondary)
1616
case (_, false):
17-
Text("Sign in to use CoderVPN")
17+
Text("Sign in to use Coder Desktop")
1818
.font(.body)
1919
.foregroundColor(.secondary)
2020
case (.disabled, _):
21-
Text("Enable CoderVPN to see workspaces")
21+
Text("Enable Coder to see workspaces")
2222
.font(.body)
2323
.foregroundStyle(.secondary)
2424
case (.connecting, _), (.disconnecting, _):
2525
HStack {
2626
Spacer()
2727
ProgressView(
28-
vpn.state == .connecting ? "Starting CoderVPN..." : "Stopping CoderVPN..."
28+
vpn.state == .connecting ? "Starting Coder..." : "Stopping Coder..."
2929
).padding()
3030
Spacer()
3131
}

Coder Desktop/Coder DesktopTests/VPNMenuTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct VPNMenuTests {
2424
try await sut.inspection.inspect { view in
2525
let toggle = try view.find(ViewType.Toggle.self)
2626
#expect(toggle.isDisabled())
27-
#expect(throws: Never.self) { try view.find(text: "Sign in to use CoderVPN") }
27+
#expect(throws: Never.self) { try view.find(text: "Sign in to use Coder Desktop") }
2828
#expect(throws: Never.self) { try view.find(button: "Sign in") }
2929
}
3030
}

Coder Desktop/Coder DesktopTests/VPNStateTests.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct VPNStateTests {
2626
try await ViewHosting.host(view) {
2727
try await sut.inspection.inspect { view in
2828
#expect(throws: Never.self) {
29-
try view.find(text: "Enable CoderVPN to see workspaces")
29+
try view.find(text: "Enable Coder to see workspaces")
3030
}
3131
}
3232
}
@@ -39,7 +39,7 @@ struct VPNStateTests {
3939
try await ViewHosting.host(view) {
4040
try await sut.inspection.inspect { view in
4141
let progressView = try view.find(ViewType.ProgressView.self)
42-
#expect(try progressView.labelView().text().string() == "Starting CoderVPN...")
42+
#expect(try progressView.labelView().text().string() == "Starting Coder...")
4343
}
4444
}
4545
}
@@ -51,7 +51,7 @@ struct VPNStateTests {
5151
try await ViewHosting.host(view) {
5252
try await sut.inspection.inspect { view in
5353
let progressView = try view.find(ViewType.ProgressView.self)
54-
#expect(try progressView.labelView().text().string() == "Stopping CoderVPN...")
54+
#expect(try progressView.labelView().text().string() == "Stopping Coder...")
5555
}
5656
}
5757
}

Coder Desktop/VPN/Info.plist

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<dict>
55
<key>NSSystemExtensionUsageDescription</key>
66
<string></string>
7+
<key>CFBundleDisplayName</key>
8+
<string>Coder Desktop Network Extension</string>
79
<key>NetworkExtension</key>
810
<dict>
911
<key>NEMachServiceName</key>

0 commit comments

Comments
 (0)