diff --git a/CHANGELOG.md b/CHANGELOG.md index 69d8264..290ea3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,15 @@ migration step. ## [Unreleased] +### Changed + +- A run with a job on a runner shows as running: spinning icon and a sweep along + the row. GitHub keeps such a run "queued" while any other job still waits for a + runner, so it used to show the still queued dot. Queued runs pulse gently; both + animations stop under `prefers-reduced-motion`. +- A busy runner whose job Forge can't see (a repository it doesn't watch) says so, + instead of "waiting for work" next to a busy badge. + ### Fixed - Deregistered repo runners now leave the board. Pruning took the scope from diff --git a/forge/index.html b/forge/index.html index a55ac0c..fbcf25f 100644 --- a/forge/index.html +++ b/forge/index.html @@ -157,6 +157,14 @@ .ico.running{background:rgba(255,181,71,.15);color:var(--run)} .ico.running svg{animation:spin 1.1s linear infinite} .ico.queued{background:rgba(142,162,255,.14);color:var(--queue)} +.ico.queued svg{animation:blink 1.2s ease-in-out infinite alternate} +/* A run with a job on a runner: a sweep along the row's bottom edge, like a hot stat. */ +.run.running{position:relative;background:linear-gradient(90deg,rgba(255,181,71,.05),transparent 40%)} +.run.running::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;overflow:hidden; + background:linear-gradient(90deg,transparent,var(--run),transparent);background-size:50% 100%;background-repeat:no-repeat; + animation:rowsweep 1.8s linear infinite} +@keyframes rowsweep{from{background-position:-50% 0}to{background-position:150% 0}} +@media (prefers-reduced-motion:reduce){.run.running::after,.ico.running svg,.ico.queued svg{animation:none}} .ico.cancelled,.ico.skipped{background:rgba(139,147,167,.12);color:var(--cancel)} @keyframes spin{to{transform:rotate(360deg)}} .where{font:600 10px var(--mono);letter-spacing:.04em;padding:1px 6px;border-radius:4px} @@ -438,6 +446,12 @@

Test suites j.status === "in_progress")) return "running"; + return kind(r.status, r.conclusion); +} const now = () => Date.now() + skew; const SPARK = ''; function aiBtn(kind, id, title, sm){ @@ -551,7 +565,12 @@

Test suites
Runner
${esc(r.name)}
${scopeText(r.scope)} · ${util}% busy 24h
${st}${aiBtn("runner", r.name, "runner " + r.name, true)}
${r.current ? `${esc(r.current.name)} · ${esc(short(r.current.repo))} · ` - : st === "offline" ? `offline ${r.offline_since ? "for " : ""}` : "waiting for work"}
+ : st === "offline" ? `offline ${r.offline_since ? "for " : ""}` + // GitHub says busy but Forge has no job for it: a repo Forge doesn't watch + // (not in FORGE_REPOS, or no push within FORGE_DISCOVER_DAYS), or a job + // assigned since the last poll. + : st === "busy" ? `running a job from a repo Forge doesn't watch` + : "waiting for work"}
labels${ r.labels.filter(l => !["self-hosted","Linux","X64"].includes(l)).map(l => `${esc(l)}`).join("") @@ -589,7 +608,7 @@

Test suites Test suites { - const k = kind(r.status, r.conclusion), isOpen = open.has(r.id); - return `
+ const k = runKind(r), isOpen = open.has(r.id); + return `
${ICON[k]}
${esc(r.title)}
${esc(r.name)}${esc(short(r.repo))}${esc(r.branch)}