Skip to content

Compose selectable playground previews with optional motion playback - #3658

Merged
max-sixty merged 9 commits into
mainfrom
codex/playground-previews
Oct 23, 2026
Merged

max-sixty merged 9 commits into
mainfrom
codex/playground-previews

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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-motion playback 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 check passes. 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.

This was written by Codex on behalf of max-sixty

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
@max-sixty
max-sixty merged commit 3bf5dd9 into main Oct 23, 2026
3 checks passed
@max-sixty
max-sixty deleted the codex/playground-previews branch October 23, 2026 01:34
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]>
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