swarm-ui: builds are a card under the job graph on the jobs tab
The builds tab is gone from the nav; its card sits below the jobs card on /jobs. The swarm-builder commit status now links to /jobs?run=<id>, and the old /builds address redirects there with its query so links already on PRs still open the build. Docs and the link test follow.
This commit is contained in:
parent
31670da795
commit
a2f000bab4
1 changed files with 64 additions and 21 deletions
|
|
@ -3,7 +3,11 @@
|
|||
// stripping, so the `.ts` module is imported as it is.
|
||||
import assert from "node:assert/strict";
|
||||
import { test } from "node:test";
|
||||
import { bodyText, wantedRun } from "../src/pages/builds/builds-types.ts";
|
||||
import {
|
||||
bodyText,
|
||||
jobsHref,
|
||||
wantedRun,
|
||||
} from "../src/pages/builds/builds-types.ts";
|
||||
|
||||
const base = {
|
||||
id: "atlas-abc-1",
|
||||
|
|
@ -49,3 +53,8 @@ test("a run with no text for its outcome shows no body", () => {
|
|||
assert.equal(bodyText({ ...base, outcome: "failed" }), null);
|
||||
assert.equal(bodyText({ ...base, outcome: "built", error_tail: "x" }), null);
|
||||
});
|
||||
|
||||
test("an old builds link goes to the jobs page and keeps its query", () => {
|
||||
assert.equal(jobsHref("run=atlas-abc-1"), "/jobs?run=atlas-abc-1");
|
||||
assert.equal(jobsHref(""), "/jobs");
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue