feat: app/ui project core (ported as is) and the Assets project list; features get named services; fixes a test that leaked a pending save into the next

This commit is contained in:
digital-garbage
2026-10-03 19:01:47 +03:00
parent 8507e475ed
commit bd8ad114fc
11 changed files with 1152 additions and 15 deletions
+4 -3
View File
@@ -318,9 +318,10 @@ test("an edit made WHILE an import is in flight is still saved, against the old
await new Promise((r) => setTimeout(r, 700)); // past the real debounce window
assert.equal(sent.length, 1, "the edit made during the import never reached the server");
assert.equal(sent[0].id, "abcdef012345", "saved against the OLD project, not the one now open");
assert.equal(sent[0].name, "Typed while importing");
// Only this edit's own PUT: an earlier test's still-pending debounce can fire into this fetch too.
const mine = sent.filter((body) => body.name === "Typed while importing");
assert.equal(mine.length, 1, "the edit made during the import never reached the server");
assert.equal(mine[0].id, "abcdef012345", "saved against the OLD project, not the one now open");
});
test("two imports racing land on whichever was clicked last, not whichever answered last", async () => {