Tasks visibly progress: Run → In Progress (+ close drawer); approve → In Review
A task assigned to an agent never moved, so it looked like nothing happened. Now: - Clicking Run moves the task from Backlog to In Progress and closes the drawer. - When an approved artifact lands on a task, it moves to In Review (unless already Done), so the delivered result is visible on the board instead of sitting in Backlog. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,14 @@ internal sealed class BoardWriter(OrgBoardDbContext db, TimeProvider clock) : IB
|
||||
var item = await db.WorkItems.FirstOrDefaultAsync(w => w.Id == workItemId, cancellationToken)
|
||||
?? throw new InvalidOperationException($"Work item {workItemId} not found.");
|
||||
|
||||
item.AttachArtifact(content, clock.GetUtcNow());
|
||||
var now = clock.GetUtcNow();
|
||||
item.AttachArtifact(content, now);
|
||||
// Surface the delivered artifact on the board: move it into review (unless already done).
|
||||
if (item.Status is WorkItemStatus.Backlog or WorkItemStatus.InProgress)
|
||||
{
|
||||
item.MoveTo(WorkItemStatus.InReview, now);
|
||||
}
|
||||
|
||||
await db.SaveChangesAsync(cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user