Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(connections): show Tailscale HTTPS setup failures #30005

Closedvoltcrash(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/30005/headopened View on GitHub

Showing 30 changed files with 15 additions and 2 deletions (loading 27).

x
0 of 30 viewed, 30 left
9 additions and 0 deletionsapps/mobile/src/features/connection/ConnectionEnvironmentRow.tsxModified
View file
@@ -1,3 +1,4 @@
+import { tailscaleServeFailureMessage } from "@t3tools/client-runtime/contract-labels";
import { errorDisplayMessage } from "@t3tools/client-runtime/errors";
import { msg, T, useGT, useMessages } from "gt-react-native";
import * as Dialog from "../../components/ui/Dialog";
@@ -82,6 +83,9 @@
const statusLabel = connectionStatusLabel(props.environment, m);
const statusTraceId = enabled ? props.environment.connectionErrorTraceId : null;
const hasConnectionFailure = enabled && props.environment.connectionError !== null;
+ const tailscaleFailure = enabled
+ ? tailscaleServeFailureMessage(serverConfig?.tailscaleServeFailure, m)
+ : null;
const freeze = enabled
? hostFreezeNotice(props.environment.environmentLabel, serverConfig?.lastEventLoopStall, m)
: null;
@@ -177,6 +181,11 @@
) : null}
</Text>
) : null}
+ {tailscaleFailure ? (
+ <Text className="text-xs text-warning-foreground" selectable>
+ {tailscaleFailure}
+ </Text>
+ ) : null}
{freeze ? (
<Text
className="text-xs text-warning-foreground"