web: open searched documents in the viewer and name the run's pipeline

A markdown/text artifact hit now opens the artifact viewer (with its Open run
action) instead of a raw browser tab, and the run Summary's Pipeline row shows
the pipeline's name beside its id and version, all in the link to the definition.
This commit is contained in:
2026-10-19 23:10:13 +01:00
parent 13af293c53
commit 5682aadfaa
5 changed files with 19 additions and 6 deletions
+9 -2
View File
@@ -250,10 +250,17 @@ function renderPipelineRow(row) {
const link = h("button", {
class: "kv-val kv-pipeline-link",
type: "button",
text: row.value,
title: `Open pipeline ${row.pipelineId}`,
"aria-label": `Open pipeline ${row.pipelineId}, version ${row.version}`,
"aria-label": `Open pipeline ${row.pipelineName || row.pipelineId}, version ${row.version}`,
});
if (row.pipelineName) {
link.append(
h("span", { class: "kv-pipeline-name", text: row.pipelineName }),
h("span", { class: "kv-pipeline-ident", text: row.value }),
);
} else {
link.textContent = row.value;
}
link.addEventListener("click", async () => {
state.view = "pipelines";
state.selectedRunId = null;