Repository navigation
Conversation
On the contents spine, a dash between a section's marker and its label says the
section holds open threads (accent) or On me items (green), and while the changes
view is on a changed section's stretch of the spine is drawn under the lens. In the
column's outline, and the open outline a crowded margin falls back to, the same
dashes follow each row's words. A marked row's link previews its counts ("2 threads ·
1 waiting on me · 1 change") to a pointer, a held finger and keyboard focus, which a
screen reader hears as its description. Marks move nothing and take no presses.
A section holds an item by `partOver`, the rule On me groups by and a link's preview
names a place by (#5616), now exported from widget-api.js (toc-marks.js). lf-toc is a
LeafElement so it draws again only when threads, obligations or the comparison
change. The map's rows drop `z-index: 2` for an isolated `.lf-toc-rows`, so a changed
stretch can sit under the lens.
The sidebar-contents fixture gains seeded threads, two questions and an earlier
version, reached by the contents-marks and contents-marks-changes stills states.
…'s face A section's thread and On me marks are now upright bars a line tall in the gutter beside the outline's rule, or just right of the map's spine, as an editor marks lines beside its text: out of the words and taller than any letter, none reads as their punctuation, where a dash after the words read as an en dash and one 3px before a top-level label as a hyphen. A changed section is its stretch of the rule or spine in the face a change wears in the margin (`--lf-change-bar`), not the warning ink, so a change looks the same in both. The crowded margin's open outline takes the column's rule and inset, so it has the same gutter. Rejected: dashes ticked off the rule with every map label inset 6px further, which rewrapped labels on every map and stacked into a letter E beside a changed row. The fixture's "Switch the services" gains a thread, so one row holds both marks and a change; the browser test now also holds that no mark stands among a row's words.
… the column A removal whose gap stands before the next section's heading, as a paragraph taken from a section's end does, counted in the next section, since toc-marks.js climbed from the element its gap stands before. It now counts in the part over that element as the page's reading reached it, the section that held the paragraph; a gap after or in an element still counts in that element's section. What stands before the first section is the start row's, which the in-flow disclosure leaves out, so a thread on the lede showed beside the title on the map and nowhere in the column. The disclosure's toggle, standing where that row would, now carries its marks while the outline is open, and previews "Before the first section" with the counts; the outline a track beside the body shows now shows the start row, as the map does, since it has no toggle. The fixture gains a thread on its lede; the runtime test covers a removal at a section's end, after, before and in an element, and the browser test the title row's marks on the map and the toggle's in the column.
…; the sidebar outline marks its introduction on its label The preview owner kept a preview clear of every box around its subject that took the pointer (`taking` in clearRoom, preview.js). `lf-toc` draws its own content, so the whole contents counted as one control: inside it, drawn across the column at 700px, no side held a line, and a row's count preview stood over the next row, letting the pointer through. A box around the subject now counts only where a press acts on it (`CONTROL`), as the card a press opens around a chart does (#5617), and not where it takes the pointer only to be read, as a widget drawing its own content or a box that previews; the controls it holds are still tested for themselves. Dropping every box around the subject instead broke the chart-in-card guarantee in both engines. The change stays in clearRoom, out of `stand`. The outline a track beside the body shows no longer gains the title row: its "On this page" label carries the marks of what stands before the first section, and a pointer or held finger resting on it reads them; it takes no focus, since the walks and the Page Map reach those threads and questions by keyboard. The toggle and the label preview only while their marks show. Tests: an owner test in both engines, which failed before the change, holds a preview inside a widget drawing its own content standing whole and clear of the links beside it; a contents test holds the label's marks beside the body.
…ady say A row's preview said the section's name over its counts. At 700px with the column open and the changes view on, the only clear room beside "Verify" held one line, and the fit kept the first, so it showed "Veri…" and hid "1 change". The owner names a control in a preview only where its face doesn't say the name; the row's link says it, so its preview is now its counts alone, and a screen reader hears them as the description after the link's name. The toggle and the "On this page" label, whose faces don't say what their marks stand for, preview their counts under "Before the first section". The browser test now reads each row's preview as its counts alone, their description, and "Verify"'s one line of counts kept whole beside it at 700px.
leaf-agent
approved these changes
Nov 8, 2026
max-sixty
pushed a commit
that referenced
this pull request
Nov 18, 2026
…ces (#5721) #5633 set the naming rule in the glossary's "On Me" entry: the user's list is **On Me**, in title case like **On Claude**, and only a phrase about what waits on the user, such as "Waiting on me", keeps a lower-case *me*. #5719 landed after it and wrote "On me items" and "On me groups its items" in the contents marks' comments, in `skills/leaf/references/module-reading.md`, and in the contents-marks entry it added to the glossary. This PR writes the list's name as **On Me** in all of those places, and in two older comments #5633 missed ("the On me card", "On me stays open"). Only comments and reference prose change. No UI string had the old casing, so nothing the user sees changes. One line is in `.claude/skills/developing-leaf/references/glossary.md`, so per the repository's landing rule this PR needs the control-plane owner's approval and Tend won't merge it. --------- Co-authored-by: leaf-agent <[email protected]> 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.
A long page lists its threads and decisions in the Page Map, but nothing showed where they stand along the page.
lf-tocnow marks it on the contents it already draws, in the gutter beside its rule, as an editor marks lines beside its text. On the map, an upright bar a line tall just right of the spine says a section holds open threads (accent) or On me items (green); while the changes view (v) is on, a changed section's stretch of the spine is drawn in the face a change wears in the margin (--lf-change-bar), under the lens so the lens still shows the part in view. Wherelf-tocis the disclosure in the column, or an open outline, the same bars stand between the outline's rule and its words, and a changed section is its stretch of that rule. A marked row's link previews its counts alone, such as "1 thread · 1 waiting on me · 1 change", to a resting pointer, a held finger and keyboard focus, and a screen reader hears them as the description after the link's name; the preview leaves out the section's name, which the row's words already say, so where the only clear room beside a row holds one line, that line is the count. A row with nothing to count previews nothing, as before.What stands before the first section, such as a thread on the lede, is the map's title row's. The column's disclosure and the outline beside the body leave that row out, since the title stands just above, below or beside them, so their head carries its marks instead: the disclosure's toggle while it is open, which Tab reaches, and the outline's "On this page" label, which a pointer or a held finger reads and which takes no focus, since the walks and the Page Map reach those threads and questions by keyboard. Each previews its counts under "Before the first section", which its face doesn't say.
Marks move nothing and stand outside the words, so none reads as their punctuation: out of flow, one column at every depth, and taller than any letter beside them. They hold no control; a press on a row still goes to its section. The crowded margin's open outline takes the column's rule and inset, so it has the same gutter. Two other looks were tried and dropped: a dash after the words, which read as an en dash, and dashes ticked off the rule with every map label inset 6px further, which rewrapped labels on every map and stacked into a letter E beside a changed row in the column.
Which section holds an item is the rule On me groups its items by and a link's preview names a place by,
partOver(#5616): an item belongs to the first contents row met climbing from its element through the parts over it, so a paragraph under a headingmax-levelleaves out counts in the row above, and an element a row goes to, such as a whole section a thread is about, counts in that row.partOveris now exported fromwidget-api.jsand documented inmodule-reading.md; that is the only addition to the public package API. Threads stand at the element their anchor names, On me items areobligationsIn(main, readObligations().user)at the widget asking each, and changes arecomparisonChanges(main), each counted once per section its blocks touch; a removal counts in the section it was taken from, so a paragraph removed from a section's end, whose gap stands before the next heading, marks the section that held it (toc-marks.js).lf-tocis now aLeafElementso that it draws again exactly when the threads, the obligations or the comparison change, and for nothing else: no scroll, resize, pointer move or keystroke recomputes marks. Its frame, outline and map geometry stay its own imperative work, drawn into the same nodes. The map's rows no longer carryz-index: 2;.lf-toc-rowsisolates its own stacking context instead, so a changed stretch can sit under the lens.The row previews exposed a placement defect in the preview owner, fixed here in
clearRoom(preview.js), outsidestand. A box around a preview's subject counted as a control to keep clear of wherever it took the pointer, andlf-toctakes it because it draws its own content, so inside the contents, drawn across the column at 700px, no side held a line and a row's count preview stood over the next row. A box around the subject now counts only where a press acts on it, as the card a press opens around a chart does (#5617), not where it takes the pointer only to be read; the controls it holds are still tested for themselves. A row's preview there now takes the owner's ordinary places, clear of the rows around it, and covers nothing: in the column at 700px, "Record the baseline" and "Verify" each preview their one line of counts beside their words, in Chromium and Firefox, where that room held only part of a two-line preview before its counts became its whole reading. Dropping every box around the subject instead broke the chart-in-card guarantee in both engines.The
sidebar-contentsfixture now holds seeded threads (one on its lede, one resolved), two questions and an earlier version, and two stills states reach it:contents-marksandcontents-marks-changes, each the spine in a wide window and the opened column outline in a narrow one.Tests:
tests/runtime/toc-marks.test.mjsholds which section each item counts in (a heading over it, a headingmax-levelleaves out, a whole section, a nested section, the start row, and a removal before, after or in an element, a section's end included) and the preview's words. Intest_contents_and_glosses.py, one test holds the marks on the map and in the column, that none stands among a row's words, the previews on focus, a row's its counts alone, and their descriptions, a count kept whole where the room beside a row holds one line, the title row's and the toggle's marks, a thread arriving, the changes view, and that no mark moves a row; another holds the label's marks beside the body.test_previews.pyadds an owner test in both engines, failing before the fix, that a preview inside a widget drawing its own content stands whole and clear of the links beside it.test_a_route_taller_than_the_map_returns_to_an_open_outlinefails on main as it does here, inherited from #5637 and tracked in #5705.Open for review: a thread counts at the element its anchor names (
anchor.section), so a passage quoted in a paragraph without an id counts in the section of the nearest element around it that has one, as a heading's link preview already counts it; a question asked in a thread marks only as that thread, sinceobligationsInplaces no message obligation; and the preview owner measures a new reading's height with the room a previous, fitted reading left it, so Tab from a clamped preview onto the next can take a side too short for it (seen in Chromium in the owner test's first draft; not fixed here, since it is instand).