Skip to content

feat(front): make the workflow map easier to read on big workflows - #1448

Draft
skipi wants to merge 19 commits into
mainfrom
mk/front/workflow-map-readability
Draft

skipi wants to merge 19 commits into
mainfrom
mk/front/workflow-map-readability

Conversation

@skipi

@skipi skipi commented Nov 24, 2026

Copy link
Copy Markdown
Member

What

A set of changes to the workflow map that make big workflows (many jobs, many promotions, a few failures among many passes) readable without clicking through every block. Each change is its own commit, so review can go one at a time and any one can be dropped.

Opening and expanding

  • Every block of an open pipeline starts expanded, whatever its size. The map already loads every job of every pipeline on the first load, so this needs no extra request; expanding a 122-job workflow renders in under 100 ms in our check. A block the user closes stays closed. (Last commit. The earlier "small pipeline" commit opened blocks only up to 20 jobs; this replaces that threshold, and the two can be folded into one if this direction is kept.)
  • "Expand all blocks" / "Collapse all blocks" is a labelled button in the map's toolbar, next to the other map controls, instead of a small icon in the workflow header. It acts on every open pipeline.
  • "Open all pipelines" / "Close all pipelines" say what they open and close. "Close all pipelines" now only closes the pipelines, like closing one by hand: before, a pipeline opened again afterwards showed every block closed, failed blocks included.
  • The first view shows the whole workflow when it is readable. When it is not (a large initial pipeline with many promotion runs only fits at about 25%), it opens on the initial pipeline's top-left corner at a readable zoom, with its promotions to the right. The first few failed pipelines are opened.

Reading the map

  • Failed pipelines, blocks and jobs stand out at the zoom a big workflow fits in, not only by a small status icon.
  • Open blocks show what tells their jobs apart: for matrix jobs, the varying values instead of the repeated base name and keys.
  • The map fits at a readable zoom (at least the width fit, capped at 75%), and the mouse wheel pans; pinch or Cmd+wheel zooms.
  • A top-aligned view starts below the map's toolbar, so the toolbar no longer covers a pipeline header.
  • The after-pipeline block is drawn last, to the right of the last column, instead of above every other block.

Promotions

  • "Promote" reads as a button (filled, no count bubble; the count is in the tooltip).
  • The promote menu lists every run of each promotion, newest first, with its status, name, duration and age, and wraps names instead of cutting them. The filter matches run names and parameter values.
  • Each run is a link to its pipeline on this workflow page: a plain click jumps the map to it, a middle or modifier click opens it in a new tab, and the address can be copied.
  • A run with parameters shows all of them under its name as NAME=value, sorted by name, wrapping instead of being cut.

Server side

  • The map JSON gains each pipeline's parameters (the env vars it was promoted with), which the pipeline page already shows.
  • ?new_workflow_ui=false shows the old workflow page for the rest of the visit, also where the map is enabled for the organization, until ?new_workflow_ui=true. Before, false only forgot an earlier true, so there was no way back to the old page next to the new one. Without the parameter nothing changes. The map's JSON routes keep their gate, so a map already open in another tab keeps refreshing.

Screenshots

Screenshot: pr-1-first-before.png — First view, before: the whole workflow at 33%, the after-pipeline block above the rest

Screenshot: pr-1-first-after.png — First view, after: the initial pipeline at a readable zoom, every block open, failures marked, the after-pipeline block last

Screenshot: pr-2-menu-before.png — Promote menu, before: one line per promotion, names cut

Screenshot: pr-2-menu-after.png — Promote menu, after: every run of each promotion, newest first, as links

Screenshot: pr-5-menu-params-after.png — Promote menu, after: the parameters of each run under its name

How to test

  1. With the new workflow page on (?new_workflow_ui=true), open a workflow with a large pipeline (100+ jobs, some matrix jobs, a few failed jobs, an after_pipeline) and many promotions, several run more than once with parameters.
  2. First view: the initial pipeline at a readable zoom from its top-left corner (or the whole workflow, when that is readable); failed pipelines are open; every block of an open pipeline is expanded; failures stand out; the toolbar covers nothing.
  3. Scroll with the wheel: the map pans. Pinch or Cmd+wheel: it zooms.
  4. Toolbar: "Collapse all blocks" closes every block of the open pipelines and turns into "Expand all blocks"; "Open all pipelines" / "Close all pipelines" do what they say, and after "Close all pipelines" then "Open all pipelines" the blocks are open as before.
  5. The after-pipeline block sits to the right of the last column.
  6. "Promote" is a filled button. Its menu lists each run with its parameters under the name; a plain click on a run jumps the map to it; a middle click opens ?pipeline_id=<id> in a new tab; the filter finds a run by a parameter value.
  7. Before/after: add ?new_workflow_ui=false on an organization with the map enabled: the old page, also on the next visit without the parameter; ?new_workflow_ui=true brings the map back.

