Skip to content

Lead a waiting or finished task to its next step - #1096

Merged
lezli01 merged 4 commits into
tui-auditfrom
fix/next-step-cards
Nov 23, 2026
Merged

lezli01 merged 4 commits into
tui-auditfrom
fix/next-step-cards

Conversation

@lezli01

@lezli01 lezli01 commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Closes #1068 (fifth in #1084's suggested order). Merges into tui-audit. Stacked on #1095, whose footer changes it builds on; once #1095 merges, this diff is #1068 alone.

Waiting tasks

  • A task at a gate gets the pinned card under the other tabs: the gate's instructions and a approve, x reject, s skip.
  • A task with a question gets the question pinned, with enter answer.
  • This matters because the wide workspace opens on Output, which used to show only a quiet feed.

Finished tasks

  • A done task's Overview has a next line of keys under its outcome card: F follow up, P open a pull request (only when one can be opened), T chat, A archive.
  • It is one line rather than a section, so the result summary keeps its rows. My first version, a full "What you can do" section, pushed the result off a 40-row screen.
  • The footer offers F follow up. Like E and R, it is withheld under a selection.

P and o

  • A refusal of either key off the Pull Request tab now goes to the status line, not only into that tab's note far below the fold.

A task a condition ended

  • The outcome card says ■ ended early at step N <name> — its condition was false, with the guard as it rendered.
  • It names the command whose exit the condition read, as not a failure: step 2 has-candidates exited 1, which the condition read — not a failure.
  • It gives the last status before it, e.g. 0 of 11 open issue(s) ready for triage. This is task 841's case from the issue.
  • Allowed failures: a step whose newest attempt failed but which the task went past is drawn ↷ in the rail and the pips, with exited 1 · allowed, the task went on. The client has no allow_failure field, so this is inferred: the engine advances past a failed final attempt only when the step allows failure. A step the task is still stopped on is never drawn as allowed. Attempt rows keep their true state.

A correction to #1093

#1093 hid E from the board's footer on the belief that the board has no editor. It does: the shell routes E, R and F to the board's detail panes. The board's footer target now sets editRetry from those panes when they show the selected task, and the guide says so.

Checks

  • Tests cover the gate and question cards, the done task's next line and footer F, the P refusal on the status line, the ended-early lines, and allowed-failure drawing.
  • Recaptured the screenshots and updated the guide.
  • go test ./internal/tui passes and mage lintall is clean.

The task board's footer offers enter open, n new, / filter, space select
and one arrows hint (the board's columns are called columns, not lanes),
and esc clear (N) under a selection. n is an echo row: it shows the
global key on the board's line without claiming it. The issue screen
ranks new task, chat, comment and close/reopen ahead of raw, links and
copy. Chat search and compare get an esc back row, and a chat's esc back
ranks ahead of hand-off.

Closes #1073
Gate and awaiting-input tasks get the pinned card under the other tabs,
with the instructions or the question and the keys. A done task's
Overview lists what can be done next (follow up, a pull request, archive,
chat) and the footer offers F follow up. A P or o refusal off the Pull
Request tab goes to the status line. A task a condition ended says so on
its outcome card, with the guard, the command whose exit it read and the
last status before it, and a step whose failure was allowed is drawn as
passed. The board's footer hints E again where its detail panes can edit
the step.

Closes #1068
The next steps are one line of keys under the outcome card rather than a
section, so the result keeps its rows; screenshots recaptured.
@lezli01
lezli01 merged commit 59eb2d4 into tui-audit Nov 23, 2026
24 checks passed
@lezli01
lezli01 deleted the fix/next-step-cards branch November 23, 2026 13:26
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