feat(FN-4890): complete Step 8 — docs, defaults, and reliability coverage

Fusion-Task-Id: FN-4890
Fusion-Task-Lineage: d1ae6585-7df0-481f-83c3-c7cdd45daf4f
This commit is contained in:
Fusion (runfusion.ai)
2026-05-17 10:30:40 -07:00
committed by gsxdsm
parent e40aecf77d
commit 5233bc9347
7 changed files with 16 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ function makeStore(tasks: Task[], settings: Partial<Settings> = {}) {
})),
moveTask: vi.fn(async (id: string, column: Task["column"]) => {
const prev = byId.get(id)!;
const next = { ...prev, column, paused: false, blockedBy: null, overlapBlockedBy: null } as Task;
const next = { ...prev, column, paused: false, blockedBy: undefined, overlapBlockedBy: undefined } as Task;
byId.set(id, next);
emitter.emit("task:moved", { task: next, from: prev.column, to: column, source: "engine" });
return next;

View File

@@ -40,7 +40,7 @@ function makeStore(tasks: Task[], settings: Partial<Settings> = {}) {
}),
),
moveTask: vi.fn(async (id: string, column: Task["column"], _opts?: any) => {
byId.set(id, { ...byId.get(id)!, column, paused: false, pausedReason: undefined, blockedBy: null, overlapBlockedBy: null } as Task);
byId.set(id, { ...byId.get(id)!, column, paused: false, pausedReason: undefined, blockedBy: undefined, overlapBlockedBy: undefined } as Task);
return byId.get(id)!;
}),
updateTask: vi.fn(async (id: string, updates: Partial<Task>) => {