Repository navigation
feat(drei): port the complete pinned web API - #501
jonkwheeler wants to merge 129 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Resolve inventory and root scripts while keeping drei coverage.
Regenerate lockfile hashes and Vitest evidence for drei.
Memoize fill shapes and key fill/stroke meshes by stable path and subpath indices instead of ephemeral shape UUIDs or curve counts. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
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 177f9b6. Configure here.
Unwrap compiler-tagged children blocks in forEachOctaneChild and render Text/Text3D non-text siblings with stable keyed @for loops. Co-authored-by: Cursor <[email protected]>
|
Fixed Svg mesh key stability, Text/Text3D children-block extraction, and keyed non-text siblings. Merged latest Checklist:
READY FOR REVIEW |
|
Branch is conflicting with REVIEW WITHDRAWN |
Co-authored-by: Cursor <[email protected]>
|
Merged latest Checklist:
READY FOR REVIEW |
Split guards and the View canary into non-overlapping Vitest projects with testExecution metadata, register repo-authored type lanes, and document the Playwright gallery as out-of-scope for Vitest/Jest parity execution. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
Parity ownership, differential isolation, upstream exclusion, and main merge are addressed. No unresolved review threads; Cursor Bugbot completed on this head with no open findings. READY FOR REVIEW |
leonidaz
left a comment
There was a problem hiding this comment.
React-parity/Vitest setup review only; tests were not run.
| That gallery runner is **out of scope** for the Vitest/Jest React-parity harness: | ||
| `e2e.sh` packs a release tarball and boots temporary Vite/Next apps before | ||
| Playwright compares a whole-canvas screenshot. Octane's parity execution kinds | ||
| are `vitest-full` and `jest-full`, so the pin treats the upstream runtime suite |
There was a problem hiding this comment.
Upstream suite is still misclassified: the pin demonstrably has an executable Playwright case, so harness support limited to vitest-full/jest-full does not make upstreamSuites.runtime: "absent" true. The binding rules require an existing pinned suite to run unchanged, then be adapted one-for-one or receive a rule-supported exclusion; replacing its gallery assertion with repo-authored export characterizations is not that adaptation. Add an executable pristine lane (extending/routing the harness as needed) and its corresponding disposition, rather than declaring the suite absent because the current harness lacks its runner kind.
There was a problem hiding this comment.
Upstream suite is still misclassified: … Add an executable pristine lane (extending/routing the harness as needed) and its corresponding disposition, rather than declaring the suite absent …
Needs a human call before changing harness semantics. The pin’s sole runtime suite is the Playwright whole-gallery screenshot (e2e.sh packs a release tarball and boots temporary Vite/Next apps). Declaring upstreamSuites.runtime: "absent" is wrong given that suite exists; a correct fix is larger than a mechanical reply.
Options
- Extend the parity harness with an executable pristine Playwright lane (Vitest wrapper or new
playwright-fullkind), run the upstream gallery against pinned@react-three/drei, and add a one-for-one adapted Octane gallery lane soruntime: "present"(orinsufficient+ upstream-suite lanes) is honest. CI cost, Linux snapshot oracle, and Vite-only vs full Vite+Next matrix need a call. - Change suite-state rules so a present-but-excluded Playwright suite can be recorded without claiming
absent, while keeping artifact-levelout-of-scope— weaker than (1) and still needs an explicit harness/docs rule.
Lean: (1). Holding this thread open until that direction is confirmed; not marking READY.
Address review on verifier ownership, differential case inventory, and repo-authored type-lane structural controls. Restore harness-lib suite-state expectations from main. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
Thank you for your contribution! This pull request was incorporated into |

Summary
Octane applications can now use the complete pinned
@react-three/[email protected]web API through@octanejs/drei, giving the planned Doom port the same helper surface as its React Three Fiber source.@octanejs/drei/configfor DOM/Three renderer boundaries and a production-built playground scene exercisingFloat,RoundedBox,Grid,Stars, andOrbitControlsin real WebGL.The sole intentional behavioral divergence is the deprecated DOM-root
Viewtransport: inline Canvas views are supported, but Octane's static renderer ownership cannot reproduce React Drei'stunnel-rattransfer between independent DOM and Three roots. The parity ledger documents the exact failure boundary and migration guidance.Validation
pnpm format:check(equivalent repo-wide Prettier check passed)pnpm typecheck(package-scoped Drei and Three runtime + typetest projects passed)pnpm test(targeted package and global parity suites passed)pnpm run packages:pack:check: 69 tarballs validated; React-free install/build/SSR and packed example consumers passedpnpm run sync: generated inventories current, 53 bindings, zero Drei crosswalk gapsRisk / follow-ups
View.Portremains a callable no-op for compatibility; consumers should authorViewinside the Three Canvas.Post-Deploy Monitoring & Validation
No additional operational monitoring is required; this is a publish-time and consumer-validation change. Healthy means the package publishes with its root/core/web/config exports and the playground continues rendering without renderer-boundary or WebGL errors. A failed publish, missing export, or consumer build regression should block release; rollback is reverting the package release/PR, owned by the Octane maintainers during the release window.
Provenance
agent-authored)Note
Medium Risk
Large new 3D binding with broad WebGL/DOM surface area and one intentional View API divergence; risk is mitigated by extensive differential tests and crosswalk guards rather than auth or data paths.
Overview
Adds
@octanejs/dreias a full Octane port of pinned@react-three/[email protected], with root/core/web exports plus@octanejs/drei/configfor Three/DOM renderer boundaries (used byHtmland PivotControls).Parity is enforced by an executable crosswalk (379 source / 217 runtime exports), ~100 paired React/Octane Vitest files, pristine/adapted public API type lanes, and hashed audit inventories wired into the shared
react-parity:checkharness viadrei-parity-lib.mjs. Repo docs, CLI binding data, and binding-parity tables register the package and map@react-three/drei→@octanejs/drei.Documented divergence: inline Canvas
Viewis supported, but DOM-rootViewfails with Octane’s renderer-boundary diagnostic andView.Portstays a callable no-op (no Reacttunnel-ratcross-root transport).packages/drei/**/*.tsrxis added to.prettierignorebecause the TSRX Prettier parser cannot round-trip Drei’s React-shaped sources.Reviewed by Cursor Bugbot for commit e02e050. Bugbot is set up for automated code reviews on this repo. Configure here.