web: unify mobile back and audit controls and link pipeline run history
This commit is contained in:
+5
-2
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user