Repository navigation
feat: add React Spring web binding - #424
jonkwheeler wants to merge 59 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ding # Conflicts: # docs/binding-parity-gaps.md # docs/bindings-status.md # packages/cli/src/data/octane-data.json # packages/octane-evals/datasets/train/user-apps-v1/manifest.jsonl # playground/octane/package.json # playground/octane/src/catalog.ts # pnpm-lock.yaml
…ding # Conflicts: # packages/octane-evals/datasets/train/user-apps-v1/manifest.jsonl
|
READY FOR REVIEW |
Admit the vendored upstream suite as present: run a pristine browser Vitest lane, map every runtime identity in case-level dispositions, land one-for-one adapted upstream cases under tests/upstream, execute pristine type programs, and keep repo-authored conformance/browser out of react-parity ownership. Also fix AnimationConfig frequency sanitization, number-less string interpolation, and reserved-prop handling that the adapted helpers exposed. Co-authored-by: Cursor <[email protected]>
Port PickAnimated/ForwardProps/ReservedProps and hook/component inference so the present-suite adapted type lane typechecks one-for-one against the pin. Co-authored-by: Cursor <[email protected]>
…tanejs#424) Generate one-for-one upstream/adapted type inventories referenced by type-parity.json, verify them in the upstream check, and fix the pristine runtime regenerator main-module guard so `node path/to/script.mjs` writes. Co-authored-by: Cursor <[email protected]>
…ctanejs#424) Start constructor props like upstream, and implement the interpolate range shortcut overload that the public Interpolator type already advertised. Co-authored-by: Cursor <[email protected]>
) Only constructor props (or from+props) call start. A bare `new SpringValue(0)` must not set hasAnimated, or later from updates are ignored without reset. Co-authored-by: Cursor <[email protected]>
|
READY FOR REVIEW |
…nejs#424) Positional from wins over props.from. Constructor/event-only props no longer call start or set hasAnimated, so later from updates still apply. Co-authored-by: Cursor <[email protected]>
|
REVIEW WITHDRAWN |
|
READY FOR REVIEW |
| "id": "runtime:6cdf6a4cc127c1d9", | ||
| "upstreamFile": "packages/animated/src/createHost.test.ts", | ||
| "upstreamFullName": "createHost caches the animated wrapper on the component itself", | ||
| "disposition": "awaiting-adaptation", |
There was a problem hiding this comment.
This still does not provide the one-for-one adapted full suite claimed by the manifest: the pristine inventory contains 273 identities, the adapted inventory contains 10, and the remaining 263 entries are accepted as awaiting-adaptation. A pending-work marker is not an executable disposition or parity oracle. Adapt every applicable identity (or give a concrete inapplicable React/Octane rationale), and make the crosswalk reject unresolved awaiting-adaptation entries before calling this lane required/full-suite evidence.
There was a problem hiding this comment.
Adapt every applicable identity (or give a concrete inapplicable React/Octane rationale), and make the crosswalk reject unresolved awaiting-adaptation entries before calling this lane required/full-suite evidence.
Needs human product call — cannot auto-READY with this open
Current ledger: pristine 273 / adapted 10 / reused-dependency 5 / awaiting-adaptation 258. The prior awaiting-adaptation placeholder was rejected as a pending-work marker, not an executable disposition.
Options:
- Adapt all remaining applicable identities (SpringValue ~95, Controller ~31, createInterpolator ~26, animated web ~21, hooks suites, etc.) and then reject
awaiting-adaptationin the crosswalk for any required/full-suite adapted lane. Lean: this is the correct parity bar leonidaz stated. - Case-by-case inapplicable dispositions with concrete React/Octane rationales only where a case truly cannot apply (not “not yet landed”). Most of the 258 look in-scope for this web binding, so this is a small residual set after (1), not a substitute for (1).
- Split the PR: keep pristine + differential + types + the 10 adapted cases here; move the remaining adapted full-suite work to a follow-on PR — only if maintainers accept that this PR’s adapted lane must stop claiming required/full-suite evidence until that follow-on lands.
Lean: (1), possibly staged as follow-on commits on this branch rather than faking READY. Adapting ~258 snapshot/RAF/browser identities is multi-day porting and outside a mechanical babysit pass; please confirm whether to continue full adaptation on this PR or take option (3).
Co-authored-by: Cursor <[email protected]>
…octanejs#424) Co-authored-by: Cursor <[email protected]>
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 10433b9. Configure here.
) Co-authored-by: Cursor <[email protected]>
|
Babysit loop-back report (pipeline): currency and Bugbot findings cleared on |
|
Thank you for your contribution! This pull request was incorporated into |

Summary
Octane applications can now use the React Spring 10.1.2 web animation surface without React, including imperative springs, controller-backed hooks, animated DOM hosts, keyed transitions, browser utilities, and Parallax.
The port keeps
@react-spring/rafzas the scheduling dependency and replaces React integration at the binding boundary with Octane state, effects, refs-as-props, and direct coherent host writes. The published surface includes@octanejs/react-springand@octanejs/react-spring/parallax; the renderer-agnostic upstream meta-package remains intentionally out of scope.The migration is grounded in a byte-verified upstream snapshot and an explicit export/test disposition. Browser, SSR, hydration, type, packed-consumer, and playground coverage exercise the shipped package rather than only its source modules.
Plan:
docs/plans/2026-07-30-001-feat-react-spring-binding-plan.mdDesign decisions
Validation
Post-Deploy Monitoring & Validation
@octanejs/react-springerrors, hydration mismatches, stalled animations, observer cleanup errors, or unexpected RAF work after unmount.Note
Medium Risk
New animation binding with frame loops, observers, SSR/hydration, and teardown paths; regressions could show as stuck RAF, listener leaks, or hydration mismatches, though coverage is extensive.
Overview
Introduces
@octanejs/react-spring(0.0.1), a React-free port of@react-spring/[email protected]at the package root and Parallax at./parallax. The binding keeps@react-spring/rafzand reimplements controllers, hooks,animatedhosts, transitions, browser observers, SSR/hydration, and scroll Parallax on Octane primitives (refs-as-props, direct host writes, no React runtime).Tooling and discovery: CI installs Playwright Chromium for browser parity lanes; generated inventories,
docs/bindings-status.md, CLI/MCP mappings (@react-spring/web/@react-spring/parallax→@octanejs/react-spring), playground demo, packed-consumer checks, and a patch changeset register the 57th binding. The all-rendererreact-springmeta-package stays unmapped by design.Reviewed by Cursor Bugbot for commit 4b30a78. Bugbot is set up for automated code reviews on this repo. Configure here.