web: link artifacts and runs back to their sources
- The run Summary's Pipeline value is a button that opens that pipeline version. - The artifact viewer carries an Open run button (the search viewer passes the artifact's run id), so the evidence always leads back to the run. - Search artifact rows show the image itself as a thumbnail; other artifacts get a type tile (MD/TXT/JSON/CSV/GO/PDF/...), and every artifact row offers an Open run action next to its own navigation.
This commit is contained in:
@@ -183,6 +183,16 @@ test("summaryRows is the Android order, omitting blank values", () => {
|
||||
assert.equal(rows[9].kind, "block");
|
||||
});
|
||||
|
||||
test("the Pipeline summary row carries the pipeline and version for navigation", () => {
|
||||
const rows = summaryRows({ pipeline_id: 24, version: 6, status: "succeeded" }, 0, TIME_OPTS);
|
||||
const row = rows.find((entry) => entry.kind === "pipeline");
|
||||
assert.ok(row, "a pipeline row rather than plain text");
|
||||
assert.equal(row.key, "Pipeline");
|
||||
assert.equal(row.value, "id 24 · v6");
|
||||
assert.equal(row.pipelineId, 24);
|
||||
assert.equal(row.version, 6);
|
||||
});
|
||||
|
||||
test("summaryRows omits blank values and the wait line when there is none", () => {
|
||||
const rows = summaryRows(
|
||||
{ id: 1, pipeline_id: 2, version: 1, status: "running", executing: false, steps: [], completed_steps: 0 },
|
||||
|
||||
Reference in New Issue
Block a user