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

This commit is contained in:
Julius Marminge authored and GitHub committed 2026-09-05 02:02:12 -07:00
1 parent 688e594804
commit b92a812287
2 files changed
-21

No files matched your search

@@ -11,7 +11,6 @@ import { MobilePreferencesStore } from "../../persistence/mobile-preferences";
import { MobileStorage } from "../../persistence/mobile-storage";
import {
cloudEnvironmentsPendingStatus,
linkEnvironmentToCloud,
linkEnvironmentToCloudWithPreference,
connectCloudEnvironment,
@@ -194,16 +193,6 @@ describe("mobile cloud link environment client", () => {
loadPreferences.mockClear();
});
it("makes linked environments visible while their status is still loading", () => {
expect(cloudEnvironmentsPendingStatus([listedEnvironment("env-1")])).toMatchObject([
{
environment: { environmentId: "env-1", label: "Desktop" },
status: null,
statusError: "Checking status...",
},
]);
});
it.effect("decodes relay environment list responses before returning records", () =>
Effect.gen(function* () {
vi.stubGlobal(
@@ -397,16 +397,6 @@ export function getCloudEnvironmentStatus(input: {
});
}
export function cloudEnvironmentsPendingStatus(
environments: ReadonlyArray<RelayClientEnvironmentRecord>,
): ReadonlyArray<CloudEnvironmentRecordWithStatus> {
return environments.map((environment) => ({
environment,
status: null,
statusError: "Checking status...",
}));
}
export function loadCloudEnvironmentStatuses(input: {
readonly clerkToken: string;
readonly environments: ReadonlyArray<RelayClientEnvironmentRecord>;