Skip to content
TypeScript

fix(web): explain what enabling network access means in its confirmation (#10098)

Igor Makowskiead1dee22916
diff --git a/apps/web/src/components/settings/ConnectionsSettings.tsx b/apps/web/src/components/settings/ConnectionsSettings.tsx
index 324361d7fb6..1410b3b5e0e 100644
--- a/apps/web/src/components/settings/ConnectionsSettings.tsx
+++ b/apps/web/src/components/settings/ConnectionsSettings.tsx
@@ -3417,8 +3417,8 @@ export function ConnectionsSettings() {
</AlertDialogTitle>
<AlertDialogDescription>
{pendingDesktopServerExposureMode === "network-accessible"
- ? "T3 Code will restart to expose this environment over the network."
- : "T3 Code will restart and limit this environment back to this machine."}
+ ? "Let your other devices connect to T3 Code over the network. Pair devices to give them access. T3 Code will restart."
+ : "Devices connected over your local network will disconnect. Existing tunnels, such as T3 Connect or Tailscale HTTPS, keep working. T3 Code will restart."}
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
@@ -3426,27 +3426,23 @@ export function ConnectionsSettings() {
disabled={isUpdatingDesktopServerExposure}
render={<Button variant="outline" disabled={isUpdatingDesktopServerExposure} />}
>
- Cancel
+ <span className="[text-box:trim-both_cap_alphabetic]">Cancel</span>
</AlertDialogClose>
<Button
- variant={
- pendingDesktopServerExposureMode === "local-only" ? "destructive" : "default"
- }
+ variant="default"
onClick={handleConfirmDesktopServerExposureChange}
disabled={
pendingDesktopServerExposureMode === null || isUpdatingDesktopServerExposure
}
>
- {isUpdatingDesktopServerExposure ? (
- <>
- <Spinner className="size-3.5" />
- Restarting…
- </>
- ) : pendingDesktopServerExposureMode === "network-accessible" ? (
- "Restart and enable"
- ) : (
- "Restart and disable"
- )}
+ {isUpdatingDesktopServerExposure && <Spinner className="size-3.5" />}
+ <span className="[text-box:trim-both_cap_alphabetic]">
+ {isUpdatingDesktopServerExposure
+ ? "Restarting…"
+ : pendingDesktopServerExposureMode === "network-accessible"
+ ? "Restart and enable"
+ : "Restart and disable"}
+ </span>
</Button>
</AlertDialogFooter>
</AlertDialogPopup>