Skip to content

feat: Set a thread summary's "Earlier discussion" label in the sender's face - #5585

Merged
leaf-agent merged 2 commits into
mainfrom
fix/issue-5532
Nov 6, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/issue-5532

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Before After
before after

Captured in a margin card with leaf-dev probe, light scheme, 1440×900. tests/model/test_interface_fonts.py and test_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

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 leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@leaf-agent
leaf-agent merged commit 60f6543 into main Nov 6, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5532 branch November 6, 2026 01:52
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 |
| --- | --- |
|
![before](https://github.com/user-attachments/assets/c544edc1-1064-4f38-967e-4b3210b4e42b)
|
![after](https://github.com/user-attachments/assets/80a8fd03-baa4-47e4-a2ec-1770cd66c3e8)
|

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

Set the "Earlier discussion" label apart from message text

1 participant