authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-05 02:02:12-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-05 02:02:12-07:00
logb92a8122876458a67cc225f75c1d31bd3e33dc30
tree0e35e2f4a69c7b455d3b9fc3d33169d792c25910
parent688e5948046e14be7f2bfd48d1c91b7e94d79267
signature Signed by PGP key B5690EEEBB952194

refactor(mobile): remove unused cloud pending-status mapper (#10071)


2 files changed, 0 insertions(+), 21 deletions(-)

apps/mobile/src/features/cloud/linkEnvironment.test.ts-11
...@@ -11,7 +11,6 @@ import { MobilePreferencesStore } from "../../persistence/mobile-preferences";...@@ -11,7 +11,6 @@ import { MobilePreferencesStore } from "../../persistence/mobile-preferences";
11import { MobileStorage } from "../../persistence/mobile-storage";11import { MobileStorage } from "../../persistence/mobile-storage";
1212
13import {13import {
14 cloudEnvironmentsPendingStatus,
15 linkEnvironmentToCloud,14 linkEnvironmentToCloud,
16 linkEnvironmentToCloudWithPreference,15 linkEnvironmentToCloudWithPreference,
17 connectCloudEnvironment,16 connectCloudEnvironment,
...@@ -194,16 +193,6 @@ describe("mobile cloud link environment client", () => {...@@ -194,16 +193,6 @@ describe("mobile cloud link environment client", () => {
194 loadPreferences.mockClear();193 loadPreferences.mockClear();
195 });194 });
196195
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
207 it.effect("decodes relay environment list responses before returning records", () =>196 it.effect("decodes relay environment list responses before returning records", () =>
208 Effect.gen(function* () {197 Effect.gen(function* () {
209 vi.stubGlobal(198 vi.stubGlobal(
apps/mobile/src/features/cloud/linkEnvironment.ts-10
...@@ -397,16 +397,6 @@ export function getCloudEnvironmentStatus(input: {...@@ -397,16 +397,6 @@ export function getCloudEnvironmentStatus(input: {
397 });397 });
398}398}
399399
400export 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
410export function loadCloudEnvironmentStatuses(input: {400export function loadCloudEnvironmentStatuses(input: {
411 readonly clerkToken: string;401 readonly clerkToken: string;
412 readonly environments: ReadonlyArray<RelayClientEnvironmentRecord>;402 readonly environments: ReadonlyArray<RelayClientEnvironmentRecord>;