Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(connection): a host no longer on your T3 Connect account says so and offers removal #28241

Openjuliusmarmingewants to merge 14 commits intomain fromrefs/pull/28241/headopened View on GitHub

Showing 25 changed files with 14 additions and 0 deletions (loading 22).

x
0 of 25 viewed, 25 left
6 additions and 0 deletionsapps/mobile/src/features/connection/ConnectionDiagnosisDetails.tsxModified
View file
@@ -9,6 +9,7 @@
presentConnectionDiagnosis,
type EnvironmentPresentation,
} from "@t3tools/client-runtime/connection";
+import { Discovery } from "@t3tools/client-runtime/relay";
import type { EnvironmentId } from "@t3tools/contracts";
import Constants from "expo-constants";
import { AsyncResult } from "effect/reactivity";
@@ -20,6 +21,7 @@
import { environmentCatalog } from "../../connection/catalog";
import { cn } from "../../lib/cn";
import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic";
+import { relayEnvironmentDiscovery } from "../../state/relay";
​
const HOP_MARK = { ok: "✓", failed: "✕", unchecked: "–" } as const;
​
@@ -33,6 +35,7 @@
useAtomValue(environmentCatalog.stateAtom(environmentId)),
() => AVAILABLE_CONNECTION_STATE,
);
+ const discovery = useAtomValue(relayEnvironmentDiscovery.stateValueAtom);
if (presentation === null || !presentation.entry.enabled) return { diagnosis: null, state };
const phase = presentation.connection.phase;
if (phase === "connected" || phase === "unsupported") return { diagnosis: null, state };
@@ -43,6 +46,9 @@
hostLabel: presentation.entry.target.label,
state,