Skip to content

feat(ui): a timeline's job and folder rows say their nodes' summed work, and its name column resizes - #1973

Queued
kvlonge wants to merge 7 commits into
mainfrom
feat/timeline-work
Queued

kvlonge wants to merge 7 commits into
mainfrom
feat/timeline-work

Conversation

@kvlonge

@kvlonge kvlonge commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Why

On a group run's Timeline, a job's or folder's number was the span from its first node's start to its last node's end, idle time included. A folder of two views that each took about a second, run 20 minutes apart, read "2 built · 19m 45s". Long node names were cut at a fixed 360 px column that couldn't be widened.

Changes

  • A job's or folder's number is now its nodes' summed work, with running nodes counted so far.
  • Its bar draws each busy stretch, with a dashed line across the gaps. It shows at most 24 stretches, merging the narrowest gaps first. The tooltip gives the work, first start → last end, and the span, plus a line when nodes ran side by side.
  • utils/run-timing.ts owns the math, memoised per row. RunGantt uses the same node timing and drops its unused group rows.
  • The name column resizes from its header edge, by drag or arrow keys. It is clamped to 200 px–min(720 px, half the tree) and remembered per browser. Long names are cut in the middle, and the full name is in the tooltip.

DuckShop: no edge case. This is display only.

Verification

  • New real-server spec run-timeline-work.spec.ts. A folder's two quick nodes are held seconds apart by a slow table outside it. The spec checks that the row shows their summed work and draws two stretches with a dashed connector, and that the tooltip shows the work and the span. A long name is cut at 360 px, whole after dragging the edge, and keeps its width after a reload.
  • The 3,500-node real-timing spec now checks that no job or folder row draws more than 24 stretches.
  • Vitest covers the 20-minute folder, side-by-side nodes, a running node, gap merging and clipping, 10,000 intervals capped at 24, and nested folder sums.
  • Mocked group-run spec: the 3,000-node guards pass, and a new case checks that a preparing job keeps a plain bar from its worker's start.
  • Work budgets pass.

…rk, and its name column resizes

A group row's number was the span from its first start to its last end,
idle time included. It is now the work its nodes did, running ones so
far; its bar draws each busy stretch with a dashed line across the gaps,
and its tooltip gives the span. The name column is dragged wider or
narrower, remembered per browser, and long names are cut in the middle.
RunGantt drops its unused group rows and draws nodes from the same timing.
@chio-labs-delivery
chio-labs-delivery Bot added this pull request to the merge queue Dec 6, 2026
Any commits made after this event will not be merged.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 6, 2026
@kvlonge
kvlonge added this pull request to the merge queue Dec 6, 2026
Any commits made after this event will not be merged.
@kvlonge
kvlonge removed this pull request from the merge queue due to a manual request Dec 6, 2026
@kvlonge
kvlonge added this pull request to the merge queue Dec 6, 2026
Any commits made after this event will not be merged.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 6, 2026
@chio-labs-delivery
chio-labs-delivery Bot added this pull request to the merge queue Dec 6, 2026
Any commits made after this event will not be merged.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 6, 2026
@kvlonge
kvlonge added this pull request to the merge queue Dec 6, 2026
Any commits made after this event will not be merged.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Dec 6, 2026
@chio-labs-delivery
chio-labs-delivery Bot added this pull request to the merge queue Dec 6, 2026
Any commits made after this event will not be merged.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 6, 2026
@chio-labs-delivery
chio-labs-delivery Bot added this pull request to the merge queue Dec 6, 2026
Any commits made after this event will not be merged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant