Add Workflow tab and run-progress API for workflow runs

This commit is contained in:
Ian Gulliver
2026-10-16 11:01:53 -07:00
parent eb0c80a645
commit ec169583ff
19 changed files with 1285 additions and 209 deletions
+5 -1
View File
@@ -13,6 +13,7 @@ import { mountStatus } from "./status.js";
import { openSwitcher } from "./switcher.js";
import { mountTranscript } from "./task.js";
import { mountTerminal } from "./terminal.js";
import { mountWorkflow } from "./workflow.js";
const views = {
transcript: { label: "Transcript", mount: mountTranscript },
changes: { label: "Changes", mount: (root) => mountChanges(root) },
@@ -20,6 +21,7 @@ const views = {
terminal: { label: "Terminal", mount: mountTerminal },
inbox: { label: "Inbox", mount: mountInbox },
reviews: { label: "Reviews", mount: mountReviews },
workflow: { label: "Workflow", mount: mountWorkflow },
project: { label: "Project", mount: mountProject },
};
const leftViews = {
@@ -166,6 +168,8 @@ export function taskPane() {
return waiting > 0;
case "reviews":
return state.transcript.some(isReviewEvent);
case "workflow":
return state.selectedTaskId !== undefined && findTask(state.selectedTaskId)?.workflow_run !== undefined;
default:
return true;
}
@@ -209,7 +213,7 @@ export function taskPane() {
}
};
on("inbox", openAsked);
onEach(["focus", "inbox", "selection", "transcript"], render);
onEach(["focus", "inbox", "selection", "transcript", "tasks"], render);
onEach(["projects", "tasks", "selection"], renderPicker);
new ResizeObserver(layout).observe(strip);
render();