Stable per-branch report URLs and a reachable live view (v0.9.8)
A report directory holding a single page is now linked and served as a directory, so Gradle's --profile report has a stable permanent URL although its file name carries the build timestamp. The permanent link moves to the build it resolves to — the branch's latest green build — and appears on every build table instead of only the branches view. The Current tab gave way to a link in the artifacts column, shown while a build runs; /current itself stays routable. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
c1869ea427
commit
962836beaf
@@ -250,8 +250,8 @@ function renderBuildRow(build, allowRestart) {
|
||||
|
||||
const artifactsCell = elem("td");
|
||||
artifactsCell.dataset.label = "Artifacts";
|
||||
const inProgress = build.status === "running" || build.status === "pending";
|
||||
if (build.artifactKey) {
|
||||
const inProgress = build.status === "running" || build.status === "pending";
|
||||
const artifactLink = elem("a", "artifact-link", inProgress ? "⏳" : "📄");
|
||||
artifactLink.href = "/builds/" + encodeURIComponent(build.artifactKey);
|
||||
artifactLink.title = inProgress ? "Open build log — no artifacts yet" : "Open artifacts";
|
||||
@@ -263,7 +263,13 @@ function renderBuildRow(build, allowRestart) {
|
||||
permanentLink.title = "Permanent link: artifacts of the latest green build";
|
||||
artifactsCell.appendChild(permanentLink);
|
||||
}
|
||||
if (!build.artifactKey && !build.latestGreenUrl) {
|
||||
if (inProgress) {
|
||||
const liveLink = elem("a", "artifact-link", "📡");
|
||||
liveLink.href = "/current";
|
||||
liveLink.title = "Watch this build live";
|
||||
artifactsCell.appendChild(liveLink);
|
||||
}
|
||||
if (!build.artifactKey && !build.latestGreenUrl && !inProgress) {
|
||||
artifactsCell.textContent = "n/a";
|
||||
}
|
||||
row.appendChild(artifactsCell);
|
||||
|
||||
Reference in New Issue
Block a user