Repository navigation
Delete the registry's says key: modules draw their labels, and a gloss's explanation is the author's popover - #6339
Merged
Merged
Conversation
# Conflicts: # packages/default/widgets/lf-gloss.js
…t in both runtimes
leaf-agent
previously approved these changes
Nov 18, 2026
Packages read a part's name with named() and the page's words with says(); wrote() had no caller outside tests, which now read named().
leaf-agent
approved these changes
Nov 18, 2026
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_
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.
Removes the registry's
sayskey, 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:labelwhen it connects.<span popover>after the phrase, in place oftip, as you picked on the HTML-first survey (item 6, "the explanation is content"). The module adopts it as its card.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. Itsnamed()export replaceswrote()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, thesilent-wordrender check, therecord-saysrefusal, the clerk's attribute word places and Python's said words. Net −437 lines.What changes: an agent's
--quoteon a column heading or sample caption is refused (--sectionnames 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:
popoverrather than the survey's<small>, sincepopoversays the element is shown on demand and<small>is formatting; column headings and sample captions stay drawn fromlabelrather than #6325's authored title, since the label is both name and title there; a gloss with no popover child is a plain phrase, whichpage checkaccepts.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/modeland focused browser tests pass; a fresh-context reviewer and Codex reviewed it, and their findings are fixed.