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:
2026-10-19 23:07:04 +01:00
parent af1050b842
commit 64e40f0b88
7 changed files with 218 additions and 7 deletions
+36
View File
@@ -304,6 +304,42 @@
.search-row.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.search-row.readonly { opacity: 0.85; }
.search-kind { flex: 0 0 auto; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
/* An artifact result shows the artifact: a real thumbnail for an image, a type
tile for everything else, so "artifact" never stands in for the content. */
.search-row-artifact { align-items: center; }
.search-thumb {
flex: 0 0 auto;
width: 56px;
height: 56px;
object-fit: cover;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface-2);
}
.search-type {
flex: 0 0 auto;
width: 56px;
height: 56px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface-2);
color: var(--muted);
font-size: 10px;
letter-spacing: 0.04em;
}
.search-open-run {
margin-top: 4px;
padding: 2px 8px;
border: 1px solid var(--border);
border-radius: 999px;
background: transparent;
color: var(--color-muted);
font-size: 11px;
}
.search-open-run:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.search-row-main { flex: 1 1 auto; min-width: 0; }
.search-row-title { font-weight: 600; }
.search-row-secondary, .search-row-snippet {