Add Workflow tab and run-progress API for workflow runs
This commit is contained in:
Vendored
+5
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user