Refresh run details and actions when tasks finish
Build custom container images / build (map[base_image:php:8-fpm-alpine build_args:PHP_VERSION=8 context:php8-pgsql fingerprint_command:{ apk info -v | LC_ALL=C sort; find /usr/local/lib/php/extensions /usr/local/etc/php/conf.d -type f -exec sha256sum {} + | LC_ALL=C sort; } name:ph… (push) Successful in 45s
Build custom container images / build (map[base_image:postgres:18 build_args:PG_VERSION=18 POSTGIS_VERSION=3 VCHORD_VERSION=0.5.3 context:postgres fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; find /usr/lib/postgresql -type f -exec sha256su… (push) Successful in 1m45s
Build custom container images / build (map[base_image:python:3 build_args:PYTHON_VERSION=3 context:python-tools fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:python-tools oci_labels:org.opencontainers.ima… (push) Successful in 2m4s
Build custom container images / build (map[base_image:python:3.12-slim build_args:PYTHON_VERSION=3.12-slim context:linkki-tiedotus fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:linkki-tiedotus oci_labels:… (push) Successful in 40s
Build custom container images / build (map[base_image:python:3.12-slim build_args:PYTHON_VERSION=3.12-slim context:timepoll fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; pip freeze | LC_ALL=C sort; } name:timepoll oci_labels:org.opencontai… (push) Successful in 49s

This commit is contained in:
ajp_anton committed 2026-10-06 20:54:33 +00:00
1 parent 4cc2e8fc80
commit a918cbec3b
1 file changed
+19
+19
View File
@@ -2,6 +2,9 @@ const output = document.querySelector("#run-output");
if (output) { if (output) {
let refreshTimer; let refreshTimer;
let detailsFinalized = !["queued", "running"].includes(
document.querySelector("#run-status")?.textContent.trim(),
);
const refresh = async () => { const refresh = async () => {
const response = await fetch(output.dataset.outputUrl, { cache: "no-store" }); const response = await fetch(output.dataset.outputUrl, { cache: "no-store" });
if (response.ok) { if (response.ok) {
@@ -17,6 +20,22 @@ if (output) {
const state = await stateResponse.json(); const state = await stateResponse.json();
status.textContent = state.status; status.textContent = state.status;
if (state.status !== "queued" && state.status !== "running") { if (state.status !== "queued" && state.status !== "running") {
if (!detailsFinalized) {
const pageResponse = await fetch(window.location.href, { cache: "no-store" });
if (!pageResponse.ok) {
return;
}
const page = new DOMParser().parseFromString(await pageResponse.text(), "text/html");
const nextDetails = page.querySelector("#run-status")?.closest("dl");
if (!nextDetails) {
return;
}
const actions = 'form[action$="/cancel"], form[action$="/execute"]';
document.querySelectorAll(actions).forEach((form) => form.remove());
status.closest("dl").replaceWith(nextDetails);
nextDetails.after(...page.querySelectorAll(actions));
detailsFinalized = true;
}
window.clearInterval(refreshTimer); window.clearInterval(refreshTimer);
} }
} }