Repository navigation
test(motion): add React parity harness - #522
jonkwheeler wants to merge 51 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
0ff1a94 to
3cc63cb
Compare
Follow the hook-form pattern: tag parity lanes with testExecution group react-parity, move differential tests into a dedicated project with globalSetup precompile, and drop per-file beforeAll compile hooks.
Resolve merge conflicts preserving PR intent and the react-parity vitest differential split; refresh lockfile and vitest integrity hashes. Co-authored-by: Cursor <[email protected]>
Align vitest differential wiring with the split-project pattern and refresh react-parity evidence hashes. Co-authored-by: Cursor <[email protected]>
Regenerate parity lockfile hashes, bindings status, and package inventory. Co-authored-by: Cursor <[email protected]>
Resolve motion package conflicts by keeping main's layout/lazy/reduced-motion surfaces while retaining this PR's parity-harness style-rebind behavior, OCTANE DIVERGENCE markers, and upstream test scripts. Co-authored-by: Cursor <[email protected]>
|
Addressed currency: merged origin/main into jon/motion-react-parity-harness (no rebase). Resolved conflicts in motion package/docs/status by keeping main's layout/lazy/reduced-motion surfaces while retaining this PR's parity-harness style-rebind behavior, OCTANE DIVERGENCE markers, and upstream test scripts. Motion Vitest project: 27 files / 72 tests passed locally. |
When a style MotionValue patches over a layout FLIP compound translate/scale, consult the shared transformState for sibling axes so bound peers are not overwritten until they emit again. Co-authored-by: Cursor <[email protected]>
|
Addressed Bugbot finding on sibling-axis compound FLIP patching: transformState now preserves bound peer axes; regression tests added. |
|
READY FOR REVIEW |
|
REVIEW WITHDRAWN Merging origin/main to clear DIRTY conflicts; prior ready signal is void until Bugbot completes on the new head. |
Co-authored-by: Cursor <[email protected]>
A style scale MotionValue shares the scale( token with layout FLIP's two-arg compound, so exact replace was collapsing sx/sy mid-animation. Co-authored-by: Cursor <[email protected]>
|
READY FOR REVIEW |
|
Branch is behind main; restoring merge currency before re-checking readiness. REVIEW WITHDRAWN |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit 08442e5. Configure here.
Style scale shares the scale( token with layout FLIP's two-arg form, so removeTransformFn was wiping the layout axis when a MotionValue unbound. Co-authored-by: Cursor <[email protected]>
|
Merge currency restored, Bugbot finding on FLIP scale unbind fixed and resolved, Bugbot SUCCESS on current head with no open threads. READY FOR REVIEW |
|
Branch is behind main again; restoring merge currency before re-checking readiness. REVIEW WITHDRAWN |
|
Merge currency restored via update-branch; Cursor Bugbot completed successfully on current head with no unresolved findings or review threads. READY FOR REVIEW |
|
Thank you for your contribution! This pull request was incorporated into |

Summary
Verification
Provenance
agent-authored)Note
Medium Risk
Changes inline transform and style-effect lifecycle on motion hosts (interacts with layout FLIP and exit clones); coverage is strong but wrong patching could cause visual glitches in animated UIs.
Overview
Runtime: Style
MotionValuebindings now depend on the style bag and rebind when identities change (matching upstreamuseMotionValueswap behavior). Transforms are patched on the livetransformstring instead of rebuilt from scratch, with tracking of managed keys so unmount/exit clones keep visual state. Layout FLIP compounds (translate(x,y), asymmetricscale(sx,sy)) are decomposed for axis shorthands where safe, and compound/asymmetric forms are left alone on unbind so layout-owned transforms are not stripped. Switching a key from a MotionValue to a plain static value no longer clears the host style.Parity & docs: Pins Motion
12.42.2, vendors the curateduseMotionValueJest suite (upstream:verify, pristine/adapted inventories), adds Octane vsmotion/reactdifferential host rendering, paired pristine/adapted public-surface type probes,react-parity.json/ test classifications, and vitest projects (motion-pristine,motion-upstream,motion-differential). Documents a new known divergence:initialwithoutanimatedoes not materialize inline styles (conformance + bindings status).Tooling: Extends react-parity check to verify every binding manifest’s classifications,
motion-types-lib, andconformance:case ids on divergence markers.Reviewed by Cursor Bugbot for commit 2b79489. Bugbot is set up for automated code reviews on this repo. Configure here.