Skip to content

Draw Discard and Undo as one U-turn, and add a control legibility eval - #4856

Merged
max-sixty merged 4 commits into
mainfrom
draft-discard-symbol
Oct 31, 2026
Merged

max-sixty merged 4 commits into
mainfrom
draft-discard-symbol

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Discard throws an editor's unsaved words away, in a draft's toolbar and in a message rewrite. It wore Close's ✕, though Close keeps the words: closing a card leaves an open rewrite's words in its draft, and every other way out of a draft saves it. In a rewrite, Discard's ✕ stood two seats from the card's own Close ✕. Discard now shows Undo's symbol, which reverses #4514's ✕ for the rewrite; the user chose undo over ✕ for a reaction's removal on 23 October for the same reading.

Undo's symbol was a left arrow whose tail turns down, which is Lucide's and VS Code's reply arrow, so beside a message it could read as Reply. It is now the U-turn Apple's and Lucide's undo draw, the user's pick over Material's arc on a decision page that showed five candidates in the draft toolbar, the rewrite head and On me. ACTIONS.undo and ACTIONS.discard both name ICONS.undo, the path's only copy, so every Undo and Discard press draws it: the draft's and rewrite's Discard, On me's Undo, a reaction's Undo and a drawing's Undo last stroke.

Control legibility eval

evals/control-legibility/ asks what each item in a view does, to someone who has only seen it. views.py, a leaf-dev probe journey, draws a view from the working tree and numbers its controls. A reader model gets only the picture and a line about the app and says what each numbered control does. A judge compares each reading with what the control does, and the result lists each control read as another action or not understood. pnpm run eval:legibility captures the views and runs them through Promptfoo on the host's Claude login. The README says how the same parts would cover controls in place, word items, collisions within a view, more readers and a check against the merge base.

Its first view is every icon an action shows, drawn alone through offerAction. actions.json says what each action does. It must name exactly the actions ACTIONS holds, so the capture refuses to run until a new action has its line. In five samples the U-turn read as Undo or Discard every time. Fit read as full screen in four samples and as unclear in one. Arrange read as an outline or as unclear in four. The find bar's chevrons, drawn without the find bar, read as expand and collapse.

The microphone drew its failure slash wherever a press lacked the dictation button's class, so the sheet showed a muted microphone. The slash now hides on any microphone not on a failed press. The dictation button looks the same as before, both at rest and on failure (checked with leaf-dev probe).

Behavior changes: ACTIONS.discard shows the undo icon, which now draws a U-turn; action-offers.test.mjs asserts Discard's symbol is undo. Runtime tests pass (713/713 before the merge with main).

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 4 commits October 31, 2026 14:06
Discard throws an editor's unsaved words away, in a draft's toolbar and in
a message rewrite. It wore Close's ✕, though Close keeps the words: closing
a card leaves an open rewrite's words in its draft, and every other way out
of a draft saves it. In a rewrite, Discard's ✕ stood two seats from the
card's Close ✕. Discard now shows Undo's symbol. This reverses #4514, which
gave the rewrite's Discard the ✕ because the undo arrow was "only related to
discarding"; the user chose undo over ✕ for a reaction's removal on 23
October for the same reading.

Undo's symbol was a left arrow whose tail turns down, which is Lucide's and
VS Code's reply arrow and reads as Reply beside a message. It is now the arc
Material's and Lucide's undo draw, so On me's Undo, a reaction's Undo and a
drawing's Undo last stroke change with Discard.

Behavior change: `ACTIONS.discard` shows the `undo` icon, which draws the
arc; `action-offers.test.mjs` asserts Discard's symbol is `undo`.

Co-authored-by: Claude Opus 5.5 <[email protected]>
The user chose the U-turn Apple's and Lucide's undo draw over Material's
arc. It stays one entry, `ICONS.undo`, which both `ACTIONS.undo` and
`ACTIONS.discard` name, so every Undo and Discard press draws it: a draft's
and a rewrite's Discard, On me's Undo, a reaction's Undo and a drawing's
Undo last stroke.

Co-authored-by: Claude Opus 5.5 <[email protected]>
…h only on failure

`evals/control-legibility/` asks what each item in a view does, to
someone who has only seen it. `views.py`, a `leaf-dev probe` journey,
draws a view from this working tree and numbers its controls; a reader
model gets the picture and a line about the app and says what each
numbered control does; a judge compares each reading with what the
control does and lists every control read as another action or not
understood. `pnpm run eval:legibility` captures and runs it through
Promptfoo on the host's Claude login.

Its first view is every icon an action shows, drawn alone through
`offerAction`. `actions.json` says what each action does and must name
exactly the actions `ACTIONS` holds, so a new action stops the capture
until it has a line. The README says how the same parts grow to
controls in place, word items, collisions within a view, more readers
and a check against the merge base.

After the slash fix, two samples each read 28 of 32 symbols as one of
their actions, the U-turn among them. In all five samples Fit read as
full screen or was unclear, and Arrange as an outline or unclear; the
find bar's chevrons, drawn without the find bar, read as expand and
collapse.

The microphone drew its failure slash wherever a press didn't carry the
dictation button's class, so the sheet showed a muted microphone. The
slash now hides on any microphone not on a failed press; the dictation
button at rest and on failure looks as before.

Co-authored-by: Claude Opus 5.5 <[email protected]>

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The focused dictation journey fails at its vertical alignment assertion (4px) on both this PR and current main (2b901d446d3e710780983734c35f3c777fdf865b). This is inherited and does not withhold approval under the repository’s test policy; the runtime suite passed 713/713.

@max-sixty
max-sixty merged commit 257298b into main Oct 31, 2026
5 checks passed
@max-sixty
max-sixty deleted the draft-discard-symbol branch October 31, 2026 21:58
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.

2 participants