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
+5 -2
View File
@@ -137,7 +137,10 @@ export function parseRoute(pathname, search = "") {
if (rest.length) return { ...DEFAULT_ROUTE };
if (head === "pipelines" && second == null) return { kind: "pipelines" };
if (head === "runs" && second == null) return { kind: "runs" };
if (head === "runs" && second == null) {
const pipelineId = parseId(params?.get("pipeline") ?? "");
return pipelineId == null ? { kind: "runs" } : { kind: "runs", pipelineId };
}
if (head === "chat") {
if (second == null) return { kind: "chat" };
if (third == null) {
@@ -241,7 +244,7 @@ export function serializeRoute(route) {
case "pipelines":
return "/pipelines";
case "runs":
return "/runs";
return parseId(String(r.pipelineId ?? "")) == null ? "/runs" : `/runs?pipeline=${r.pipelineId}`;
case "chat":
return "/chat";
case "chatSession": {