Skip to content

Let the thread panel occlude what it stands over, and route every trip through one entry - #1085

Merged
max-sixty merged 1 commit into
mainfrom
panel-occludes-travel
Sep 24, 2026
Merged

max-sixty merged 1 commit into
mainfrom
panel-occludes-travel

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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 (panelEdgeOver in exposure, panelHides for the quote press), and travel knew nothing about it at all. So a onto 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

  • The panel declares itself an occluder. declareOccluder in geometry.js works the way declareCoverRoom does for sticky covers. shownRect's clip walk (and clippedRect/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. panelEdgeOver and 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.
  • One owner clears what hides a destination. 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 (hides in geometry.js, the more-than-half rule panelHides used). It replaces panelHides in the thread card and the Ask view's covering-tray check. The Ask view's badge hiding reads the covering surface instead of trayIsOpen("asks") && trayCovers().
  • One trip entry. trip(where, { landing, url, keep, intent, there }) in anchor-travel.js clears (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 and navigateToDatum all go through it, and depart/stay are 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's t walk, a landing in a conversation) passes keep and never clears the panel.
  • "Journey", not "walk". The history-entry chain of trips was called a walk, which the glossary uses for same-kind ordered movement. It is now a journey (lfJourney in history state), and the glossary gains Trip and Journey.
  • stepScroller uses shadow.js under in place of contains, which stops at shadow roots.

Behavior that moved

  • a onto an Ask the open panel mostly covers now closes the panel. Before, the ring landed under the panel. (New test at 820px.)
  • An Ask the panel only partly covers still stays beside the panel. Its binding badges now label only the controls the user can see, where before badges for controls under the panel were painted over the panel's threads. (New test at 1280px. Both cases fail on the base.)
  • Datum travel (navigateToDatum) no longer departs when its destination is already readable: no history entry, no #source fragment, no re-centring. Before, it pushed unconditionally. test_call_diff_projects_stable_commentable_rows now asserts that.
  • Exposure is unchanged: a message any part of which is under the open panel is still not read. The rule now comes from shownRect.
  • Design-mode legend boxes end at the panel's edge rather than running over it. LEGEND_TRUE measures against the visible part.
  • A covering Asks tray is now closed at the trip, after the Ask's reveal and before focus lands. Before, it was closed before the reveal.

Deferred

The Asks tray still decides whether it covers the page by the width <= 600px media query (trays.js, mirrored in chrome.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. clearFor reads it through covers(), so that change will not touch travel.

🤖 Generated with Claude Code

…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]>
@max-sixty
max-sixty merged commit 574609a into main Sep 24, 2026
5 checks passed
@max-sixty
max-sixty deleted the panel-occludes-travel branch September 24, 2026 05:24
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