Checks: tsc --noEmit 0 errors, eslint js/workflow_map 0 warnings, mocha 687 passing, mix test test/front_web/controllers/workflow_controller_test.exs test/front_web/views/workflow_view_test.exs 50 tests, 0 failures, mix format --check-formatted clean.

🤖 Generated with Claude Code

skipi and others added 19 commits November 24, 2026 10:08
The workflow map's promote menu named each promotion once, cut to about
25 characters, and only said who promoted it last. On workflows that use
the root pipeline as a launcher (29 promotions, up to 12 runs of one
promotion) the menu could not tell the runs apart and most names were
cut where they differ.

The menu is now 560 px wide, opens with at least 60% of the window to
use, and wraps names instead of cutting them. Under each promotion it
lists its runs, newest first: status, name (with the attempt number),
the parameters the run's name does not already say, duration and age.
Clicking a run shows it on the map. The filter also matches run names
and parameter values. The "Not promoted yet" and "who promoted last"
notes give way to the run list; failed, starting and blocked notes stay.

The map JSON gains each pipeline's parameters (the env vars it was
promoted with), which the old workflow page already shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An open block on the workflow map gave each job name about 20
characters and cut the rest. Matrix jobs are named "<job> - VAR=value",
so every row of a matrix read the same ("Sem Version - TEST=...") and the
value that tells them apart was the part that got cut.

Jobs of one matrix now sit under a small heading with their shared name
(and the variable names, when every job sets the same ones), and each
row shows only the values: "gcc", "tests/compiler.bats · native". A
block whose rows still do not fit grows from 260 to 420 px, and a row
that is still too long wraps to up to three lines. Row heights are
measured from the text, so the layout keeps its blocks in place and
focusing a job still lands on its row. The full job name stays in the
row's tooltip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed pipeline card, block or job looked like a passed one apart from
a 16 px status icon and a thin bar, so at the zoom a big workflow fits
in (25-55%) the one failure among many passes was hard to spot.

Failed pipeline cards and blocks (collapsed or open) now get a red
outline and a light red background, failed job rows a red tint, and the
edge that leads to a failed pipeline or block is drawn red. Only CSS
classes and styles change; layout and sizes stay the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On big workflows "Fit workflow" and the first view squeezed everything
into the window: a 122-job workflow opened at 45%, a workflow with 27 promotions
at 25%, where names and durations are too small to read. The mouse
wheel zoomed, so scrolling down a tall map shrank it further instead
of moving along it.

Fit now keeps the zoom at the larger of the whole-workflow fit and the
width fit capped at 75%, and top/left-aligns a workflow that does not
fit the window, so the start of it is in view and the rest is a scroll
away. The wheel pans (pinch or Cmd+wheel still zooms). The fit box is
built from the laid-out pipeline boxes. The whole-workflow overview
stays on the corner fit button and the minimap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A finished pipeline opened with only its failed blocks expanded, so on a
small pipeline every job name and duration was one more click away. A
pipeline with up to 20 jobs now opens with all its blocks expanded, the
after-pipeline block included. Bigger pipelines keep the summary view
with the failed blocks open, and a pipeline that is still running keeps
opening everything.

20 jobs is the most that still fits one screen at 100% when they all sit
in one block.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The control that expands or collapses all blocks was an unlabelled icon
at the end of a pipeline's header, away from the blocks it changes and
easy to miss. It is now a labelled button next to the map's other
controls, "Expand all blocks" / "Collapse all blocks", and acts on every
open pipeline. The view stays anchored on the selected pipeline's
top-left corner while the blocks resize.

The right-edge anchor only served the header icon and goes with it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The after-pipeline block sat in a band of its own above all the other
blocks of its pipeline, wherever the YAML defined it. The map reads left
to right, so the jobs that run last looked like the pipeline's first and
most important step.

The block is now laid out after the last column of blocks, level with
the first row, and widens the pipeline instead of pushing every block
down. The pipeline grows taller only when the after block is taller than
the blocks beside it. Its position comes from the layout, so the CSS
offsets for the init tab and the details band are no longer needed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Promote was an outlined pill with a filled count bubble, the shape of a
notification badge, next to an outlined Rerun button of the same weight.
It is the one call to action on a pipeline, so it is now the primary
button: filled, white text, on the open pipeline and on the closed card.
The number of promotions stays in the tooltip and the menu lists them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…lbar

