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
+7
View File
@@ -11,6 +11,13 @@ import {
const defaultRoute = () => ({ ...DEFAULT_ROUTE });
test("pipeline-specific Runs links survive reload and ignore invalid filter ids", () => {
assert.deepEqual(parseRoute("/runs?pipeline=27"), { kind: "runs", pipelineId: 27 });
assert.equal(serializeRoute({ kind: "runs", pipelineId: 27 }), "/runs?pipeline=27");
assert.deepEqual(parseRoute("/runs?pipeline=bad"), { kind: "runs" });
assert.equal(serializeRoute({ kind: "runs", pipelineId: -1 }), "/runs");
});
test("default destination: empty, root, unknown and malformed paths", () => {
for (const path of [
undefined,