Repository navigation
Draw Show on page, Undo, Retry and timeline steps as their standard symbols - #4514
Merged
Merged
Conversation
…ymbols Max asked for a symbol in place of the thread view's "Show on page", and a survey of the worded controls whose action has a standard symbol. Show on page (and Show in message) now draws a map's locate mark, a ring with a centre dot and four ticks, which readers know as "show me where this is"; its name stays the tooltip and accessible name. The same symbol replaces the word on the two controls that do the same thing: the On me card's Show and About this page's observation rows. The survey also turned these into the symbols the rule names or Leaf already used: On me's Undo (the undo arrow), lf-timeline's Previous and Next (the chevrons), Retry in lf-diff, lf-file-editor and About's source inspection (the retry arrow lf-draft already drew), lf-trace's typed "−" and "+" and lf-shot's typed "…" (Leaf's subtract, add and more icons). A message rewrite and lf-draft now share Save and Discard: the save mark and the cross. The rewrite drew Discard as the undo arrow, which is only related to discarding, and lf-draft drew Save as the check, which is Resolve and Done elsewhere in Leaf. `browser/AGENTS.md`, "Visual grammar", already held the rule (#3914, #4335). What the survey kept finding was one action with a symbol in one place and a word in another, so the rule now says an action shows one symbol, or one word, wherever Leaf offers it. Behavior changes: the thread view's Show on page carries the class `lf-fp-on-page` (the On me card keeps `lf-fp-show`), and tests find these controls by accessible name rather than by their text. The timeline's controls row is about 6 px shorter. The timeline's and lf-shot's first-paint bundles now carry the icon table, as the playground's and motion's already do; lf-shot's build-time entry hands it to the view, since shot-view.js also loads at run time and can't import it there. > _This was written by Claude Code on behalf of max-sixty_ Co-Authored-By: Claude Opus 5.5 <[email protected]>
… does Resolve and Reopen are one toggle. A card's head and the floating panel already draw it as one check, drawn done on a resolved thread, but a margin card's controls row said Reopen as a word, so one action had two faces. The margin card now draws the done check too, with Reopen (or "✓ Resolved by <agent> · Reopen") as its tooltip and accessible name, and `#settlement` loses the place parameter that chose between them. The margin test that finds Reopen by its exact name now matches the agent-resolved label it carries as a symbol.
leaf-agent
previously approved these changes
Oct 27, 2026
# Conflicts: # dist/kernel/kernel.json
leaf-agent
previously approved these changes
Oct 27, 2026
leaf-agent
previously approved these changes
Oct 27, 2026
> _This was written by Claude Code on behalf of max-sixty_ Co-Authored-By: Claude Opus 5.5 <[email protected]>
leaf-agent
previously approved these changes
Oct 27, 2026
# Conflicts: # dist/kernel/kernel.json
leaf-agent
previously approved these changes
Oct 27, 2026
# Conflicts: # dist/kernel/kernel.json
leaf-agent
approved these changes
Oct 27, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 28, 2026
…l everywhere (#4547) Every button that shows a symbol now names its action rather than an icon. `ACTIONS` in `browser/runtime/icon-paths.js` is the single place where each action's symbol and name are set, so an action can no longer show a different symbol on a different surface. The survey in #4514 found several that had drifted: Discard drawn as an undo arrow in one editor and ✕ in another, Save drawn as ✓ or as the save mark, and Reopen shown as a word on one surface and a check on another. Each of those had been fixed by hand. With this change a symbol can only come from its action. ## The contract - `offerAction(role, className, label, {title, action})` and `offeredAction(...)`: a `"symbol"` or `"mark"` press must name an action. It draws that action's symbol itself and says the action's name as its tooltip and accessible name, unless `label` says more ("Retry source inspection"). A symbol press without an action, or with an unknown action, throws. A word or commit press that passes an action throws too. Templates drop their `${iconTemplate(...)}` content, because the writer draws the symbol, and leaves it untouched when it's already right, so later renders write nothing. - `actionOffers(base)` in `icon-paths.js` builds both constructors. The runtime wraps the prepaint ones with it, and so do first-paint producers (timeline, playground, `lf-shot`), so the inline prepaint stays glyph-free. - Presses that build their own face draw through `actionTemplate(action)`, `actionElement(action)` and `showAction(control, action)`. These cover the floating panel's buttons, message controls, video controls, the copy control's slot and motion's play. `showAction` handles a press whose action follows its state, such as Expand all ↔ Collapse all or the deck's Next ↔ Start, and replaces the hand-rolled symbol swaps in `lf-deck`, `lf-sample`, `lf-diff` and `lf-call-diff`. - `contributionEntry` takes `action` beside `glyph` and `icon`. `icon` stays for an entry that shows what it holds, such as a margin entry's kind. `responseAction`, `wireInput`, `copyControl` and page-control exit rows name an `action` in place of an `icon`. - Icons no action names (kinds, states, the chevrons beside worded rows) keep `iconTemplate` and `iconElement`. Whether a press is a word or a symbol stays the author's call. An earlier commit also refused a word button whose label was an action's name. A page's own to-do "Done" tripped it in `test_a_rewrite_keeps_the_message_as_it_stood`, so that refusal is gone: it was taste enforced on authors, which `/developing-leaf` "Leave taste to the authoring agent" rules out. ## Protocol `offerAction`'s `icon` option became `action`, which is a change to the public package API that a page vendored earlier would break on, so this bumps `$events.protocol` to 35. ## Checks - `pnpm run check` passed, including the new `tests/runtime/action-offers.test.mjs`. - 37 focused browser tests passed, rerun after merging #4545: page search steps, folding the panel, Image options, call-diff and diff fold-all, diff Retry, deck, timeline, motion, playground reset and instruction, sample full view and reset, Reopen on margin cards and threads, rewrites, `lf-draft` editing, suggestions, dial, code copy, video, On me, the menu's Undo, added options, and the About dialog's Show on page and Retry, and three `lf-trace` render tests. - `leaf-dev stills`: the timeline state came out pixel-identical. The other states timed out on both arms at a load average above 100, so I stopped the run. > _This was written by Claude Code on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Oct 31, 2026
#4856) 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_ --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Nov 1, 2026
max-sixty
pushed a commit
that referenced
this pull request
Nov 1, 2026
The file-editor journey still expected “Not saved · Retry” after #4514 deliberately changed Retry to an icon with an accessible name. It now expects “Not saved” in the status and retains the separate Retry visibility and error-description checks. No interface behavior changes. On current main, `tests/journeys/test_render_files.py::test_file_editor_saves_quietly_and_preserves_inflight_edits` reproduced the reported assertion failure and its unconsumed aborted-request teardown diagnostic. With this correction, the complete journey passes (13.92s), including newest-buffer retry, conflict recovery, and consumption of the deliberately aborted writes. The change adds no runtime mechanism; it brings the existing assertion into line with the intended interface. Closes #4939 — automated triage Co-authored-by: leaf-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The thread view's "Show on page" is now a symbol, and a survey of Leaf's worded controls turned the others whose action has a standard symbol into that symbol.
Show on page (and Show in message) draws a map's locate mark, a ring with a centre dot and four ticks, which readers know as "show me where this is"; its name stays the tooltip and accessible name. The same symbol replaces the word on the two controls that do the same thing: the On me card's Show and About this page's observation rows. The survey also turned these into the symbols the rule names or Leaf already used:
lf-timeline's Previous and Next: the chevrons.lf-diff,lf-file-editorand About's source inspection: the retry arrowlf-draftalready drew.lf-trace's typed "−" and "+", andlf-shot's typed "…": Leaf's subtract, add and more icons.A margin card's Reopen is now the done check, as a card's head and the floating panel already drew the Resolve/Reopen toggle; Reopen (or "✓ Resolved by · Reopen") stays its tooltip and accessible name, and
thread-card.js's#settlementloses the place parameter that chose between word and symbol.A message rewrite and
lf-draftnow share Save and Discard: the save mark and the cross. The rewrite drew Discard as the undo arrow, which is only related to discarding, andlf-draftdrew Save as the check, which is Resolve and Done elsewhere in Leaf.browser/AGENTS.md, "Visual grammar", already held the rule (#3914, #4335). What the survey kept finding was one action with a symbol in one place and a word in another, so the rule now says an action shows one symbol, or one word, wherever Leaf offers it.Behavior changes: the thread view's Show on page carries the class
lf-fp-on-page(the On me card keepslf-fp-show), and tests find these controls by accessible name rather than by their text. The timeline's controls row is about 6 px shorter. The timeline's andlf-shot's first-paint bundles now carry the icon table, as the playground's and motion's already do;lf-shot's build-time entry hands it to the view, sinceshot-view.jsalso loads at run time and can't import it there.