Repository navigation
Compose selectable playground previews with optional motion playback - #3658
Merged
Merged
Conversation
Keep configuration in the playground and playback in the motion package. Rich choices preserve interactive previews, while shared controls remain reachable on narrow layouts. Add the original panel recording study as a public example and an end-to-end authoring eval. Update sticky-layout assertions to expect shared controls before the preview on narrow screens.
The live authoring eval produced a readable desktop comparison but scaled phone recordings without the original study’s enlargement route. State the inspection-size goal beside the shared-transport guidance that removes individual native controls.
…iews # Conflicts: # packages/playground/instructions/author.md
…iews # Conflicts: # examples/corpus.html
leaf-agent
approved these changes
Oct 23, 2026
This was referenced Oct 27, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 27, 2026
The motion playback test compared native video time with the transport clock using a relative tolerance that allowed less than one microsecond early in playback. Chromium can truncate a fractional seek by one microsecond: requesting 252.00699999999998 ms returns 252.006 ms from both videos, reproducing the exact failure in #4418. Use a fixed 0.002 ms tolerance for the native-media comparison, covering that truncation and floating-point rounding. The test now exercises the reported fractional seek deterministically as well as the ordinary pause. Exact agreement between the two recordings and the assertion against per-frame seeking remain intact; product behavior is unchanged. This preserves #3658's shared native playback intent. Validation: the fractional seek fails with the old assertion and passes with the correction in the full touch playback/sticky transport journey. Closes #4418 — automated triage Co-authored-by: leaf-agent <[email protected]>
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.
Extend the existing playground so a user can select a candidate directly beside its preview and keep shared controls available while scrolling. Compose it with optional
lf-motionplayback for recorded video or authored animation, with one play/pause, seek, speed and replay transport across candidates. Playback stays local to the browser; the playground still submits one configuration.The panel-motion example compares four recordings, includes a native fullscreen inspection action, and works with desktop rails or stacked phone controls. Sticky transports inherit the containing surface and leave space before the next label, correcting the contrasting background strip found in visual review. Package instructions, examples, generated previews and a motion-design eval accompany the change.
Validation: focused browser checks exercise shared playback, selection around nested controls, quoted previews and sticky layout; independent desktop/phone and light/dark inspection covered the toolbar correction.
pnpm run checkpasses. The eval's baseline and both candidate runs all received DEFECT for phone evidence readability: the shared primitives reduced custom playback code, but these runs do not demonstrate a visual-quality improvement. The eval records that limitation rather than presenting the generated result as passing.