Repository navigation
feat: Set a thread summary's "Earlier discussion" label in the sender's face - #5585
Merged
Merged
Conversation
The "Earlier discussion" label was set in --font-status, the 500-weight small face a message's time uses, so under a message it read as that message's last line. It now takes --font-name, the face of a message's sender, kept in the muted ink so it stays distinct from a sender's name. Closes #5532
leaf-agent
commented
Nov 6, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
The comment on --font-status in browser/styles/tokens.css still lists "a summary's" among its uses ("A status or reference that names a state rather than qualifying a line: a passage's, a drawing's, a summary's."). .lf-summary-label was the only summary rule that set this font, so after this change the token's contract describes a use it no longer has. That line is outside the diff, so I'm pushing a commit that drops "a summary's".
The summary label now takes --font-name, so no summary rule sets this font.
This was referenced Nov 7, 2026
Three margin and thread tests fail on main since #5410 made a click open a thread in its reply
#5643
Closed
Closed
leaf-agent
added a commit
that referenced
this pull request
Nov 7, 2026
…de a card's actions (#5673) This sets a thread summary's "Earlier discussion" label in `--font-status` again, undoing the face #5585 gave it, so the label fits on one line beside a margin card's actions. In #5585's sender face (600 weight, 13px), the label wraps to two lines in a 1440px card. There, Next unread's words, Expand, Resolve and Close leave the root summary's header a 113px column. `test_a_root_summary_keeps_thread_actions_outside_its_fold[1440-False-2]` fails on main and passes on this branch. | Before (main) | After | | --- | --- | |  |  | Captured from the test's own card: 1440×600, light scheme, mouse. **What this gives up.** #5585 answered #5532, where @max-sixty asked for a label in the sender's family so it would stop reading as the last line of the message above it. This PR brings back the small muted label, so that problem returns. I found no repair that keeps both: the sender's weight at the status size (`--font-heading`, 600/11.5px) still wraps in that 113px column, and only the 500 weight fits. The other ways to make room each change what the card shows, so they need a decision: hide Next unread's words, move the summary's header below the actions when space is short, or cut the label with an ellipsis. #5643 already asks @max-sixty to choose among them for the `[1400-True-10]` touch case, where the column is 57px. That case still fails, at about three lines, and this PR leaves it alone. #5672 tracks bringing #5585 back. Tests: `tests/browser/threads/test_summaries.py` passes apart from `[1400-True-10]` (#5643), and `tests/model/test_interface_fonts.py` passes. Closes #5651 — 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.
A thread summary's "Earlier discussion" label was set in
--font-status(500 weight, 11.5px, muted), the small face a message's time uses, so under a message it read as that message's last line. It now takes--font-name(600 weight, 13px), the face that names each message's sender, and keeps the muted ink, so it opens the summary the way a sender's name opens a message without reading as one.Captured in a margin card with
leaf-dev probe, light scheme, 1440×900.tests/model/test_interface_fonts.pyandtest_summaries.py::test_a_summary_folds_originals_and_reveals_them(which checks the label and its disclosure's placement) pass.The disclosure beside the label, "Show 3 earlier mes…", already wraps under the label and cuts its words in a card this narrow, before and after; this change leaves it as it was.
Closes #5532 — automated triage