Skip to content

Show a thread's held news on its head line - #3102

Merged
max-sixty merged 2 commits into
mainfrom
agent-ae483693b88e798f4
Oct 16, 2026
Merged

max-sixty merged 2 commits into
mainfrom
agent-ae483693b88e798f4

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The user picked option A on the web-dev-gaps page ("Message annotations"): a thread's held news belongs on the thread's head line, not in a message head.

What was there. While a thread open in the floating panel held news (replies, edits, reactions or a resolve that arrived while the user wrote), its notice stood at the end of the first message's head in a 5rem slot, so it read "2 new rep…". On a margin card the notice lay over the end of the message head beside the card's actions, covering the time.

What replaces it.

  • Floating panel: the notice stands on the view's head line before "N of M", whole, at 12px in the ink of what the user may act on. The title shortens to make room; nothing else in the head or the messages moves (measured in Chromium and Firefox, at 1440 and at the panel's 540px width, light and dark, and under a coarse pointer, where its hit area reaches 44px without growing the line). Message heads in the panel read author then time and keep no room for news. The notice stays a button: a press, a tap or Enter on it shows what was held.
  • The primary reader takes the notice's place from a new nomination, parts.news(key, outlet) (module-annotations.md). A presentation that names none, such as a package's conversation reader or On's ask cards, keeps the notice at the end of the first part's head; the 5rem room is now kept only on heads that hold the notice. Each thread's head draws its own outlet (lit keyed), so walking to the next thread never shows the previous thread's notice in its head.
  • Margin card: the notice stands first in the head row, before Previous / position / Next, Resolve and Close. The card keeps its width while it holds news, so the notice takes its room from the heads' track and the actions stay put; a short author name keeps its whole width there (max(40%, 5em)), and the time gives way first.

What was deleted. The margin card's .lf-margin-thread-news overlay cell and its rule; the 5rem head room on panel message heads; "N of M"'s own auto margin, which moved to the facts group it now shares with the notice.

The New reply pill and the old Threads panel (docked panel, thread-card.js's head overlay and #retainHeaderSlot) are unchanged.

Hand-written lines (git diff --numstat origin/main, excluding the kernel and generated sheets): +117 / −45 in source, +2 / −1 in the reference, +81 / −3 in tests. test_held_news_reads_whole_on_the_thread_s_head_line is new; the floating panel's held-news checks read the notice in the head, and the margin card's news test checks it stands whole in the head row.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 2 commits October 16, 2026 16:00
While a thread open in the floating panel held news (replies, edits,
reactions or a resolve that arrived while the user wrote), its notice
stood at the end of the first message's head, cut to 5rem, so it read
"2 new rep…". On a margin card the notice lay over the end of the
message head beside the card's actions, covering the time.

The floating panel now stands the notice on its view's head line, with
the thread's other facts, before "N of M": whole, at the size of "N of
M" in the ink of what the user may act on. The title shortens to give it
room, and nothing else in the head or the messages moves. The primary
reader takes the place from a new nomination, `parts.news(key, outlet)`;
a presentation that names none, such as a package's conversation reader
or On's ask cards, keeps the notice at the end of the first part's head,
whose 5rem room is now kept only where the notice stands. No message
head in the panel's thread view carries news or keeps its room.

A margin card stands the notice first in its head row, before Previous,
the position and Next, Resolve and Close. The card keeps its width while
it holds news, so the notice takes its room from the heads' track and
the actions keep their places; a short author name keeps its whole
width there, and the time gives way first. The overlay rule that laid
the notice over the head is gone.

The New reply pill and the old Threads panel are unchanged.

Tests: `test_held_news_reads_whole_on_the_thread_s_head_line` is new;
the floating panel's held-news checks read the notice in the head, and
the margin card's news test checks it stands whole in the head row.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 10ae2c3 into main Oct 16, 2026
3 checks passed
@max-sixty
max-sixty deleted the agent-ae483693b88e798f4 branch October 16, 2026 23:20
max-sixty added a commit that referenced this pull request Oct 16, 2026
Follow-up to #3102. A margin card at its narrowest (320px), with
Previous and Next for its target's two threads and "2 new replies" held
while the user writes, leaves its message heads 67px wide. The metadata
shrank while the name kept its width, so the head clipped the time
mid-letter: "Me just nov".

The head row now gives up room in one order: first the annotations after
the time (such as "· Sent"), each with an ellipsis, then the name, with
an ellipsis. The time is never cut, and the notice still reads whole. In
the margin card, `.lf-msg-meta` is a grid whose least width is the
time's, because each annotation's track contributes nothing to it. It
shrinks with a weight of a million to the name's one, so the name keeps
its whole width whenever cutting the annotations alone makes the room.
Each annotation carries its own gap, so an annotation cut to nothing
takes its gap with it.

At that narrowest card with Previous and Next, all three can't fit:
"just now" takes 45px, which leaves 13.5px for the name, so "Me" reads
"M…". I chose to cut the name, as the rule asks. With a single thread
(no Previous and Next), the same card shows "Me just now · Sent" whole
beside the notice. I checked Chromium and Firefox, light and dark.

Hand-written lines (`git diff --numstat origin/main`): +23 / −4 in
`annotation-chrome.css`, +54 in tests.
`test_a_card_s_head_row_cuts_the_name_before_the_time` is new and fails
on the base with the time cut.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5.5 (1M context) <[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.

2 participants