Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(mobile): show the cached thread list sooner and stop the freeze after it #16713

Mergedjuliusmarmingemerged 5 commits intomain fromrefs/pull/16713/headmerged by juliusmarminge View on GitHub

Showing 11 changed files with 104 additions and 5 deletions (loading 8).

x
0 of 11 viewed, 11 left
75 additions and 0 deletionsapps/mobile/src/connection/environment-cache-store.test.tsModified
View file
@@ -10,12 +10,14 @@
ThreadId,
type OrchestrationV2ShellSnapshot,
type OrchestrationV2ThreadDetailSnapshot,
+ type ThreadPullRequestLink,
type VcsListRefsResult,
} from "@t3tools/contracts";
import { describe, expect, it } from "@effect/vitest";
import * as DateTime from "effect/DateTime";
import * as Effect from "effect/Effect";
import * as Fiber from "effect/Fiber";
+import * as Logger from "effect/Logger";
import * as Schema from "effect/Schema";
import { vi } from "vite-plus/test";
import * as Deferred from "effect/Deferred";
@@ -254,6 +256,79 @@
}),
​
+ it.live("returns cached threads before their pull request links, which load after", () =>
+ Effect.gen(function* () {
+ const memory = makeDatabase();
+ const store = yield* make().pipe(
+ Effect.provideService(MobileDatabase.MobileDatabase, memory.database),
+ );
+ const link: ThreadPullRequestLink = {
+ host: "github.com",
+ repository: "pingdotgg/t3code",
+ number: 42,