Skip to content

Show an option's and a board card's title as its author's HTML, with label as its name alone - #6325

Merged
max-sixty merged 2 commits into
mainfrom
option-labels
Nov 18, 2026
Merged

max-sixty merged 2 commits into
mainfrom
option-labels

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Option cards and board cards keep label as their name, the words On Me, threads and previews show, and no longer draw it: each card shows the title its author writes in it, a leading <strong>, as an lf-group shows the heading written in it. Max picked this on his markup-meaning design page: a name Leaf reads is data apart from the title the page shows. lf-option and lf-card drop says, so neither runtime writes the label into a card's words.

The <strong> titles #6289 moved into label are back where their authors wrote them, about 570 across examples, docs, references, evals and tests. Chips written before a title stand above it again, and cards laid across align their titles over them as they did before #6289. recommended stays an attribute, and its chip now leads the card's words.

What to weigh:

  • On Me shows a card option by its name alone. The sentence it showed under the name came from reading the author's markup. Options without one draw there as compact choices.
  • Each card's name is written twice, in label and in its title, and the two can drift apart.
  • Board columns and tabs still draw their label. A column is a list the board builds, and its heading is that list's name beside its card count.

Tests: the runtime suite, check:browser, the model tests the change touches, and the option, board and On Me browser tests that read titles all pass locally.

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

…label as its name alone

