Repository navigation
Fix five threads-panel defects: Reopen's look, the widened field, message width, Close's place, replying when resolved - #4573
Merged
Merged
Conversation
… measure, Close's room, replying when resolved The user listed these against the floating panel's thread view. - Reopen is Resolve switched on. The panel drew Reopen as Resolve's check in green ink, nothing else different. It now wears the ok tint a card's Reopen already wore, and a hovered Resolve, on cards and the panel, no longer previews that tint, so only a resolved thread shows it. - The widened field leaves the thread room. More room to write stood the field half the window tall however little it held (500px against a 328px view at 1000px). It now stands at least six lines and grows with the words, to half the window while a view stands above it, three quarters without. `test_a_long_draft_offers_more_room_at_a_press` now holds the pressed field to at least its height before the press and under a third of the window, instead of half the window. - A message's measure is set for its face. `.lf-msg-body` kept the page column's 720px, chosen for 17px serif, which at a message's 14px sans ran about 104 characters to a line in the widened panel. It now uses `--thread-card` (592px), the theme's column measure at that face, about 88. Margin cards and the resting panel are narrower than either, so only the widened panel and in-flow threads wider than 592px wrap sooner. - Close yields its column beside a widened field. While the field is widened, a view's Close stands at the end of the view's controls and the field runs to the row's end; folding the field back returns Close to the seat. New test: `test_a_widened_field_takes_the_row_s_end_from_a_view_s_close`. - A reply in a resolved thread reopens it. The panel hid a resolved thread's reply box and said only "Resolved", so writing there took Reopen first, though the server already reopens a thread on any user reply. The primary reader now draws a nominated reply part whatever the thread's state (the panel is its only nominator), the field says "Resolved" before Reply, and a send reopens the thread in the gesture's frame. Enter on a thread now lands in its reply box wherever one stands, and reopens only a thread drawn with none, as a resolved card is; cards keep their admission (`replyAvailable`). New test: `test_a_reply_in_a_resolved_thread_reopens_it`. Tests that expected the panel's box hidden in a resolved thread now expect it standing with its words; Enter-to-reopen in the panel became `r`. Deleted `test_a_resolved_thread_s_error_waits_in_the_leaf_menu`: its premise, a resolved thread's field taking no words and so saying no error, is gone. Checked with `leaf-dev probe` journeys on main and this branch in Chromium and Firefox, light and dark; the runtime's Node tests and the panel, reply-session, resolving, press-away and thread-key browser tests pass. > _This was written by Claude Code on behalf of max-sixty_
The way out stood centred in its seat, which is as wide as the On me mark with its count, so Close sat 11px inside the thread's Resolve above it, a misalignment Reopen's new tint made plain. The way out now ends its seat (Close's icon centre at 969px against Resolve's 970px in the ship review probe at 1440px), and in a view's controls it stays centred like the presses before it. The fold and peek tests that fail beside this change (test_the_leaf_travels_with_its_fold_and_reverses_from_where_it_stands, test_nothing_passing_interrupts_the_user_writing) fail the same way on main 9ee7614 on this host. > _This was written by Claude Code on behalf of max-sixty_
The user chose (28 October) that a thread's box, being all messages, sets how wide they run: the widened floating panel stopped messages two thirds of the way across, first at the page column's 720px measure and then at the card's 592px. `.lf-msg-body` now sets no measure. At rest nothing changes, since the panel is 540px and a card at most 592px; widened to 1100px, a message's lines run 1068px, as the draft's do. > _This was written by Claude Code on behalf of max-sixty_
# Conflicts: # dist/kernel/kernel.json
# Conflicts: # dist/kernel/kernel.json
leaf-agent
approved these changes
Oct 28, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 28, 2026
…4571) Several controls and marks drew a look of their own where Leaf already has one, so two controls of one kind stood side by side drawn differently, as a message's Edit did beside the thread's own controls. This moves each duplicate that has a canonical face onto it. **Symbols wear the symbol face** (`.lf-icon-action`), sized to their surface through `--lf-icon-action-face` where they need it: - The floating panel's Show, Undo, Find, Show on page, Resolve/Reopen and More room were `.lf-fp-icon-btn` presses in the panel's 72% ink with a 5% grey wash. They now rest in the muted ink and take the chip under the pointer, as the open thread's controls beside them do. Resolve and Reopen take the thread card's face, which the panel's copy had drifted from. - A recording's Play and Full screen, a heading's Copy link, and About this page's Copy. A symbol on Web Awesome's copy button draws its face on the host, and its inner button fills it, as a mark's already does; the host stretches Web Awesome's unparted wrapper so the button, its focus ring and its reach fill the face rather than shrinking to the 16px icon. A Copy symbol is 28px, so About this page's copy rows stand a few pixels taller. - lf-motion's Play draws Leaf's play and pause symbols (`showAction`) instead of an SVG it built and stroked itself. A toggled symbol, such as Find while it searches or More room while it widens, wears the toggle's selected face (the accent frame a word toggle wears) instead of only turning full ink. **Counts wear `.tag`**: lf-tally's count (`.tag.ok` once answered), and a tab's and a settled decision's count of changed passages, which share `.tag.lf-change-count`. They look as before; three hand copies of the chip are gone. **The unread dot is one class**, `.lf-unread-dot`, on a reply, a row of Threads, the On me mark and the folded leaf. Smaller moves: an activity row's link takes the page's link underline, the tab strip's edge presses draw the previous and next symbols rather than ‹ and › glyphs, and lf-file-editor's icons take Leaf's stroke. The comment in `controls.css` that exempted whole surfaces ("the floating panel keeps its own family") now exempts only the families that differ by task: the panel's rows, answers and row end, margin entries, reaction chips and the response bar. A to-do's Done on the On me card, which #4560 drew with `.lf-fp-icon-btn`, is a framed answer whose symbol the answer family now centres; it looks as it did on main. ### Overlap with other branches - `message-copy-markdown` moves the message controls (Edit, Copy, Add reaction, Discard) onto the symbol face. The generic Copy-symbol rule here makes that branch's `.lf-msg-copy` part rules redundant; whichever lands second drops them. - #4573 (`threads-panel-fixes`) changed the panel's Resolve/Reopen too; the panel's settle now wears the card's face, which carries #4573's tinted Reopen and neutral Resolve hover. ### Checked `pnpm run test:runtime`, `pnpm run check:browser`, `tests/browser/test_interact_layer.py`, about 25 focused browser tests on the panel, video controls, heading links, tabs, tally and the to-do's Done, and before/after hover captures of each moved control. > _This was written by Claude Code on behalf of max-sixty_
This was referenced Oct 29, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 29, 2026
The Comment shortcut test still expected a resolved panel thread to fall through to the page-comment box. #4573 deliberately kept a reply box in resolved panel threads, so the shortcut correctly stays with that thread and the old locator never appears. Update the test to require focus in the reply field and verify its thread recipient. Keep the live-thread focus, Escape, and unchanged-scroll assertions. No runtime behavior changes. The existing test failed locally on main at the missing page-comment field; the corrected test passes (`uv run pytest tests/browser/navigation/test_commenting.py::test_c_in_a_thread_reaches_that_threads_own_box -q -n0`). Ruff checks pass. Closes #4673 — automated triage Co-authored-by: leaf-agent <[email protected]>
This was referenced Oct 30, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 30, 2026
The current-location test expected opening a resolved panel thread to focus its view. #4573 deliberately added a reply field to resolved panel threads and made opening land there, so the old assertion timed out even though the ask already wore its ring. Require reply focus first, then use Escape to reach the view before exercising its digit shortcuts. Keep the ask-ring assertions, both choice results, and the check that a digit typed in the reply stays text. The open-thread case also uses Escape instead of scripted focus. Switch between threads through Threads directly; the separate panel-close step exposes a redundant visibility write tracked in #4745. The original test fails on main at the resolved-view focus assertion. The updated focused test passes in Chromium (1 passed), as do Ruff lint, format, and diff checks. This changes only the test; the queued review and CI will verify the pushed head. Closes #4674 — automated triage Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 31, 2026
…s Close (#4622) Two follow-ups to #4573 that the user picked on the threads-panel review page. **Every thread card takes a reply.** A resolved card now keeps its reply box, whose empty box says "Reply to reopen" (the floating panel's words for the same box), and a send reopens the thread, as the panel already did. Before, the only place a resolved card showed, a widget seat's Resolved disclosure, drew it with no box, so writing there took Reopen first. With every thread taking a reply, the shared admission `replyAvailable` always held, so it goes with its plumbing: the per-session reply row in `thread-card.js`, its keystroke repaint, and `replyThreadAtCurrentLocation`, which `c` and the reply carry consulted. The margin keeps its own rule, now stated in `annotation-inventory.js`: a resolved thread leaves the margin unless a reply is being written in it. A seat (`inline.js`) folds a resolved thread unless the user is writing in it, and a thread already in the disclosure stays there while they write, so the box never moves out from under the caret. A new browser test replies in a seat's resolved thread; with the keep-while-writing rule taken out, it fails. **A view's Close ends its controls.** Whenever an open view has controls (a thread, or the On view with its tabs), its ✕ now stands at their end, beside Resolve in a thread, at rest and widened alike. The field below runs to the panel's edge (494px at rest in the 540px panel, from 442px), and Close no longer jumps between the row's seat and the controls when the field widens. A stance such as Draw mode, or a view with no controls, keeps its ✕ in the row's seat. This reverses the 25 October seat for views; the `floating-panel.js` header records both choices. Behavior changes, with their tests: - A resolved thread card draws its reply box (`test_a_reply_in_a_seat_s_resolved_thread_reopens_it`, new). Two runtime tests that relied on a resolved card drawing no box now stub the box's input wiring. - A view's ✕ is found among its controls (`test_a_view_s_close_ends_its_controls_and_the_field_the_row`, replacing the widened-only test; two panel tests that pressed the ✕ in the row's seat; and the `SEATS` probe that holds a thread's controls still through news, which read the ✕ in the row). > _This was written by Claude Code on behalf of max-sixty_
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.
Five fixes to the floating panel's thread view, from the user's list against it.
.lf-msg-bodykept the page column's 720px measure, so the widened panel stopped messages two thirds of the way across. It now sets no measure; the box that holds a message (card, seat or panel) sets the limit. At rest nothing changes, since the panel is 540px and a card at most 592px.replyAvailable: no box on a resolved card).Tests: new
test_a_widened_field_takes_the_row_s_end_from_a_view_s_closeandtest_a_reply_in_a_resolved_thread_reopens_it. Tests that expected the panel's box hidden in a resolved thread now expect it standing; Enter-to-reopen in the panel becamer. Deletedtest_a_resolved_thread_s_error_waits_in_the_leaf_menu, whose premise (a resolved thread's field takes no words) is gone.test_a_long_draft_offers_more_room_at_a_pressnow holds the pressed field to at least its pre-press height and under a third of the window.Checked with
leaf-dev probejourneys on main and this branch in Chromium and Firefox, light and dark. Runtime Node tests (692),pnpm run check, and the panel, reply-session, resolving and thread-key browser tests pass.