Skip to content

feat(web): board toolbar for run controls, hints, intents and amendments - #20

Merged
springfall2008 merged 3 commits into
mainfrom
feat/web-ui-toolbar
Nov 27, 2026
Merged

springfall2008 merged 3 commits into
mainfrom
feat/web-ui-toolbar

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

What it does

The board actions added in #19 were hard to find. They sat in the goal node's drawer, below the progress block and the goal text, and Add hint sat at the bottom of every node's drawer. They are board actions, so they now live on the Board tab. Design: docs/superpowers/specs/2026-11-26-web-ui-toolbar-design.md.

  • Toolbar under the status strip, on a board view only:
    • State controls: Pause lead or Resume lead, Stop… and Restart, showing only the buttons that fit the board's state.
    • Stop… confirms inline, with focus on Cancel. Restart says to run board-runner run again.
    • + Hint, + Intent and + Amendment open their form in one panel under the toolbar. A hint or intent from here is board-wide.
  • Intent limit: the "of 20" in the strip is now a button. Clicking it opens a small editor: Enter saves once, Escape or blur cancels, and an invalid value shows a message without sending. On a done board it shows as plain text.
  • Drawer: keeps only two collapsed node shortcuts, "Hint about this node" and "Try next from this fact". The goal's drawer is read-only: progress, the goal text, and an amendments list that refreshes on each poll.

There is no server, proxy or skill change. Routes, payloads and the 409 handling are the same as in #19.

Review notes

  • Switching boards ends the toolbar's session. Open panels and the Stop confirmation close, and a write still in flight never reports onto the new board.
  • Writes from the toolbar and from a drawer shortcut each report on their own form.
  • After review, the strip and toolbar update in the poll loop are guarded, so an error there can't stop live polling.
  • The goal's drawer leaves out "Hint about this node", because + Hint already gives a board-wide hint. It is one line to add back if wanted.

Test plan

  • deno task check
  • Unit tests: 307 pass
  • pgTAP: 567 pass, with no rows left behind
  • Local smoke against a toy board, with 14 POSTs checked:
    • every toolbar action and both drawer shortcuts;
    • the 409 re-read;
    • the Stop confirmation's focus;
    • the limit editor's Enter, Escape, blur and invalid input;
    • two writes in flight at once;
    • a board switch with a panel open.
  • A look in a real browser on a hosted board.

🤖 Generated with Claude Code

springfall2008 and others added 3 commits November 26, 2026 21:02
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The board's actions move from the goal's drawer to a toolbar under the
status strip on a board view: the run controls valid for the goal's state
(Stop confirmed inline, focus on Cancel), and + Hint, + Intent and
+ Amendment opening one panel at a time. Hints and intents added there are
board-wide. The strip's intent limit edits in place (Enter saves once;
Escape and blur cancel). The drawer keeps two collapsed shortcuts, "Hint
about this node" and "Try next from this fact"; the goal drawer is
read-only, and its amendment list redraws after each poll. Each board's
toolbar is built afresh, so a switch closes any panel and nothing drawn for
one board sends for another.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@springfall2008
springfall2008 merged commit 074f79e into main Nov 27, 2026
2 checks passed
@springfall2008
springfall2008 deleted the feat/web-ui-toolbar branch November 27, 2026 07:59
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