Repository navigation
Conversation
…holds A host that paces a keyed pan sends at most one move a display frame, and none while the last is unanswered. newestOnly answers the newest move once the ones already delivered have been read, so a slow worker answers where the finger is now instead of working through a backlog. The scratch card and the worker slider both answer their moves through it.
HadiKhai
force-pushed
the
feat/jollity-worker-gesture-slider
branch
from
November 24, 2026 10:21
cc6c3ca to
5a3f330
Compare
…esture node On a host that draws the Gesture node (GESTURE_SINCE, empty until a truapi release carries it), the docked Register is a slider the worker draws itself: the 80 pill in #33363A, the white 56 thumb with its shadow, chevron and spinner, the two lines with the shimmer band on the first and the text fading with the thumb, and the press, spring settle and pop passed to the host as the gesture's feel. A slide past 90% registers as the card's own Register. Docked with nothing to announce, the slider stands alone in the room footer; the host only docks the tree, as it docks any card. The card vocabulary holds the slider as its own Slider node, which toWire draws with the gesture slider, so the card no longer carries the SlideToConfirm node it kept for a host-drawn slide, nor its gate. Every other host, and every card in the feed, gets the I'll be there button. GESTURE_MODE picks how it follows the finger: host-driven (the default), where the host moves the thumb, or every-move, where the worker answers paced moves with a SetOffset for the keyed thumb and sends a tree only when something else changes and at the end of a drag.
HadiKhai
force-pushed
the
feat/jollity-worker-gesture-slider
branch
from
November 24, 2026 10:22
5a3f330 to
6e4b119
Compare
This branch has not been deployed
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.
What it does
On a host that draws the generic
Gesturenode, the docked Register slide is drawn by the Jollity worker from the host's general nodes, and the card no longer carries a SlideToConfirm node:#33363A, the white 56 thumb with its shadow, chevron and spinner, and the two lines (the label with a shimmer band over the date). The text fades as the thumb travels.feel, so the host plays them at display rate.GESTURE_SINCEinsrc/renderer.tslists the hosts that get it. It stays empty until a truapi release carries the node, so today every host keeps what it has now.The build's
GESTURE_MODEpicks how the slider follows the finger:host-driven(the default): the host moves the thumb, and the worker hears only the start and the end.every-move: the host paces the moves, and the worker answers the newest one with aSetOffsetfor the keyed thumb. It sends a tree only when something else changes, and at the end of a drag.The first commit adds
newestOnly(src/newest-only.ts), the same commit as in #52. Whichever of the two lands second drops it on rebase.How it looks
The docked Register slider in the room footer, iPhone on top and Android below, lined up at the first touch: the thumb follows the drag, the text fades as it travels, and it springs home on release. The ring is a local debug overlay drawn by the host at the finger's real position in the same frame. The Android half is an emulator drawing in software, so it records at about 46 frames a second and its drag reaches the app a little later. Recorded with a build of this PR's head that lists the two test hosts in
GESTURE_SINCE.docked-thumb-drag-and-spring-home-iphone-above-android.mp4
How it was tested
eslint apps/jollity-workerreports no errors, typecheck is clean, and the worker's tests pass except the truapi wire schema pin inhostStack.test.ts, which moves only with a truapi release.What it needs from trinity-user-agents
It needs what no truapi release carries yet:
Gesturenode with its event payload (positions in hundredths of a logical pixel);SetOffsetupdate for keyed gestures;Font,Fill,Shadow,Translate,Shimmer,FadeWithPan,Spin);feel.The paired draft pull requests on paritytech/trinity-user-agents are in progress.
Checks that can't pass yet
On truapi 0.32.0, typecheck fails on the new exports and node shapes in
src/gesture-slider.ts, and the tests that encode a gesture event fail. The rest of the worker's tests pass. The schema pin inhostStack.test.tsmoves with the truapi bump. When that bump lands,GESTURE_SINCEgets the release that carries the node.What's not done
GESTURE_SINCEyet.src/index.tsis also changed by #51. Whichever of the two lands second rebases.