Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): choosing a project icon again re-reads it from disk #28584

MergedAlexSandilands(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/28584/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 90 additions and 3 deletions (loading 3).

x
0 of 6 viewed, 6 left
53 additions and 1 deletionapps/server/src/project/ProjectService.test.tsModified
View file
@@ -9,6 +9,7 @@
import * as Deferred from "effect/Deferred";
import * as Effect from "effect/Effect";
import * as Fiber from "effect/Fiber";
+import * as FileSystem from "effect/FileSystem";
import * as Layer from "effect/Layer";
import * as Metric from "effect/Metric";
import * as Option from "effect/Option";
@@ -36,6 +37,7 @@
import * as ProjectFaviconResolver from "./ProjectFaviconResolver.ts";
import * as ProjectService from "./ProjectService.ts";
import * as RepositoryIdentityResolver from "./RepositoryIdentityResolver.ts";
+import * as T3ProjectFileLoader from "./T3ProjectFileLoader.ts";
​
const layerWorkspacePaths = Layer.succeed(WorkspacePaths.WorkspacePaths, {
normalizeWorkspaceRoot: (workspaceRoot) => Effect.succeed(workspaceRoot.replace(/\/$/, "")),
@@ -300,7 +302,14 @@
});
assert.isFalse(reset.autoPull);
assert.isNull(reset.projectIcon);
- assert.equal(reset.faviconPath, hydratedCreated.faviconPath);
+ assert.equal(
+ (yield* waitForProject(
+ service,
+ projectId,
+ (project) => project.faviconPath === hydratedCreated.faviconPath,
+ )).faviconPath,
+ hydratedCreated.faviconPath,