Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(connect): restrict relay configuration and token destinations #37823

Mergedjuliusmarmingemerged 14 commits intomain fromrefs/pull/37823/headmerged by juliusmarminge View on GitHub

Showing 57 changed files with 90 additions and 14 deletions (loading 56).

x
0 of 57 viewed, 57 left
90 additions and 14 deletionsapps/mobile/src/features/agent-awareness/liveActivityPreferences.test.tsModified
View file
@@ -1,5 +1,7 @@
import { beforeEach, vi } from "vite-plus/test";
import { describe, expect, it } from "@effect/vitest";
+import * as Exit from "effect/Exit";
+import * as Option from "effect/Option";
import * as Effect from "effect/Effect";
import type { EnvironmentId } from "@t3tools/contracts";
import { ManagedRelay } from "@t3tools/client-runtime/relay";
@@ -40,6 +42,16 @@
updateAgentAwarenessRegistrationPreferences: vi.fn(() => Effect.void),
}));
​
+const updateEnvironment = vi.fn<
+ (
+ id: EnvironmentId,
+ enabled: boolean,
+ ) => Effect.Effect<
+ "updated" | "unlinked" | "unsupported" | "disconnected",
+ CloudEnvironmentLinkError
+ >
+>(() => Effect.succeed("updated"));
+​
const connection: SavedRemoteConnection = {
environmentId: "env-1" as EnvironmentId,
environmentLabel: "Desktop",
@@ -75,43 +87,80 @@
vi.clearAllMocks();
});
​