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
@@ -80,6 +80,8 @@ data class BuildRowView(
|
||||
val branchUrl: String?,
|
||||
val commitUrl: String?,
|
||||
val latestGreenUrl: String? = null,
|
||||
/** True while the build has no artifacts yet — the artifact link then shows the log-only icon. */
|
||||
val inProgress: Boolean = false,
|
||||
) {
|
||||
companion object {
|
||||
fun from(
|
||||
@@ -96,6 +98,7 @@ data class BuildRowView(
|
||||
artifactKey = result.artifactKey,
|
||||
branchUrl = links.branchUrl(result.branch),
|
||||
commitUrl = links.commitUrl(result.commit),
|
||||
inProgress = !result.status.isTerminal,
|
||||
)
|
||||
|
||||
/** A branches-view row; never-built branches have no timestamps and no artifact. */
|
||||
@@ -114,6 +117,7 @@ data class BuildRowView(
|
||||
branchUrl = links.branchUrl(entry.branch),
|
||||
commitUrl = links.commitUrl(entry.commit),
|
||||
latestGreenUrl = entry.latestGreenUrl,
|
||||
inProgress = entry.status == "running" || entry.status == "pending",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user