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:
+11
-1
@@ -137,7 +137,17 @@ export function summaryRows(run, nowMillis, options = {}) {
|
||||
if (text.trim() === "") return;
|
||||
rows.push({ kind: "kv", key, value: text, monospace });
|
||||
};
|
||||
kv("Pipeline", `id ${run.pipeline_id ?? 0} · v${run.version ?? 0}`);
|
||||
if (Number(run.pipeline_id) > 0) {
|
||||
rows.push({
|
||||
kind: "pipeline",
|
||||
key: "Pipeline",
|
||||
value: `id ${run.pipeline_id} · v${run.version ?? 0}`,
|
||||
pipelineId: Number(run.pipeline_id),
|
||||
version: Number(run.version) || 0,
|
||||
});
|
||||
} else {
|
||||
kv("Pipeline", `id ${run.pipeline_id ?? 0} · v${run.version ?? 0}`);
|
||||
}
|
||||
kv("Stage", run.current_stage);
|
||||
const wait = resourceWaitLine(run);
|
||||
if (wait) rows.push({ kind: "wait", value: wait });
|
||||
|
||||
Reference in New Issue
Block a user