Repository navigation
Let the thread panel occlude what it stands over, and route every trip through one entry - #1085
Merged
Merged
Conversation
…p through one entry The open thread panel now declares itself to geometry as an occluder, so shownRect removes what it stands over from boxes stacked beneath it. That replaces panelEdgeOver and read.js's extra check, and badges, the legend and the response bar read the same answer. The auxiliary-surface owner's clearFor closes the selected surface when it covers the page or stands over most of a destination; it replaces panelHides and the Ask view's covering-tray check. anchor-travel's trip() is the one entry that clears, then stays or departs, for thread, Ask and datum travel. The history chain of trips is renamed from walk to journey (the glossary adds Trip and Journey). stepScroller uses shadow.js under instead of contains. Behavior that moved: - `a` onto an Ask the open panel mostly covers closes the panel. Before, it landed under the panel. - An Ask the panel only partly covers keeps the panel. Its binding badges label only the controls the user can see, where before they were painted over the panel's threads. - navigateToDatum stays, with no history entry or fragment, when its destination is already readable. - Design-mode legend boxes end at the panel's edge. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 24, 2026
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.
The open thread panel stands over the right of the page (#1043), but nothing in the page's one reading of what is on screen knew that. Two readers each carried their own copy of the panel's edge (
panelEdgeOverin exposure,panelHidesfor the quote press), and travel knew nothing about it at all. Soaonto an Ask the panel mostly covered stood the user on it where it was, under the panel. For an Ask the panel only partly covered, the Ask's key badges were placed on option controls under the panel and painted over the panel's own threads.Mechanism
declareOccluderingeometry.jsworks the waydeclareCoverRoomdoes for sticky covers.shownRect's clip walk (andclippedRect/clippedContents) removes what a declared occluder stands over from any box stacked beneath it and not inside it. What remains is the largest rectangle the occluder leaves, so every pixel of the answer is visible. "Stacked beneath" is read from the outermost positioned ancestor's z-index, and the top layer sits above everything, so a door's menu or the key-badge layer is not hidden by the panel.panelEdgeOverand read.js's extra line are gone. Exposure, key badges, the design-mode legend and aim, the response bar's region bounds, and travel all read the same answer.clearFor(where)on the auxiliary-surface owner closes the selected surface when it covers the page, or when it stands over most of the destination (hidesingeometry.js, the more-than-half rulepanelHidesused). It replacespanelHidesin the thread card and the Ask view's covering-tray check. The Ask view's badge hiding reads the covering surface instead oftrayIsOpen("asks") && trayCovers().trip(where, { landing, url, keep, intent, there })inanchor-travel.jsclears (through the caller's retained intent, since clearing can move focus out of the surface), then either stays or departs and returns whether the caller moves the page.scrollToThread, the Ask view andnavigateToDatumall go through it, anddepart/stayare no longer exported. After clearing, travel reads past whatever surface still stands: what that surface covers, no scroll can show. A trip taken from inside the panel (the panel'stwalk, a landing in a conversation) passeskeepand never clears the panel.lfJourneyin history state), and the glossary gains Trip and Journey.stepScrolleruses shadow.jsunderin place ofcontains, which stops at shadow roots.Behavior that moved
aonto an Ask the open panel mostly covers now closes the panel. Before, the ring landed under the panel. (New test at 820px.)navigateToDatum) no longer departs when its destination is already readable: no history entry, no#sourcefragment, no re-centring. Before, it pushed unconditionally.test_call_diff_projects_stable_commentable_rowsnow asserts that.shownRect.LEGEND_TRUEmeasures against the visible part.Deferred
The Asks tray still decides whether it covers the page by the
width <= 600pxmedia query (trays.js, mirrored inchrome.css), where the panel asks how much page its drawn width leaves. That is a CSS-owned layout posture shared with the stylesheet. Moving it to a measured reading is a layout change separate from travel.clearForreads it throughcovers(), so that change will not touch travel.🤖 Generated with Claude Code