Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(clients): re-pairing and renaming keep one working saved environment #25807

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/25807/headopened View on GitHub

Showing 17 changed files with 99 additions and 6 deletions (loading 14).

x
0 of 17 viewed, 17 left
93 additions and 0 deletionsapps/mobile/src/features/connection/environmentSections.test.tsModified
View file
@@ -1,5 +1,16 @@
+import {
+ AVAILABLE_CONNECTION_STATE,
+ BearerConnectionProfile,
+ BearerConnectionTarget,
+ type ConnectionRoute,
+ entryWithRoutes,
+ presentConnectionState,
+ RelayConnectionTarget,
+} from "@t3tools/client-runtime/connection";
+import { projectEnvironmentConnectionSummary } from "@t3tools/client-runtime/state/presentation";
import { EnvironmentId } from "@t3tools/contracts";
import type { RelayClientEnvironmentRecord } from "@t3tools/contracts/relay";
+import * as Option from "effect/Option";
import { describe, expect, it } from "vite-plus/test";
import type { ConnectedEnvironmentSummary } from "../../state/remote-runtime-types";
import { splitEnvironmentSections } from "./environmentSections";
@@ -15,6 +26,7 @@
environmentLabel: input.environmentLabel ?? input.environmentId,
displayUrl: input.displayUrl ?? `https://${input.environmentId}.example.test/`,
isRelayManaged: input.isRelayManaged,
+ hasRelayRoute: input.hasRelayRoute ?? input.isRelayManaged,
isEnabled: input.isEnabled ?? true,
connectionState: input.connectionState ?? "connected",
connectionError: input.connectionError ?? null,
@@ -35,7 +47,88 @@
};
​