A view that is aligned to the top of the map started 40 px down, under
the toolbar in the top-right corner: on a wide pipeline the toolbar
covered the right end of the header (counts, duration, Promote), and on
a fan-out it covered the first promoted pipeline. With the labelled
"Expand all blocks" button the toolbar is wider, so more is covered.

A box that would reach within 64 px of the top or bottom now starts 64 px
down, clear of the toolbar. Boxes with more room than that stay centred.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The first view fitted the selected pipeline alone. On a workflow whose
initial pipeline is one small block that fans out into promotions, that
centred a nearly empty box at 100% and cut the promoted pipelines off at
the right edge, so the first thing to do was to click "Fit workflow".

When the initial pipeline is the selected one, the map now opens on the
whole workflow, at the readable fit: everything when it fits, otherwise
from its top-left corner. A link to another pipeline still opens on that
pipeline.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A failed promoted pipeline was a closed red card: which block and job
failed took a click on the card. The first view now opens the failed
pipelines next to the selected one, the first five in workflow order, so
a failure shows down to its job without a click. With the small-pipeline
rule their blocks open too.

Five keeps a workflow where everything failed from opening as a wall.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The map's toolbar now also holds "Expand all blocks". Next to it, "Open all"
and "Close all" no longer say what they act on. They open and close
pipelines, so the labels say so.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…line

A run in the promote menu was a button: a click showed its pipeline on
the map, and that was all it could do. It is now a link to that pipeline
on the workflow's page (?pipeline_id=<id>), so it opens in a new tab
with a middle click or a modifier click, and its address can be copied.
A plain click still shows the pipeline on the map without a page load
and leaves the same address in the address bar. A modifier click leaves
the menu open, so several runs can be opened one after another.

The run's name is underlined on hover, to say it is a link.

A promoted pipeline always belongs to the workflow it was promoted in,
so one address shape covers every run the menu lists.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A run in the promote menu showed only the parameters whose value its
name did not already contain, on the same line as the name. Every run
that was started with parameters now shows all of them on a second line
under the name, as NAME=value pairs in a muted monospace, so runs can be
told apart without relying on how the pipeline was named.

The pairs follow the order the promotion declares its parameters in: a
run stores them in the order they were sent, which differs between a
manual and an automatic promotion. A parameter with an empty value is
left out, and a run without parameters gets no second line.

A long value wraps inside the menu instead of being cut, and a pair that
does not fit next to the others starts its own line. The line is part
of the run's link, and the filter still matches parameter values.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Opening on the whole workflow suits a small initial pipeline that fans
out into promotions, but on a large initial pipeline with many runs of
its promotions the whole workflow only fits at about 25%, and the
initial pipeline lands at the bottom, centred against the column of
promoted pipelines.

The first view now shows the whole workflow only when it is at least as
readable as the initial pipeline at its width fit (capped at 75%).
Otherwise it opens at that zoom on the initial pipeline's top-left
corner, with its promotions to the right.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A finished pipeline with more than 20 jobs opened only its failed
blocks, so a passed block said nothing until it was clicked. Every block
of an open pipeline now starts open, whatever its size. The map already
loads every job of every pipeline on the first load, so this needs no
extra request, and opening all 122 jobs of a large workflow renders in
under 100 ms. A block the user closes stays closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…kflow map

"Close all pipelines" also emptied the set of open blocks, while the map
still remembered which pipelines it had already opened blocks for. A
pipeline opened again afterwards (with "Open all pipelines" or by hand)
therefore showed every block closed, failed blocks included, and the
toolbar offered "Expand all blocks".

Closing all pipelines now only closes the pipelines, the same as closing
one by hand, so a pipeline opened again shows its blocks as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The promote menu ordered a run's NAME=value pairs by the promotion's own
parameter list, meant as the order the YAML declares them in. That
order never reaches the page: the promotion service keeps a promotion's
parameters keyed by name and returns them sorted by name, so the list
only looked declared in hand-made test data.

The pairs are now sorted by name directly. This is what the page showed
on real data anyway, and it gives a manual and an automatic run of the
same promotion the same order, which is what the sort is for: a run
stores its parameters in the order they were sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new_workflow_ui query parameter could turn the workflow map on for a
visit, but false only forgot that choice: an organization with the
workflow map feature enabled always got the map, so there was no way to
look at the old page next to the new one.

false is now remembered for the visit like true is, and it wins over
the feature: the workflow page renders the old view until true is
given. Without the parameter, a visit that has made no choice follows
the feature as before.

The map's JSON routes keep their gate as it was (the visit's true, or
the feature). The old page never calls them, and refusing them on false
would break a map that is already open in another tab of the same visit
on its next refresh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant