From 4459a899702d805f6f48b174461507cd920f9293 Mon Sep 17 00:00:00 2001 From: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> Date: Wed, 4 Nov 2026 00:04:32 -0500 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20Activity=20Monitor:=20a=2007?= =?UTF-8?q?1/072=20row=20with=20a=20pushed=20or=20checking=20head=20keeps?= =?UTF-8?q?=20its=20CI=20track=20lit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> --- changelog.d/fixed-16552-pushed-head-ci-track.md | 1 + src/pkg/dashboard/stage_tracker_activity.test.js | 11 +++++++++++ src/pkg/dashboard/static-src/js/tracker-row-strip.js | 4 +++- src/pkg/dashboard/static/index.html | 4 +++- 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 changelog.d/fixed-16552-pushed-head-ci-track.md diff --git a/changelog.d/fixed-16552-pushed-head-ci-track.md b/changelog.d/fixed-16552-pushed-head-ci-track.md new file mode 100644 index 0000000000..e5825b5ef8 --- /dev/null +++ b/changelog.d/fixed-16552-pushed-head-ci-track.md @@ -0,0 +1 @@ +- The Activity Monitor keeps the CI track lit on a 071/072 row whose pushed or checking head has checks running, instead of muting it as waiting on the contributor ([#16552](https://github.com/hivecommons/hive/issues/16552)). diff --git a/src/pkg/dashboard/stage_tracker_activity.test.js b/src/pkg/dashboard/stage_tracker_activity.test.js index da570393d0..11f7065fbe 100644 --- a/src/pkg/dashboard/stage_tracker_activity.test.js +++ b/src/pkg/dashboard/stage_tracker_activity.test.js @@ -626,6 +626,17 @@ test('known and original chevrons keep full long text inside a shared one-line c assert.match(css, /\.ham-row > \.ham-strip-row, \.ham-sub > \.ham-strip-row, \.ham-cols > \.ham-strip-row \{ overflow-x: auto; \}/); }); +test('a 071/072 row with a pushed or checking head keeps its running CI track lit (#16552)', () => { + for (const stage of [71, 72]) { + for (const state of ['pushed', 'checking']) { + const cells = physicalTracks(livePR({ stage, display_column: 50, push: { state }, ci_activity: activity('running', 'CI running · 1/2 checks done', true) })); + assert.match(cells.ci, /ham-activity-track active/, stage + '/' + state + ': checks run on the pushed head'); + } + const parked = physicalTracks(livePR({ stage, display_column: 50, ci_activity: activity('running', 'CI running · 1/2 checks done', true) })); + assert.doesNotMatch(parked.ci, /ham-activity-track active/, stage + ': no push in flight stays settled, waiting on the contributor'); + } +}); + test('real source repair can show three concurrent activities without naming a generic worker as reviewer', () => { const row = fs.readFileSync(path.join(root, 'tracker-row.js'), 'utf8'); const definitions = globals + ` diff --git a/src/pkg/dashboard/static-src/js/tracker-row-strip.js b/src/pkg/dashboard/static-src/js/tracker-row-strip.js index e45b818c7b..dd1529cfa5 100644 --- a/src/pkg/dashboard/static-src/js/tracker-row-strip.js +++ b/src/pkg/dashboard/static-src/js/tracker-row-strip.js @@ -102,7 +102,9 @@ if (!item) return false; if (item.needs_human || item.on_hold || item.hold) return true; const stage = Number(item.stage); - if (stage === 71 || stage === 72) return true; + // A freshly pushed head is in motion: checks run on it, matching + // tracker-row-anchor's column-50 anchor (hivecommons/hive#16552). + if ((stage === 71 || stage === 72) && !(item.push && ['pushed', 'checking'].includes(item.push.state))) return true; const code = item.code_activity; return !!(code && code.head === item.head && code.state === 'waiting_owner'); } diff --git a/src/pkg/dashboard/static/index.html b/src/pkg/dashboard/static/index.html index 238321f87b..b86a8da3cc 100644 --- a/src/pkg/dashboard/static/index.html +++ b/src/pkg/dashboard/static/index.html @@ -17910,7 +17910,9 @@