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