Show a log-only artifact icon while a build is running or pending
An in-progress build's artifact page only offers the build command and log — the table now shows an hourglass instead of the document icon (server-rendered rows and the JS-rendered rows alike) until the build finishes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
2cb6b1598a
commit
a03f85bc17
@@ -241,9 +241,10 @@ function renderBuildRow(build, allowRestart) {
|
||||
const artifactsCell = elem("td");
|
||||
artifactsCell.dataset.label = "Artifacts";
|
||||
if (build.artifactKey) {
|
||||
const artifactLink = elem("a", "artifact-link", "📄");
|
||||
const inProgress = build.status === "running" || build.status === "pending";
|
||||
const artifactLink = elem("a", "artifact-link", inProgress ? "⏳" : "📄");
|
||||
artifactLink.href = "/builds/" + encodeURIComponent(build.artifactKey);
|
||||
artifactLink.title = "Open artifacts";
|
||||
artifactLink.title = inProgress ? "Open build log — no artifacts yet" : "Open artifacts";
|
||||
artifactsCell.appendChild(artifactLink);
|
||||
}
|
||||
if (build.latestGreenUrl) {
|
||||
|
||||
Reference in New Issue
Block a user