You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit de0f296
Browse filesBrowse the repository at this point in the historyBrowse files
Make thread transitions, focus, and resolution consistent (#213)
Submitting a selection comment could close the Threads panel, shift the
document, and leave keyboard focus unclear. Keep the new conversation in
the reader's chosen view and focus its reply box. Wide live pages
reserve conversation space before the first comment so sending and
resolving leave the document column in place.
Opening a conversation enters its reply, while explicit thread
navigation stays on cards. Escape returns from a panel reply to its
card, and Enter resumes typing. Stronger input focus styling
distinguishes these modes, and long threads reveal the reply field with
Send and Resolve together. Later typing or selection retains focus when
a request completes.
Inline and panel views now share Resolve/Reopen controls, immediate
pending feedback, and duplicate-submission protection through the
outbox. Settlement preserves focus when replacing controls, including
page-seated threads that have no reply box. A CSS validation regression
also checks changed theme values and syntax against unchanged authored
HTML.
Validation: the everyday suite, focused browser suites covering
conversations, navigation, margins, and drafts, and pre-commit checks.
Regression cases include version-response seats without a reply box and
a filtered panel receiving a comment after the reader selects another
passage. Inspected the live examples at narrow and wide sizes in light
and dark themes. Updated the ship-review example, regenerated its
corpus, and aligned the runtime guidance.
> _This was written by Codex on behalf of max-sixty_
`test_a_comment_the_pointer_lands_on_comes_out_from_under_the_run_heading`, and
@@ -2669,6 +2672,12 @@ or disclosure state. Reconciliation preserves node identity; the list's own
2669
2672
hold, rather than the browser's scroll anchoring, preserves viewport position.
2670
2673
Tests pin the thread's box rather than a particular scroll offset.
2671
2674
2675
+
Panel and inline settlement controls read pending work from the outbox. Their busy
2676
+
labels reserve their width, keep focus, and prevent another submission while the
2677
+
request is pending. The accepted projection decides when the thread resolves or
2678
+
reopens. Resolving the last thread in an inline card closes it and returns focus
2679
+
to page navigation; a conversation seated in the page keeps a Reopen control.
2680
+
2672
2681
`renderThreads` holds one live card through every list mutation. It chooses the
2673
2682
card under the pointer while the pointer is in the list, then the card containing
2674
2683
focus, then the topmost visible card. It records later visible cards before the
@@ -2747,10 +2756,10 @@ landing in a thread in front of them — and takes the list as it stands.
2747
2756
`showThread` insists: a press out on the page or in a message knows nothing of
2748
2757
the narrowing it would be asking past, and a comment the reader has just written
2749
2758
cannot vanish into a narrowing it does not match, so the narrowing goes instead.
2750
-
It focuses the containing thread before `revealThread` scrolls it, making the
2751
-
thread the standing result rather than a card flashed while focus remains on the
2752
-
page. `preventScroll` keeps that focus call out of the scroll, so the list's own
2753
-
landing and then the reveal place the thread, in that order.
2759
+
It focuses the reply box, or the card when the thread is resolved, before
2760
+
`revealThread` places it. A thread too tall for its scrollport reveals its reply
2761
+
area. The explicit `t`/`T` walk remains on cards; Enter starts a reply and Escape
2762
+
returns to the card. A general-comment send keeps focus in its originating box.
2754
2763
A reveal that widened for a reply would take the reader's narrowing away for
2755
2764
having been used, which is how the waiting-on-you list is emptied.
2756
2765
@@ -2789,10 +2798,15 @@ outcome from `composerOpen`, `pendingAnchor`, and `fabAnchor`; `openComposer`'s
2789
2798
option decides focus independently. Outside clicks and Escape hide without discarding
2790
2799
words. A successful send or an explicit draft close discards the local record.
2791
2800
2792
-
An accepted anchored comment opens its inline thread. `--thread-card-floor` is how
2793
-
narrow the room right of its marker may get before that thread comes off the marker
2794
-
and covers the page in its bounded card; it does not substitute the Threads panel. The send focuses the reply box only when no later selection, edit, or
2795
-
typing gesture stands.
2801
+
An accepted anchored comment continues in the open Threads panel, widening a filter
2802
+
that would hide it. With the panel closed, it opens the inline thread beside its
2803
+
passage. A page marker uses an already-open panel; with the panel closed, it opens
2804
+
inline where the layout has room and uses the panel at narrower widths.
2805
+
The send focuses the reply box only when no later selection, edit, or typing gesture
2806
+
stands. Live pages reserve conversation room at the wide layout's existing floors,
2807
+
so the first comment and the last resolution leave the document column in place.
2808
+
`--thread-card-floor` bounds an inline card when the remaining margin is too narrow;
2809
+
the card then covers the page rather than becoming an unreadable sliver.
2796
2810
News arriving without the reader's send gesture may show a notice and count but
2797
2811
does not move focus or scroll the panel. `notice` is the one visible surface for a
2798
2812
moment's news — a recorded gesture, an arrived version, a refused send — and it
0 commit comments