web: unify mobile back and audit controls and link pipeline run history

This commit is contained in:
2026-10-20 16:25:07 +01:00
parent 4e35da7473
commit 6841cdd2a4
16 changed files with 239 additions and 36 deletions
+14 -1
View File
@@ -399,6 +399,7 @@ async function openRunDialog(pipeline) {
start.prompt = start.intent.prompt;
start.workspace = start.intent.workspace;
start.notifyMode = start.intent.notifyMode;
start.outputFormat = start.intent.outputFormat ?? "";
start.error = "A previous launch has an unknown result. Check/retry reconciles that same request; it will not start a duplicate.";
}
state.runStart = start;
@@ -549,7 +550,7 @@ function renderRunStartDialog() {
const outputField = h("label", { class: "run-start-field", for: "runOutputFormat" });
outputField.append(h("span", { class: "run-start-label", text: "Report format" }));
const outputFormat = h("select", { id: "runOutputFormat", onchange: (event) => { start.outputFormat = event.target.value; } });
const outputFormat = h("select", { id: "runOutputFormat", disabled: start.intent != null, onchange: (event) => { start.outputFormat = event.target.value; } });
for (const [value, label] of [["", "No report requirement"], ["html", "HTML report"], ["markdown", "Markdown report"]]) {
const option = h("option", { value, text: label });
option.selected = start.outputFormat === value;
@@ -605,6 +606,18 @@ function renderPipelineDetail() {
text: "Run",
onclick: () => openRunDialog(d),
}),
h("button", {
class: "pipeline-runs",
type: "button",
text: "Runs",
title: `View runs of ${d.name || "this pipeline"}`,
onclick: () => {
const route = { kind: "runs", pipelineId: d.id };
state.openMenu = null;
pushRoute(route);
applyRoute(route);
},
}),
),
);
// The Run dialog is an overlay; append it before the tab branches so Graph