[taskboard] add completion sync APIs

This commit is contained in:
2026-03-07 12:53:22 -08:00
parent e8e79c7b4c
commit 73da5ae6d2
9 changed files with 249 additions and 1 deletions

View File

@@ -347,6 +347,15 @@ export function TasksClient({
<dd className="text-right">{task.target_channel || "n/a"}</dd>
</div>
</dl>
{task.result_summary ? (
<div className="mt-3 rounded-lg border border-emerald-400/20 bg-emerald-400/5 p-3">
<p className="text-xs uppercase tracking-[0.2em] text-emerald-300/80">Latest Result</p>
<p className="mt-1 text-sm text-slate-200">{task.result_summary}</p>
{task.result_detail ? (
<p className="mt-1 text-xs text-slate-400">{task.result_detail}</p>
) : null}
</div>
) : null}
<div className="mt-4 space-y-2">
{task.dispatch_state !== "dispatched" && task.dispatch_state !== "completed" ? (
<Button className="w-full" size="sm" onClick={() => dispatchTask(task.id)}>