The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 09:00 UTC
refactor(mobile): remove unused cloud pending-status mapper (#10071)
Julius Marminge committed
Sep 5, 2026 at 02:02 UTC
b92a8122876458a67cc225f75c1d31bd3e33dc30
2 files changed
-21
apps/mobile/src/features/cloud/linkEnvironment.test.ts
-11
@@ -11,7 +11,6 @@ import { MobilePreferencesStore } from "../../persistence/mobile-preferences";
11
import { MobileStorage } from "../../persistence/mobile-storage";
12
13
import {
14
- cloudEnvironmentsPendingStatus,
14
linkEnvironmentToCloud,
15
linkEnvironmentToCloudWithPreference,
16
connectCloudEnvironment,
@@ -194,16 +193,6 @@ describe("mobile cloud link environment client", () => {
193
loadPreferences.mockClear();
194
});
195
197
- it("makes linked environments visible while their status is still loading", () => {
198
- expect(cloudEnvironmentsPendingStatus([listedEnvironment("env-1")])).toMatchObject([
199
- {
200
- environment: { environmentId: "env-1", label: "Desktop" },
201
- status: null,
202
- statusError: "Checking status...",
203
- },
204
- ]);
205
- });
206
-
196
it.effect("decodes relay environment list responses before returning records", () =>
197
Effect.gen(function* () {
198
vi.stubGlobal(
apps/mobile/src/features/cloud/linkEnvironment.ts
-10
@@ -397,16 +397,6 @@ export function getCloudEnvironmentStatus(input: {
397
});
398
}
399
400
-export function cloudEnvironmentsPendingStatus(
401
- environments: ReadonlyArray<RelayClientEnvironmentRecord>,
402
-): ReadonlyArray<CloudEnvironmentRecordWithStatus> {
403
- return environments.map((environment) => ({
404
- environment,
405
- status: null,
406
- statusError: "Checking status...",
407
- }));
408
-}
409
-
400
export function loadCloudEnvironmentStatuses(input: {
401
readonly clerkToken: string;
402
readonly environments: ReadonlyArray<RelayClientEnvironmentRecord>;