feat(app): make session timelines much faster AND without flicker or scroll jumps (#32331)

This commit is contained in:
Luke Parker 2026-06-16 18:53:57 +02:00 committed by GitHub
commit 3b811bd019
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 2824 additions and 845 deletions

View file

@ -140,10 +140,10 @@ describe("ShareNext", () => {
it.live("create posts share, persists it, and returns the result", () =>
provideTmpdirInstance(
() => {
const seen: HttpClientRequest.HttpClientRequest[] = []
const createRequests: HttpClientRequest.HttpClientRequest[] = []
const client = HttpClient.make((req) => {
seen.push(req)
if (req.url.endsWith("/api/share")) {
createRequests.push(req)
return Effect.succeed(
json(req, {
id: "shr_abc",
@ -168,9 +168,9 @@ describe("ShareNext", () => {
expect(row?.url).toBe("https://legacy-share.example.com/share/abc")
expect(row?.secret).toBe("sec_123")
expect(seen).toHaveLength(1)
expect(seen[0].method).toBe("POST")
expect(seen[0].url).toBe("https://legacy-share.example.com/api/share")
expect(createRequests).toHaveLength(1)
expect(createRequests[0].method).toBe("POST")
expect(createRequests[0].url).toBe("https://legacy-share.example.com/api/share")
}).pipe(Effect.provide(integrationLayer(client)))
},
{ config: { enterprise: { url: "https://legacy-share.example.com" } } },