Click a face to follow them: their tab, their frame, their play, their pointer

A collaborator's face in the top bar follows them. You go where they go —
the symbol they open, the frame they are on, play when they play — and each
of you sees the other's pointer on the stage, named and in their colour.
Clicking the face again, ringed while you are together, leaves.

tl's parties, nearly line for line. Nobody hosts: following someone on
their own takes their connection id as the party, so two people following
each other at once land in one, and anyone in it drives the rest. That is
why the eye beside the faces says whether you may be followed. The browsers
work it out from gossip; the server only relays `nav` and `cursor`, and
does not remember them.

Only deliberate moves go out. Every member plays the document off its own
clock, so a play is sent once with its frame rather than streamed. A dive
into a symbol made a moment ago waits for its write to land, and a dropped
socket rejoins the same party on the way back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Olive Vaughn 2026-10-11 01:53:20 -04:00
parent 14b0d6fa85
commit fbdecfb5d2
10 changed files with 502 additions and 53 deletions

View file

@ -466,14 +466,24 @@ a.brand { text-decoration: none; }
button.share-button { background: var(--sel); color: #fff; border-color: var(--sel); font-weight: 600; padding: 1px 12px; }
button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
/* Who else has this document open. */
.roster { display: flex; gap: 2px; align-items: center; }
.peer {
width: 18px; height: 18px; border-radius: 50%;
/* Who else has this document open. A face is a button: it follows them. The
ones you are following wear a ring; the eye says whether you may be followed. */
.roster { display: flex; gap: 3px; align-items: center; }
button.peer {
width: 18px; height: 18px; border-radius: 50%; padding: 0; border: 0;
display: inline-grid; place-items: center;
background: var(--sel); color: #fff; font-size: 10px; font-weight: 600;
}
.peer.guest { background: var(--dim); }
button.peer:hover:not(:disabled) { filter: brightness(1.15); }
button.peer:disabled { opacity: .45; cursor: default; }
button.peer.mate { outline: 1.5px solid var(--fg); outline-offset: 1px; }
button.followable { padding: 0 3px; color: var(--dim); border-color: transparent; background: none; }
button.followable.on { color: var(--fg); }
button.followable svg { width: 12px; height: 12px; display: block; }
/* A party-mate's pointer on the stage, in screen pixels whatever the zoom. */
.peer-cursors .arrow { stroke: #fff; stroke-width: 1; stroke-linejoin: round; }
.peer-cursors text { font-size: 10px; font-weight: 600; fill: #fff; }
/* --------------------------------------------------------------------------
media pool
@ -1668,6 +1678,7 @@ button.tl-gap:hover { background: rgba(47, 111, 192, .28); }
/* Touch targets, in the strips that are all buttons. */
.pane-head, .options-bar { gap: 7px; }
.options-bar button, .pane-head button, .top button { min-height: 24px; }
.top button.peer { width: 24px; height: 24px; }
/* A STRIP OF CONTROLS SCROLLS AS A STRIP. Flexbox's instinct when a row does
not fit is to shrink every item and then push the last ones off the end —