Repository navigation
Draw no caption from a sample's label, and mark a column heading by its class - #6344
Merged
Merged
Conversation
# Conflicts: # packages/default/widgets/lf-gloss.js
…t in both runtimes
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().
…ts class An lf-sample's `label` is now its name alone, as option and board cards' are 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. Max asked for this ("do #5"), following his rule that a name Leaf reads is data apart from any title the page shows. 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 marked by the class `lf-column-name` instead of a `data-lf-said="label"` value, the last of the convention the deleted `says` key left: quietWord's lookup of a drawn title goes, and two widgets that hand-wrote `data-lf-said="status"` use generatedElement(). Behavior changed: a sample shows no caption line. The docs sample whose label carried a qualifier now says it in the paragraph before it, and the catalog previews are republished.
leaf-agent
approved these changes
Nov 18, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
Overlap with #6343, which also rewrites quietWord's seat in browser/runtime/declared-words.js. That PR places the quiet word after a card's authored <strong> title, to fix the reading order test_a_board_says_which_column_each_card_is_in catches on main. This PR places it at the element's start. Neither PR closes the other: whichever lands second has to keep the <strong> seat while dropping the [data-lf-said="label"] lookup.
leaf-agent
added a commit
that referenced
this pull request
Nov 18, 2026
…re its title The merge of main kept this branch's :scope > strong lookup over #6344, which deleted quietWord's title lookup. Take main's quietWord, and update test_a_board_says_which_column_each_card_is_in's second snapshot to what main draws: the quiet word "my change" before the card's strong title.
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
…6368) Removes two runtime fields nothing reads and corrects comments that no longer describe the code, from the nightly sweep. No behavior changes. The On Me press the floating panel's field offers at rest no longer carries `stands`. `notifications.js` calls `stands()` only on notices posted through `offerNotice`, which never posts this press, and `pageOffer` already decides when it stands. The panel types the press as `NoticePress` without `stands`. The latest-version control's label is now null while the control isn't offered. Before, the label was the placeholder "New page available → open v999", which nothing showed: `version.js` offers the control only after a failed save or when the page is behind, and the panel prints `latest.label` only after a failed save. `projection/data.js` writes and removes `data-lf-source` and `data-lf-source-revision` through `PAGE_PAINT_ATTRIBUTE.source` and `.sourceRevision`, which every other writer uses, instead of string literals. Comments: since #6344 the sample's "quoted" note is only a pseudo-element, and full view reserves height for no label (`sample.css`, `lf-sample.js`). The reading package's serifs are chosen for their x-height, not "a large `height`". The panel's voice decision no longer carries a date. Not in this PR: `pageStatus` in `activity-words.js` repeats the agent-name rule that `semantic-state.js` owns (`agentName`). Because of that, an empty `agent` string would make the resting line read " awaits". Draft #5979 rewrites those lines, so the fix waits until it lands. The dates in that file's resting-line comment wait for the same reason. Verified with `pnpm run check` and `pnpm run test:runtime` (1012 pass), plus the two browser tests that exercise the latest control's label: `test_news_under_the_open_menu_moves_nothing_in_it` and `test_a_failed_save_is_an_error_until_the_next_valid_one`. 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.
An
lf-sample'slabelis 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 indocs/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, itsmemberscontent refuses an authored heading, and a screen reader would read one as a list item. The heading is now marked by the classlf-column-namerather than adata-lf-said="label"value, the last use of the value convention the deletedsayskey left. quietWord's lookup of a drawn title goes with it, and two widgets that hand-wrotedata-lf-said="status"now callgeneratedElement().What to weigh: interactive and live samples lose their caption line, and
lf-text-documentstill draws itslabelas 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.