An option card's and a board card's `label` stays the name Leaf reads (On
Me, threads, previews, the board's move announcements), and nothing draws
it any more: the card shows the title its author writes in it, a leading
`<strong>`, as an `lf-group` shows the heading written in it. Max picked
this on his markup-meaning page: a name Leaf reads is data apart from the
title the page shows. `lf-option` and `lf-card` drop their `says`, so
neither runtime writes the label into the card's words.

What changed, by behavior:

- The <strong> titles #6289 moved into `label` are back where their authors
  wrote them, beside the label, across examples, docs, references, evals and
  tests (about 570, matched by id and label); the 14 label-only cards written
  since get `<strong>{label}</strong>`. Chips written before a title stand
  above it again, and cards laid across align their titles over them as they
  did before #6289.
- `recommended` stays an attribute. Its chip now leads the card's words, the
  first chip of its band, rather than ending the drawn title; at working
  density it stays at the row's head, since a generated chip floated to the
  row's end would take the pick mark's corner.
- On Me shows an option by its name alone: no rule may pick a sentence out
  of the author's markup, so the option's "consequence" reader goes, and
  `phrasing` leaves the package API it joined for it.
- `page check`'s advice for a widget that takes `label` and leads with a
  <strong> now fires only where the label is missing (`unnamed-card`): the
  <strong> is the title the page shows and the label its name.
- `$attributes.label` describes a name, which a column and a tab draw and a
  card or group doesn't.

Board columns and tabs keep drawing their label: a column is a list the
board builds, its heading the list's name beside its card count, and an
authored title would be a child of the list that is no card.
Two nested cards, one option in the shipped thread example and one in an
eval prompt, and three fixtures that build label-only cards, found by
Codex's review.

@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.

One gap the reversal opens. A labelled option or board card with no leading <strong> now draws no title, and nothing in the agent's path reports it (inline). Everything else, including the removal of consequence and the phrasing export, reads as a net simplification.

Comment thread src/leaf/validation/instances.py Resolved
@max-sixty
max-sixty merged commit 2df8ac3 into main Nov 18, 2026
7 checks passed
@max-sixty
max-sixty deleted the option-labels branch November 18, 2026 00:05
leaf-agent added a commit that referenced this pull request Nov 18, 2026
…lled option tag (#6328)

#6289 gave `<lf-option id="out-drill">` in `NESTED_OBLIGATION_PAGE` a
`label`, so
`test_a_nested_obligations_pick_is_not_part_of_its_outers_record`
stopped matching it when it replaced the exact tag `<lf-option
id="out-drill">`. Nothing was marked `selected`, the outer question
showed as overridden, and the test failed on main in push run
[44182772749](https://github.com/max-sixty/leaf/actions/runs/44182772749).
The replace now matches the tag's opening, so the test checks its
original behavior again. Only the test changes. It fails on current main
and passes on this branch when run by node id.

The same run had two other failures with the same cause:
`test_the_gate_passes_a_page_that_carries_a_comment` and
`test_board_moves_preserve_live_sample_and_control_state`. #6325 fixed
those when it restored the `<strong>` titles in their fixtures, and both
pass on current main.

Three more failures in that run come from #6289 but need a decision
rather than a test edit: work goals and atlas tasks were named by their
leading `<strong>`, and they take no `label`. They are filed separately.

Refs #3985

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Nov 18, 2026
…6331)

#6289 stopped taking a widget's name from its leading `<strong>` and has
widgets name themselves with `label`. But the goal widgets
`lf-atlas-task` (command-hub) and the fixture's `lf-test-task` declared
no `label`, so `readWork` titled every goal by its id
(`addressableName(goal) || goal.id`), and the Leaf panel's activity row
on command-hub named an atlas task by all its words, status chip
included. Both widgets now declare `label`, and each goal in
`examples/command-hub.html`, in the usability eval's
`evals/usability/fixtures/hub.html` (which composes the command-hub
package) and in the work tests carries it beside the `<strong>` title
the widget still draws.

#6329 left the choice open between this and dropping the `<strong>`.
#6325, merged since, settled it for cards: `label` is the name Leaf
reads, and the `<strong>` is the title the page shows. This PR applies
that split to goals. As #6325 notes for cards, each name is now written
twice and the two copies can drift.

Verification: these three tests failed on `main` at `b8f70ba96` and pass
with this change:

-
`tests/browser/test_render_work.py::test_public_work_roles_preserve_scope_remit_and_reports`
-
`tests/browser/test_render_work.py::test_a_page_owned_goal_joins_the_public_projection`
-
`tests/browser/test_render_projection.py::test_atlas_send_and_pause_is_one_thread_fold`

The rest of `test_render_work.py`, `tests/model/interact_contract` and
`tests/model/test_model_folds.py` also pass. `leaf page check` on a
command-hub preview reports status 0.

Closes #6329 — automated triage

---------

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Nov 18, 2026
…s's explanation is the author's popover (#6339)

Removes the registry's `says` key, by which a widget declared attributes
whose values the runtime wrote into the page and Python's passage
reading modelled. Each of its three declarers shows the same words
without it:

- **Board column:** lf-board.js already drew the heading; the column
drops the declaration.
- **Sample:** lf-sample.js draws the caption from `label` when it
connects.
- **Gloss:** the explanation is the author's `<span popover>` after the
phrase, in place of `tip`, as you picked on the HTML-first survey (item
6, "the explanation is content"). The module adopts it as its card.

```html
<lf-gloss>walking skeleton<span popover>A thin, end-to-end path through the real system.</span></lf-gloss>
```

A popover's words stay in the page's reading, so quotes, comments,
search and the clerk reach them. A new reading, `named`, leaves out
popovers below the element being named, in both runtimes, so a heading
holding a gloss isn't named by its explanation. Its `named()` export
replaces `wrote()` in the package API, which only tests called. The
frame edge trim leaves popovers out too.

Gone with the key: `renderSaid`, the version diff's said fold, the
`silent-word` render check, the `record-says` refusal, the clerk's
attribute word places and Python's said words. Net −437 lines.

**What changes:** an agent's `--quote` on a column heading or sample
caption is refused (`--section` names the widget; a user's comment works
as before), and search and quotes no longer run from a sample's caption
into its content.

**Calls you may reverse:** `popover` rather than the survey's `<small>`,
since `popover` says the element is shown on demand and `<small>` is
formatting; column headings and sample captions stay drawn from `label`
rather than #6325's authored title, since the label is both name and
title there; a gloss with no popover child is a plain phrase, which
`page check` accepts.

**Evidence:** stills of an open gloss card, a board and an exhibit match
main, as do probes of captions, headings, the card's gap and a drag
across a gloss. A fresh author given only the shipped instructions wrote
the new gloss markup right first time. `test:runtime`, `check:browser`,
`tests/model` and focused browser tests pass; a fresh-context reviewer
and Codex reviewed it, and their findings are fixed.

> _This was written by Claude Code on behalf of max-sixty_
leaf-agent pushed a commit that referenced this pull request Nov 18, 2026
…ts class (#6344)

An `lf-sample`'s `label` is now its name alone, as option and board
cards' labels have been since #6325: Leaf names a thread on the sample
by it, and the sample no longer draws it as a caption. The theme's
"quoted" note stays over a quoted sample. Every sample in the docs and
examples already has a paragraph before it saying what it shows; the one
whose label carried a qualifier (an illustrative excerpt in
`docs/how-it-works.html`) now says so in that paragraph.

Board columns keep drawing their heading from `label`. The column is a
list the board builds, its `members` content refuses an authored
heading, and a screen reader would read one as a list item. The heading
is now marked by the class `lf-column-name` rather than a
`data-lf-said="label"` value, the last use of the value convention the
deleted `says` key left. quietWord's lookup of a drawn title goes with
it, and two widgets that hand-wrote `data-lf-said="status"` now call
`generatedElement()`.

What to weigh: interactive and live samples lose their caption line, and
`lf-text-document` still draws its `label` as a caption over a file
listing, since that caption falls back to the file's path.

Max asked for this follow-up to #6339. Tests: the runtime suite,
`check:browser`, `tests/model`, and the browser and journeys tests the
change touches pass; the catalog previews are republished.

> _This was written by Claude Code on behalf of max-sixty_
leaf-agent added a commit that referenced this pull request Nov 18, 2026
#6332 and #6344 (#6343)

Push run
[44218332042](https://github.com/max-sixty/leaf/actions/runs/44218332042)
on `25e18501f` failed three tests that changes since the last diagnosed
run broke. Each test expected behavior that a merged change deliberately
moved, so this PR updates the tests and leaves the runtime as `main` has
it.

- **`test_a_board_says_which_column_each_card_is_in`: snapshots
updated.** #6325 put a board card's title back in the author's leading
`<strong>`, and #6344 deleted `quietWord`'s title lookup, so the
screen-reader-only provenance word sits at the card's start. The
snapshots now read the title as the `strong` it is, with "my change"
before it after a move.
-
**`test_a_drawing_names_its_proxies_and_keeps_its_place_among_the_page`:
test updated.** #6332 calls every part of an inline drawing a "figure",
so the proxies now read "Responses to figure · Gallery".
- **`test_page_search_finds_a_shipped_options_chip_and_title_apart`:
test deleted.** It searched the shipped `lf-options` example for a title
and a chip with no text between them. Since #6325 the chips come before
the title, with an authored space between them, so the example no longer
has such a pair. The option-chip case of
`test_page_search_finds_words_css_draws_apart_with_nothing_between_them`
still covers a chip and a title with nothing between them.

The quiet word now comes before a card's title, so a screen reader hears
"my change Squirrel baffle". Placing it after the title without reading
`<strong>` as a title is a question for the maintainer and isn't part of
this repair.

The first two tests fail on `main` and pass on this branch locally. The
fourth failure in the run,
`test_a_root_summary_keeps_thread_actions_outside_its_fold[1440-False-2]`,
is #6139, which is assigned to the maintainer.

Refs #3985 — automated triage

---------

Co-authored-by: leaf-agent <[email protected]>
Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Nov 18, 2026
…pages only (#6359)

`leaf thread reply` refused a reply holding a compact option with no
`label`, such as `<lf-option><strong>A</strong> first.</lf-option>`,
though the registry allows that shape; the refusal listed the
`unnamed-card` advice as its reason.

Cause: `unnamed_card_advice` (#6325) marks its findings as advice but
ran inside `instance_errors`, which message admission shares with `page
check` (`check_markup` → `message_markup_errors` → `fragment_errors` →
`instance_errors`). Admission refuses on any finding, and a message has
no channel for advice, as `pane_advice` already notes. Registry examples
(`composition._validate_example`) went through the same path.

Fix: the advice now runs from `validation/source.py:_instance_errors`,
beside `pane_advice` and `inert_allocation_advice`, so only a page's
documents get it. `page check` reports it exactly as before. The
docstring now says what the loop checks (a `<strong>` before any of the
widget's own words, whatever elements come first) instead of how options
were once written.

Test:
`test_a_reply_admits_an_option_that_leads_with_a_strong_and_no_label`
runs `check_markup` on such a reply; it fails on `main` with the
`unnamed-card` refusal and passes here.
`test_check_advises_a_label_where_a_card_leads_with_a_strong` still
passes, so page check still gives the advice.

Co-authored-by: leaf-agent <[email protected]>
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