diff --git a/changelog.d/changed-merged-counter-odometer.md b/changelog.d/changed-merged-counter-odometer.md new file mode 100644 index 0000000000..0ed34b8f1c --- /dev/null +++ b/changelog.d/changed-merged-counter-odometer.md @@ -0,0 +1 @@ +- Activity Monitor: the "Merged" ledger pill now rolls its numbers like a mileage odometer when they rise (per digit, ≈0.9 s ease-out; the total and the today / this week figures alike), sets them outright on the first draw, on a fall such as the midnight reset or under reduced motion, and keeps its width while rolling; the merge glyph's flight slowed from 0.9 s to 2 s on an ease-out, with the merged row pinned 3.5 s so it outlasts the landing. diff --git a/src/docs/dashboard-sections.md b/src/docs/dashboard-sections.md index 9d27087d46..c60f881d4b 100644 --- a/src/docs/dashboard-sections.md +++ b/src/docs/dashboard-sections.md @@ -714,7 +714,7 @@ Fed by `GET /api/stage-tracker`. Every issue and pull request follows the same p **One row per PR.** A pull request that closes several open issues (`Closes #A` and `Closes #B`) is drawn once, under the issue the server names in each linked entry's `drawn_under` (its `nested_under`, the lowest-numbered open issue it closes). The other issues keep their own strip and show a compact **↳ #N · under #M** chip beside the title (tooltip: *PR #N covers this issue too; its row is drawn under #M*) instead of a second identical sub-row, so hivecommons/hive#14921 appears once under #14910 and #14911 points at it. Payloads without `drawn_under` draw as before. -**Merged (the chip, the ledger, the flight).** A thin bar at the top of the tracker — it stays pinned under the card header while the list scrolls, with the stage column header strip pinned just below it — carries a small hex glyph with **Merged N**: every pull request the hive tracked that reached merged, *all time*, with *N today · N this week* beneath. The number is the server's, not the tab's: the hive keeps a **merged ledger** at `/data/merged-ledger.json` (entries for 90 days, an all-time total that only grows, atomic writes, seeded on first boot from the audit log's `pr_merged` history with the PR throughput counter as the floor, then backfilled by the first closed sweep, which on such a boot asks GitHub for every PR closed in the last 30 days — merges by people and other bots the audit log never saw — instead of its usual one day; so the ledger counts every merged PR in a configured repository, and its all-time number is expected to run above the hive-observed PR throughput counter it was seeded from) fed by the audit log's `pr_merged` lines — the hive's own merges on every path and the poller's observations of merges by people or other bots — and by webhook / closed-sweep snapshots of a PR GitHub reports merged, which carry the title and the merger's login within seconds. `GET /api/stage-tracker` returns it as `merged{today, total_7d, total_30d, all_time, recent[≤20], tz, day_start}`; "today" rolls at midnight in the spoke's zone (`TZ`, else UTC) and the chip hydrates from it on the first render, so a reload, a new tab or a roll shows the same count (hivecommons/hive#15147 — the operator watched 4 become 0). Within a tab the number never goes down; a merge the tab just watched is added on top until the server's list carries it, and that list is also what settles a vanished row as *merged* rather than closed (alongside `recently_merged`), so a human's merge celebrates too. **Click the chip** for a popover of the recent merges — number (linked), title, *by hive* / *by @login*, lane, time — and the 30-day total; it is also where a merged row's trace lives once the row has left. When a PR on the list merges its row does **not** simply vanish on the next refresh: it stays pinned for about 2.5 s, its ✓ cell glows amber, the event line reads *Hive: merged #14947 · by hive*, and — in the operator's words — "an animation originates from the item's row where the check mark is and flies up to the top of the browser border; if the Merged pill is visible the animation stops there, if not we just see it go off the screen": a 🐝 (or **+1**, ⚙ → Merges → *Glyph*, `hive.tracker.celebrate_glyph`) rises out of the ✓ cell for ≈0.9 s with a slight arc, lands on the chip when the chip's box is inside the viewport (the count bumps with a soft scale-pop and the merge zap, when sound is on, plays as it lands) or exits through the top edge otherwise (the count still bumps). It works at any scroll position (`position: fixed`, `pointer-events: none`). At the same moment a **banner** appears at the bottom right — *✓ #15067 merged — fix: enable bulk delegation… (adopted, by hive, 17:42)* — and stays until dismissed or 30 s, stacked (newest at the bottom, at most five) when several merge together, with **Show row** (scrolls to the row and glows it again; once the row has left, says so and opens the list), **Open on GitHub** and **All merges**. Several merges in one refresh stagger 200 ms apart with at most three glyphs in flight (the rest bump the count without flying); a merged PR that is filtered out or on another page still counts and still gets its banner. Under reduced motion nothing flies: the glyph fades in place, the count bumps, the row glows, the banners appear without sliding. A PR drawn inline on its issue's row (the usual case — one covering PR, no sub-row) celebrates on that issue row: every row stamps the PR keys it draws (`data-ham-prs`) and the SPA remembers each PR's host row from the last payload, so the flight has somewhere to start from even when the merge also closes the issue. The ⚙ dialog's **Merges** section has **Celebrate merges** (default on, `hive.tracker.celebrate`); off, the row leaves as before and the zap plays at once. **Test celebration** beside it closes the dialog, picks the first row currently in the viewport (scrolling one into view if none is) and plays one flight from it with a *(test)* banner — pop and zap, the count itself unchanged — so the effect can be checked without waiting for a merge; under reduced motion it says so and only pops. The row effect is reusable in the SPA as `celebrateRow(rowEl, {kind: 'merged' | 'closed-by-merge'})`. Class names: `ham-sticky` (the pinned bar), `ham-merged-count` / `ham-merged-pop` (chip, popover), `cue-flight` / `cue-flight-fade` (the glyph), `merge-banners` / `merge-banner`. +**Merged (the chip, the ledger, the flight).** A thin bar at the top of the tracker — it stays pinned under the card header while the list scrolls, with the stage column header strip pinned just below it — carries a small hex glyph with **Merged N**: every pull request the hive tracked that reached merged, *all time*, with *N today · N this week* beneath. The number is the server's, not the tab's: the hive keeps a **merged ledger** at `/data/merged-ledger.json` (entries for 90 days, an all-time total that only grows, atomic writes, seeded on first boot from the audit log's `pr_merged` history with the PR throughput counter as the floor, then backfilled by the first closed sweep, which on such a boot asks GitHub for every PR closed in the last 30 days — merges by people and other bots the audit log never saw — instead of its usual one day; so the ledger counts every merged PR in a configured repository, and its all-time number is expected to run above the hive-observed PR throughput counter it was seeded from) fed by the audit log's `pr_merged` lines — the hive's own merges on every path and the poller's observations of merges by people or other bots — and by webhook / closed-sweep snapshots of a PR GitHub reports merged, which carry the title and the merger's login within seconds. `GET /api/stage-tracker` returns it as `merged{today, total_7d, total_30d, all_time, recent[≤20], tz, day_start}`; "today" rolls at midnight in the spoke's zone (`TZ`, else UTC) and the chip hydrates from it on the first render, so a reload, a new tab or a roll shows the same count (hivecommons/hive#15147 — the operator watched 4 become 0). Within a tab the number never goes down; a merge the tab just watched is added on top until the server's list carries it, and that list is also what settles a vanished row as *merged* rather than closed (alongside `recently_merged`), so a human's merge celebrates too. **Click the chip** for a popover of the recent merges — number (linked), title, *by hive* / *by @login*, lane, time — and the 30-day total; it is also where a merged row's trace lives once the row has left. When a PR on the list merges its row does **not** simply vanish on the next refresh: it stays pinned for about 3.5 s, its ✓ cell glows amber, the event line reads *Hive: merged #14947 · by hive*, and — in the operator's words — "an animation originates from the item's row where the check mark is and flies up to the top of the browser border; if the Merged pill is visible the animation stops there, if not we just see it go off the screen": a 🐝 (or **+1**, ⚙ → Merges → *Glyph*, `hive.tracker.celebrate_glyph`) rises out of the ✓ cell for ≈2 s on an ease-out with a slight arc, lands on the chip when the chip's box is inside the viewport (the count rolls up like a mileage odometer — each digit that rose slides up through the digits it passes over ≈0.9 s — with a soft scale-pop, and the merge zap, when sound is on, plays as it lands) or exits through the top edge otherwise (the count still rolls). *N today · N this week* roll the same way; a number that falls (today → 0 at midnight), the first draw after a reload, and reduced motion just set the value, and the pill's width never changes mid-roll (the plain text underneath sets it). It works at any scroll position (`position: fixed`, `pointer-events: none`). At the same moment a **banner** appears at the bottom right — *✓ #15067 merged — fix: enable bulk delegation… (adopted, by hive, 17:42)* — and stays until dismissed or 30 s, stacked (newest at the bottom, at most five) when several merge together, with **Show row** (scrolls to the row and glows it again; once the row has left, says so and opens the list), **Open on GitHub** and **All merges**. Several merges in one refresh stagger 200 ms apart with at most three glyphs in flight (the rest bump the count without flying); a merged PR that is filtered out or on another page still counts and still gets its banner. Under reduced motion nothing flies: the glyph fades in place, the count bumps, the row glows, the banners appear without sliding. A PR drawn inline on its issue's row (the usual case — one covering PR, no sub-row) celebrates on that issue row: every row stamps the PR keys it draws (`data-ham-prs`) and the SPA remembers each PR's host row from the last payload, so the flight has somewhere to start from even when the merge also closes the issue. The ⚙ dialog's **Merges** section has **Celebrate merges** (default on, `hive.tracker.celebrate`); off, the row leaves as before and the zap plays at once. **Test celebration** beside it closes the dialog, picks the first row currently in the viewport (scrolling one into view if none is) and plays one flight from it with a *(test)* banner — pop and zap, the count itself unchanged — so the effect can be checked without waiting for a merge; under reduced motion it says so and only pops. The row effect is reusable in the SPA as `celebrateRow(rowEl, {kind: 'merged' | 'closed-by-merge'})`. Class names: `ham-sticky` (the pinned bar), `ham-merged-count` / `ham-merged-pop` (chip, popover), `cue-flight` / `cue-flight-fade` (the glyph), `merge-banners` / `merge-banner`. **Multi-select.** The checkbox in a row's left gutter selects the row — and the checkbox in a nested PR sub-row's gutter selects that PR on its own, so one or more PRs under an issue can be picked without the issue or each other; **Shift+click** selects the range from the last clicked row (sub-rows are in the range order right after their issue), **Cmd/Ctrl+click** toggles, **Cmd/Ctrl+Shift+click** adds a range to what is selected; with a row focused, **Space** toggles it (Shift+Space extends). Cmd/Ctrl- or Shift-clicking the row itself, away from its links, selects it too. A selection bar appears above the list with the count, **Clear**, and the same actions for the whole selection — *Decide…* (opens the group as a menu, *Let hive decide* first — each selected row gets its own delegated-decision job, see below), **Let hive decide (N selected)** (one click for the whole selection: one delegated-decision job per selected item, each nested PR sub-row by its own number, with one summary toast — "3 sent · 2 decided · 1 no-op", plus "· 1 failed" when any failed — and the per-action confirm / *Don't ask again* of *Let hive decide*), *Hold*, *Release hold*, *Re-evaluate now*, *Mark needs-human…*, *Copy links* — each enabled only when it is valid for every selected row and otherwise greyed with the first reason ("Not applicable to acme/console#12", "Sign in with write access…"). Right-clicking a selected row acts on the whole selection. Bulk actions run one request per row, in list order, under a progress toast ("Hold 2/5 — acme/console#12…"); the result toast lists each failure by row and the successes stand, after which the list and the status snapshot refresh (a hive-wide rescan is sent once per batch). Selection is keyed on the row's item (repository, kind, number), not its node, so the live re-render keeps it; a row that leaves the list — merged, closed, filtered or paged out — leaves the selection. diff --git a/src/pkg/dashboard/stage_tracker_cues_test.go b/src/pkg/dashboard/stage_tracker_cues_test.go index b3977f2ac1..9f303b5eb6 100644 --- a/src/pkg/dashboard/stage_tracker_cues_test.go +++ b/src/pkg/dashboard/stage_tracker_cues_test.go @@ -251,6 +251,7 @@ func stageTrackerCelebrateJS(t *testing.T, html string) string { jsConstLine(t, html, "STAGE_TRACKER_CELEBRATE_PIN_MS"), jsConstLine(t, html, "STAGE_TRACKER_CELEBRATE_STAGGER_MS"), jsConstLine(t, html, "STAGE_TRACKER_CELEBRATE_FLY_MS"), + jsConstLine(t, html, "STAGE_TRACKER_ODOMETER_MS"), jsConstLine(t, html, "STAGE_TRACKER_CELEBRATE_MAX_FLIGHTS"), jsConstLine(t, html, "STAGE_TRACKER_CELEBRATE_EXIT_PAD"), jsConstLine(t, html, "STAGE_TRACKER_MERGE_BANNER_MS"), @@ -271,6 +272,8 @@ func stageTrackerCelebrateJS(t *testing.T, html string) string { jsFunc(t, html, "stageTrackerMergedPopHtml"), jsFunc(t, html, "stageTrackerMergedSync"), jsFunc(t, html, "stageTrackerMergedHoldback"), + jsFunc(t, html, "stageTrackerOdometerPlan"), + jsFunc(t, html, "stageTrackerOdometerSet"), jsFunc(t, html, "stageTrackerMergedCountDraw"), jsFunc(t, html, "stageTrackerMergedPopDraw"), jsFunc(t, html, "hamMergedToggle"), @@ -393,7 +396,7 @@ assert.ok(chip.title.startsWith('Merged: 1 all time\n1 today · 1 this week\no/r assert.strictEqual(sub.textContent, '1 today · 1 this week'); assert.strictEqual(live.textContent, 'Merged: 1 all time, 1 today · 1 this week', 'announced for screen readers'); rows = stageTrackerPinnedRows(panel, [header], clock); -assert.ok(rows.some(r => r.key === 'o/r/pr#1'), 'still pinned before 2.5 s (' + (clock) + ')'); +assert.ok(rows.some(r => r.key === 'o/r/pr#1'), 'still pinned before 3.5 s (' + (clock) + ')'); tick(STAGE_TRACKER_CELEBRATE_PIN_MS); assert.ok(renders >= 1, 'a release render was scheduled'); rows = stageTrackerPinnedRows(panel, [header], clock); @@ -410,7 +413,7 @@ tick(STAGE_TRACKER_CELEBRATE_STAGGER_MS); assert.strictEqual(flights().length, 3 tick(STAGE_TRACKER_CELEBRATE_STAGGER_MS); assert.strictEqual(flights().length, 3, 'capped at ' + STAGE_TRACKER_CELEBRATE_MAX_FLIGHTS + ' flights'); assert.strictEqual(n.textContent, '2', 'the capped one bumped without flying'); assert.strictEqual(banners.children.length, STAGE_TRACKER_MERGE_BANNER_MAX, 'banners stack, oldest dropped past the cap'); -tick(2000); +tick(STAGE_TRACKER_CELEBRATE_FLY_MS * 1.5 + 1); assert.strictEqual(flights().length, 0); assert.strictEqual(n.textContent, '6'); assert.deepStrictEqual(zaps, [], 'muted'); tick(STAGE_TRACKER_MERGE_BANNER_MS); assert.strictEqual(banners.children.length, 0, 'banners leave on their own after ' + STAGE_TRACKER_MERGE_BANNER_MS + ' ms'); @@ -585,6 +588,66 @@ console.log('ok'); `) } +// TestStageTrackerOdometerNode: the chip's numbers roll like a mileage +// odometer when they rise — per digit, through the digits it passes — and +// just set on the first draw, on a fall (today → 0 at midnight), under +// reduced motion, and when the text's words changed; the plain text is +// always the final value so width, tests and screen readers see no roll. +func TestStageTrackerOdometerNode(t *testing.T) { + html := indexHTML(t) + runStageTrackerRowActionsScript(t, stageTrackerCelebrateJS(t, html)+stageTrackerCelebrateFixture+` +// The plan: only the digits that rose roll, carries wrap past 9, a new +// leading digit comes in from a blank, falls and foreign text sit still. +assert.deepStrictEqual(stageTrackerOdometerPlan('9127', '9128'), [{ text: '9' }, { text: '1' }, { text: '2' }, { steps: ['7', '8'] }]); +assert.deepStrictEqual(stageTrackerOdometerPlan('199', '200'), [{ steps: ['1', '2'] }, { steps: ['9', '0'] }, { steps: ['9', '0'] }], 'a carry wraps'); +assert.deepStrictEqual(stageTrackerOdometerPlan('7', '12'), [{ steps: [' ', '1'] }, { steps: ['7', '8', '9', '0', '1', '2'] }], 'a grown number rolls its new column in from a blank'); +assert.deepStrictEqual(stageTrackerOdometerPlan('201 today · 730 this week', '0 today · 731 this week'), [{ text: '0' }, { text: ' today · ' }, { text: '7' }, { text: '3' }, { steps: ['0', '1'] }, { text: ' this week' }], 'the day rollover sets today and rolls the week'); +assert.strictEqual(stageTrackerOdometerPlan('5', '5'), null, 'no change, no roll'); +assert.strictEqual(stageTrackerOdometerPlan('5', '4'), null, 'a fall never rolls'); +assert.strictEqual(stageTrackerOdometerPlan('1 today', '2 this week'), null, 'different words: no roll'); +assert.strictEqual(stageTrackerOdometerPlan(null, '9'), null); +// The setter: the first write is plain; a rise overlays the columns and +// takes them down after STAGE_TRACKER_ODOMETER_MS; the text is final at once. +const odo = el('span'); +assert.strictEqual(stageTrackerOdometerSet(odo, 9127), false, 'first draw: no roll'); +assert.strictEqual(odo.textContent, '9127'); assert.strictEqual(odo.children.length, 0); assert.strictEqual(odo.getAttribute('data-odo-value'), '9127'); +assert.strictEqual(stageTrackerOdometerSet(odo, 9127), false, 'same value: nothing'); +assert.strictEqual(stageTrackerOdometerSet(odo, 9128), true, 'a rise rolls'); +assert.strictEqual(odo.textContent, '9128', 'the plain text is the final value at once'); +assert.ok(odo.classList.contains('ham-odo-rolling')); +assert.strictEqual(odo.children.length, 1); const wrap = odo.children[0]; +assert.strictEqual(wrap.className, 'ham-odo ham-odo-run'); assert.strictEqual(wrap.getAttribute('aria-hidden'), 'true'); +assert.deepStrictEqual(wrap.children.map(c => c.className), ['ham-odo-static', 'ham-odo-static', 'ham-odo-static', 'ham-odo-col']); +const strip = wrap.children[3].children[0]; +assert.deepStrictEqual(strip.children.map(c => c.textContent), ['7', '8']); assert.strictEqual(strip.style.props['--odo-shift'], '-50.000%'); +assert.strictEqual(wrap.style.props['--odo-ms'], STAGE_TRACKER_ODOMETER_MS + 'ms'); +tick(STAGE_TRACKER_ODOMETER_MS + 100); +assert.strictEqual(odo.children.length, 0, 'the overlay is gone'); assert.ok(!odo.classList.contains('ham-odo-rolling')); assert.strictEqual(odo.textContent, '9128'); +// A second rise mid-roll restarts from the last value written. +stageTrackerOdometerSet(odo, 9129); assert.strictEqual(odo.children.length, 1); +stageTrackerOdometerSet(odo, 9131); assert.strictEqual(odo.children.length, 1, 'one overlay at a time'); +assert.deepStrictEqual(odo.children[0].children[2].children[0].children.map(c => c.textContent), ['2', '3'], 'tens: 2 → 3'); +assert.deepStrictEqual(odo.children[0].children[3].children[0].children.map(c => c.textContent), ['9', '0', '1'], 'units: from the 9 last written'); +tick(STAGE_TRACKER_ODOMETER_MS + 100); assert.strictEqual(odo.children.length, 0); +assert.strictEqual(stageTrackerOdometerSet(odo, 3), false, 'a fall just sets'); assert.strictEqual(odo.textContent, '3'); assert.strictEqual(odo.children.length, 0); +reduced = true; +assert.strictEqual(stageTrackerOdometerSet(odo, 4), false, 'reduced motion: no roll'); assert.strictEqual(odo.textContent, '4'); assert.strictEqual(odo.children.length, 0); +reduced = false; +// Through the chip: the landing rolls both numbers; a redraw with the same +// values does not restart the roll. +panel.appendChild(row('o/r/pr#1')); +stageTrackerNoteMerges(items(1)); stageTrackerNoteMerges(payloadMerged(1)); tick(0); +stageTrackerMergedCountDraw(false); +assert.strictEqual(n.textContent, '0', 'holds back while the glyph flies'); assert.strictEqual(n.children.length, 0, 'the first draw does not roll'); +tick(STAGE_TRACKER_CELEBRATE_FLY_MS * 1.5 + 1); +assert.strictEqual(n.textContent, '1'); assert.strictEqual(n.children.length, 1, 'the landing rolls the total'); assert.strictEqual(sub.textContent, '1 today · 1 this week'); assert.strictEqual(sub.children.length, 1, 'and the day/week line'); +stageTrackerMergedCountDraw(false); +assert.strictEqual(n.children.length, 1, 'a redraw mid-roll keeps the overlay'); +tick(STAGE_TRACKER_ODOMETER_MS + 100); +assert.strictEqual(n.children.length, 0); assert.strictEqual(sub.children.length, 0); +`) +} + // TestStageTrackerFlightTargetNode: the operator's spec for the flight — // from the ✓ cell to the Merged chip when the chip is inside the viewport, // otherwise up and out through the top edge; the glyph is configurable; diff --git a/src/pkg/dashboard/static/index.html b/src/pkg/dashboard/static/index.html index 406eade57a..b4454171a9 100644 --- a/src/pkg/dashboard/static/index.html +++ b/src/pkg/dashboard/static/index.html @@ -1651,11 +1651,21 @@ flight is positioned by custom properties the JS measures (--cue-dx/--cue-dy: its travel). A banner at the bottom right says what merged and stays until dismissed (or 30 s). Reduced motion: - the glyph fades in place, the count still pops. */ + the glyph fades in place, the count still pops. + Owner (2026-10-28): the glyph rose too fast — it now takes + STAGE_TRACKER_CELEBRATE_FLY_MS (2 s, was 0.9 s) on an ease-out, and + the numbers roll like a mileage odometer instead of swapping: an + aria-hidden overlay of digit columns (.ham-odo) covers the real text + while each digit that rose slides up through the digits it passes + (.ham-odo-strip, --odo-shift) for STAGE_TRACKER_ODOMETER_MS, then + the overlay goes and the plain text shows. Static characters and + digits that fell (the day rollover) just sit. The text underneath is + the real width (tabular-nums), so the pill never jiggles; reduced + motion or the first draw sets the text outright. */ .cue-merged .ham-seg.cap { color: var(--amber); animation: cue-cap-glow 1.6s ease-out both; } .cue-merged { background: color-mix(in srgb, var(--amber) 8%, transparent); transition: background 300ms ease; } - .cue-flight { position: fixed; z-index: var(--z-cue-flight); font-size: var(--fs-lg); line-height: 1; color: var(--amber); font-weight: var(--fw-semibold); pointer-events: none; user-select: none; animation: cue-flight var(--cue-fly-ms, 900ms) cubic-bezier(0.25, 0.6, 0.3, 1) both; } - .cue-flight.cue-flight-fade { animation: cue-flight-fade var(--cue-fly-ms, 900ms) ease-out both; } + .cue-flight { position: fixed; z-index: var(--z-cue-flight); font-size: var(--fs-lg); line-height: 1; color: var(--amber); font-weight: var(--fw-semibold); pointer-events: none; user-select: none; animation: cue-flight var(--cue-fly-ms, 2000ms) cubic-bezier(0.22, 0.61, 0.36, 1) both; } + .cue-flight.cue-flight-fade { animation: cue-flight-fade var(--cue-fly-ms, 2000ms) ease-out both; } .ham-sticky { position: sticky; top: var(--navbar-sticky-height); z-index: calc(var(--z-sticky) + 1); display: flex; justify-content: flex-end; align-items: center; min-height: var(--ham-sticky-bar-h); box-sizing: border-box; padding: var(--sp-1) var(--sp-2); background: var(--panel); } .ham-sticky-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .ham-merged-count { position: relative; display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--text); cursor: pointer; } @@ -1664,6 +1674,15 @@ .ham-merged-count .ham-merged-n { font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold); font-size: var(--fs-sm); } .ham-merged-count .ham-merged-sub { color: var(--text-faint); font-variant-numeric: tabular-nums; padding-left: var(--sp-2); border-left: var(--line-width) solid var(--line-subtle); } .ham-merged-count.cue-tick { animation: cue-count-pop 320ms ease-out; } + .ham-merged-count .ham-merged-n, .ham-merged-count .ham-merged-sub { position: relative; } + .ham-merged-count .ham-odo-rolling { color: transparent; } + .ham-odo { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; white-space: pre; pointer-events: none; } + .ham-merged-count .ham-merged-n .ham-odo { color: var(--text); } + .ham-merged-count .ham-merged-sub .ham-odo { left: var(--sp-2); color: var(--text-faint); } + .ham-odo-static, .ham-odo-col, .ham-odo-d { display: block; height: 1.25em; line-height: 1.25; } + .ham-odo-col { overflow: hidden; } + .ham-odo-strip { display: block; transform: translateY(0); transition: transform var(--odo-ms, 900ms) cubic-bezier(0.22, 0.61, 0.36, 1); } + .ham-odo-run .ham-odo-strip { transform: translateY(var(--odo-shift, 0%)); } .ham-merged-pop { position: absolute; right: var(--sp-2); top: calc(var(--full-size) - var(--sp-1)); min-width: 22rem; max-width: 34rem; max-height: 60vh; overflow: auto; padding: var(--sp-4) var(--sp-5); border: var(--line-width) solid var(--line); border-radius: var(--r-lg); background: var(--panel-strong); box-shadow: var(--shadow-raised); font-size: var(--fs-sm); color: var(--text); z-index: var(--z-cue-flight); } .ham-merged-pop-head { display: flex; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-3); font-weight: var(--fw-semibold); } .ham-merged-pop-head .ham-merged-pop-sum { color: var(--text-faint); font-weight: var(--fw-medium); } @@ -1692,7 +1711,7 @@ @keyframes cue-flight { 0% { opacity: 0; transform: translate(0, 0) scale(0.9); } 12% { opacity: 1; transform: translate(calc(var(--cue-dx, 0px) * 0.08), calc(var(--cue-dy, 0px) * 0.1)) scale(1.1); } 55% { opacity: 1; transform: translate(calc(var(--cue-dx, 0px) * 0.45 + 10px), calc(var(--cue-dy, 0px) * 0.62)) scale(1.05); } 100% { opacity: var(--cue-end-opacity, 0.25); transform: translate(var(--cue-dx, 0px), var(--cue-dy, 0px)) scale(0.7); } } @keyframes cue-flight-fade { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } } @keyframes cue-count-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } } - @media (prefers-reduced-motion: reduce) { .cue-flight { animation-name: cue-flight-fade; } .ham-merged-count.cue-tick { animation: none; } .cue-merged .ham-seg.cap { animation-duration: 0.01ms; } .merge-banner, .merge-banner.merge-banner-out { animation: none; } } + @media (prefers-reduced-motion: reduce) { .cue-flight { animation-name: cue-flight-fade; } .ham-merged-count.cue-tick { animation: none; } .ham-odo-strip { transition: none; } .cue-merged .ham-seg.cap { animation-duration: 0.01ms; } .merge-banner, .merge-banner.merge-banner-out { animation: none; } } .ham-rm-preview .cue-flight { animation-name: cue-flight-fade; } @media (prefers-reduced-motion: reduce) { .cue-working .ham-seg.active .ham-active-ico, .cue-spin, .cue-acting .ham-seg.active, .cue-event { animation: none; } } @keyframes ham-breathe-human { 0%, 100% { opacity: 0; } 50% { opacity: 0.55; } } @@ -18801,14 +18820,22 @@
When a pull request merges its row stays for a moment, its ✓ cell glows and a small glyph rises from it towards the top of the window — landing on the "Merged" chip when it is in view, otherwise leaving through the top edge — the count bumps, and a banner at the bottom right names the merge until dismissed (or 30 s). Under reduced motion the glyph fades in place. The chip's number is the hive's all-time count (kept on the server, so it survives a reload); click it for the recent merges.
+When a pull request merges its row stays for a moment, its ✓ cell glows and a small glyph rises from it towards the top of the window — landing on the "Merged" chip when it is in view, otherwise leaving through the top edge — the count rolls up like an odometer, and a banner at the bottom right names the merge until dismissed (or 30 s). Under reduced motion the glyph fades in place. The chip's number is the hive's all-time count (kept on the server, so it survives a reload); click it for the recent merges.