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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user