Repository navigation
feat(revyl): run one-finger fling and pan as one timed drag - #5113
Conversation
Revyl workers that report supports_explicit_drag_duration take duration_ms on /drag. The plugin now admits performGesturePlan and performDirectionalFlingPlan and sends a single-pointer plan as one drag from its first sample to its last over the plan duration, so swipe and gesture fling keep their speed. Workers without timed drags refuse the gesture instead of running it at their own speed. Multi-touch and held drags stay refused.
There was a problem hiding this comment.
5 issues found across 7 files
Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack
View guided diff | Re-trigger cubic
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="website/docs/docs/revyl.md">
<violation number="1" location="website/docs/docs/revyl.md:96">
P3: The Revyl support list omits `gesture swipe`, even though it is normalized to a single-pointer fling and reaches the same admitted timed-drag path as the listed gestures. Add `gesture swipe` to the supported forms so the following “every other command” statement does not mislead users.</violation>
<violation number="2" location="website/docs/docs/revyl.md:96">
P2: This wording is incorrect for repeated swipes: `swipe --count` and `--pattern` send multiple drags, not one. Say that each swipe iteration sends one timed drag so users do not infer that repetition flags are unsupported or ignored.</violation>
</file>
<file name="website/docs/docs/capabilities.md">
<violation number="1" location="website/docs/docs/capabilities.md:117">
P2: This bare `Yes` overstates Revyl gesture support: timed `gesture pan` and `gesture fling` refuse on workers without explicit drag-duration support instead of dispatching. Add a Revyl-specific qualification to the generated capability matrix so the table exposes that prerequisite.</violation>
</file>
<file name="packages/provider-revyl/src/interactor.test.ts">
<violation number="1" location="packages/provider-revyl/src/interactor.test.ts:384">
P2: This test claims the fling is one drag but only inspects the last `/drag` request, so a regression that sends multiple drags would still pass. Assert that the fixture received exactly one `/drag` before checking its body.</violation>
</file>
<file name="packages/provider-revyl/src/interactor.ts">
<violation number="1" location="packages/provider-revyl/src/interactor.ts:340">
P2: This guard admits held single-pointer pans and collapses their hold into continuous movement over the total duration. Reject plans with contact-hold samples before dispatching `/drag`.</violation>
</file>
|
Thanks for the contribution. At 40bff98, Split View swipes on Revyl iOS now send the wrong gesture and report success, and the new device path still needs a recorded live run. On a Revyl iOS session, The changed device path has no recorded live run, and this is required before merge. The PR says Revyl iOS was not run, and the Android notes give no commands, output or SHA, with no live swipe in Validation. iOS differs here: it uses point coordinates and takes the gesture viewport from the snapshot, where a non-reported root viewport refuses with These open threads still apply and do not block the merge: iOS support matrix, single drag assertion and swipe count wording. One lower-priority thread also still applies. This thread does not apply and can be resolved: a pan with a hold goes to Checks at this head pass or are skipped. A cancelled Body rules run passed on a later run. Not verified here: no tests or live device runs were performed, and the Split View problem was traced by reading the code. Not verified here: the Revyl worker's Before merge, the Revyl interactor must refuse Split View preset plans before dispatch, with a test, and live Revyl iOS and Android swipe, fling and pan runs must be recorded at the new head. |
…ning them A Revyl gesture is one straight timed /drag between a plan's endpoints. Split View presets need a system edge contact and a path with a hold and a corner, so they now refuse with split_view_unavailable before any drag, as the WebDriver providers do. Any other single-contact plan with intermediate samples refuses rather than being flattened. The capability matrix qualifies the Revyl gesture cell (one finger, on a worker that reports drag duration), and the Revyl page lists gesture swipe, the Split View refusal, and one drag per swipe repetition.
|
Thanks for the review. Both points are addressed in d3dd944. Split View. Live runs. Both runs used the same source tree ( iOS simulator, Settings app, viewport 440×956 pt, run
Android emulator, Settings app, 1080×2400 px, run
The iOS gestures took their frame from the snapshot. No On an earlier Android run of the first commit, the drag's duration was also the deciding factor on a dismissable system notification. A 300 px horizontal drag over 500 ms left the row in place. The same 300 px as Validation at |
|
Thanks for the update. No code problems remain at d3dd944, and both blocking problems from the review of 40bff98 are fixed. These threads no longer apply and can be resolved: the first because the Revyl capability cells are now qualified; the second because the test now asserts exactly one All checks at this commit pass or are skipped, so CI is green. Nothing else from this review needs to happen before merge. Not verified here: no tests or device runs were done, so the fix and its test were judged by reading the code. The live evidence is author-reported, and the linked screenshots were not opened. It was not checked whether a Revyl drag from the |









Summary
Revyl sessions refused every
swipe,gesture flingandgesture panwithgesture fling is not supported on android(andios), although the worker's/dragaction already takes
duration_mswhen itshealthreportssupports_explicit_drag_duration, andscroll --duration-msalready uses it.The Revyl plugin now admits
performGesturePlanandperformDirectionalFlingPlanand sendsa single-pointer plan as one
/dragfrom its first sample to its last over the plan'sdurationMs, which is 100 ms for a fling. The planner already keeps every sample inside theviewport. A worker without timed drags refuses with
unsupported-provider-modeinstead ofrunning the gesture at a speed it picks. Multi-touch,
gesture dragand held pans stayrefused. The Revyl page and the capability matrix are updated.
Before / after
agent-device swipe 540 1600 540 600on a Revyl Android session:gesture fling is not supported on androidand the hint
Revyl does not expose portable gesture execution.Flung, withbackend: "revyl-device-proxy"anddurationMs: 100in--json.Validation
pnpm check:affected --runpassed withexactCommit: true(format, lint, typecheck,layering, fallow, build, vitest-related, unit, capabilities-matrix, docs-links, docs-prose).
gesture panover 500 ms left the row in place. The same 300 px asgesture fling right(100 ms), and as an 80 ms pan, dismissed it.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.