Workflows: display names, state instead of monograms, and less noise in an item's workflow runs #44655 (GitHub #44654)
Open
juliusmarminge opened this issue ·0 comments
Problem#
The Workflows view and an issue or pull request's "Workflow runs" panel are hard to read once an installation has more than a handful of workflows.
- A workflow has only its id to show. The picker and every run row show the id the author chose (
issue,change,merged,recheck, …). The id is also what run keys, the store and the CLI use, so it cannot be renamed once runs exist. There is nowhere to put a readable name such as "Fix an issue" or "Clean up after a merge". - The two-letter monogram carries no meaning. It is the first letters of the id with a colour. Different workflows collide (
issue,intake-sweepandissue-shadow-sweepall show "IS";screen-shadowandstaged-sweepboth show "SS"), and it takes the slot where a state icon would be more useful. - "Workflow runs" on an item lists every run as an equal. An item handled by one real run can show four rows: two 70 ms router runs with a single step, a cancelled run, and the run that did the work. Each just says "Done" or "Cancelled".
- Timers and routers crowd the picker. Cron-style and webhook-receiving workflows sit in the same flat list as the ones a person cares about.
Proposal#
- Display name: an optional
title(and one-linedescription) on a workflow definition, shown in the picker, run rows and the run header. The id stays the key and is shown dimmed or on hover. Changing the title needs no new version. - State instead of monogram: show the run's state (running, waiting on you, done, failed, cancelled) in the icon slot, and the workflow's title as text.
- Outcome on the row: show the run's return value when it is a short string ("merged #123", "closed: did not reproduce") instead of "Done".
- Fold runs that did nothing for the reader: on an item's panel, collapse cancelled runs and runs with no agent step and no question behind "N more".
- Background workflows: a flag on the definition (or inferred from having only a schedule or hook trigger) that keeps a workflow out of the default picker list and out of item panels, under a "Background" group.
Expected#
Opening an issue that one workflow run fixed shows one row: the workflow's readable name, its state, and what it did.
tanstack-source added labelsfeature
Sign in to join this conversation.