Skip to content

feat(window): add exact Octane binding for react-window - #554

Closed
jonkwheeler wants to merge 39 commits into
octanejs:mainfrom
jonkwheeler:jon/react-window-binding
Closed

jonkwheeler wants to merge 39 commits into
octanejs:mainfrom
jonkwheeler:jon/react-window-binding

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Octane applications can replace [email protected] with an exact current-v2 binding instead of rewriting virtualization around a merely similar API. The port preserves all eight runtime exports and eight public types, including List, Grid, dynamic row measurement, React-compatible ref helpers, imperative scrolling, SSR, and hydration.

The evidence boundary is fail-closed: all 58 pinned upstream artifacts and 14 upstream test files are byte-accounted, the pristine React and generated Octane suites each execute all 117 cases, and shared differential and assertion-level type programs prevent the two surfaces from drifting independently.

Session-settled decisions carried from planning: target current v2 exactly (user-directed, over legacy/blended v1 compatibility) and ship one binding per draft PR (user-directed, over a multi-binding batch).

Validation

  • pnpm format:check — not run repository-wide; all 22 changed implementation/evidence files pass targeted Prettier checks
  • pnpm typecheck — not run repository-wide; pristine types, adapted types, and the package typecheck pass
  • pnpm test — not run repository-wide
  • targeted tests:
    • React parity manifest: all 7 required lanes pass
    • pristine/adapted upstream: 14 files and 117 cases per lane
    • combined runtime, hydration, differential, SSR, and upstream projects: 34 files / 245 tests
    • upstream/adaptation/type mutation audits: 15 tests
    • CLI: 12 files / 156 tests; MCP: 2 files / 38 tests
    • CI ownership validation: 32 tests; package-pack canaries: 10 tests
    • playground production build: 8,435 modules transformed
    • browser: List advanced from rows 0–11 to 17–32; Grid reached scrollLeft=650 / scrollTop=650 with two-axis cell replacement; zero console warnings/errors

Risk / follow-ups

  • Final Chromium/Firefox U5 parity remains pending the generic browser runner in draft PR test(browser): run integration lanes in Firefox #548; this PR does not duplicate that infrastructure.
  • Executable CommonJS require() parity remains pending the package-condition infrastructure in draft PR feat: publish executable CommonJS package conditions #550.
  • The full package gate produced all 70 archives, including the 43-file react-window archive, then the downstream external Lynx install stopped producing progress locally and was interrupted. Clean-install CI remains authoritative for that consumer stage.
  • Global parity validation currently stops on the pre-existing packages/hook-form/audit/react-parity.json hash mismatch for vitest.config.js; react-window's manifest validates and all of its required lanes execute successfully.

Provenance

  • An agent produced this diff (agent-authored)

Compound Engineering


Note

Medium Risk
Adds a large virtualization binding with strict parity claims and documents pending browser/CommonJS gates; paired core keyed-list and SSR escaping changes touch hot rendering paths though changesets describe preserved behavior.

Overview
Introduces @octanejs/window, an exact Octane port of [email protected] (List, Grid, dynamic row heights, imperative refs/scrolling, SSR/hydration) with vendored upstream provenance, a React parity manifest (117 cases across 14 upstream files), and generated binding inventory/status/docs. react-window is wired into CLI/MCP migration catalogs; bridge tooling now returns a direct install-and-replace plan when an official binding exists.

Octane core (separate patch changesets): production skips redundant DOM work for unchanged keyed-list rows when nested conditional content is host-only and dependencies are stable, and faster server HTML escaping with the same hydration/streaming guarantees.

Repo-wide generated artifacts refresh binding counts (61 bindings), lockfile hashes in parity manifests, and eval manifest overlay hashes.

Reviewed by Cursor Bugbot for commit 03646e0. Bugbot is set up for automated code reviews on this repo. Configure here.

Pin the v2.3.0 contract, evidence gates, prerequisite boundaries, and draft-PR execution tail before implementation begins.
Vendor and byte-lock react-window 2.3.0 source, tests, metadata, and license. Add fail-closed export and test-identity inventories with mutation controls before adapting implementation code.
Transcribe the pinned List, Grid, hook, ref, observer, sizing, and utility modules onto Octane hook slots and dynamic rendering. Prove bounded native scrolling, renderer identity, imperative APIs, dynamic-height cleanup, and deterministic SSR dimensions.
@vercel

vercel Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
octane-website Ready Ready Preview Aug 3, 2026 9:28pm
octane-website-mcp Ready Ready Preview Aug 3, 2026 9:28pm

Request Review

@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent feat PR: new feature or capability labels Aug 3, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 21:25 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 21:26 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 21:27 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 21:28 Inactive
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 7, 2026 18:24
jonkwheeler and others added 4 commits August 7, 2026 15:28
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping react-window coverage.

Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and inventory for react-window.

Co-authored-by: Cursor <[email protected]>
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping react-window coverage.

Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and inventory for react-window.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler
jonkwheeler marked this pull request as draft August 7, 2026 19:49
Comment thread packages/react-window/src/internal.ts Resolved
domgan-oai and others added 5 commits August 7, 2026 23:05
* perf: skip unchanged conditional keyed rows

* fix: exclude Activity boundaries from keyed row memoization
Cache bare-tag symbols so slotless composed hooks keep stable identities across renders.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency restored on current head after merging origin/main; conflicts/digests cleared and Bugbot is clean.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency pass: merged latest main via update-branch. Re-validating Bugbot/threads on the new head before re-signaling.

REVIEW WITHDRAWN

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Withdrawing ready signal pending package rename per maintainer feedback: drop redundant react from @octanejs/* package/folder names (e.g. @octanejs/react-popper → @octanejs/popper). Will re-signal after the rename lands on this branch.

jonkwheeler and others added 2 commits August 10, 2026 12:35
Drop the redundant react- prefix from the Octane published package id and folder per maintainer naming guidance; keep upstream npm react-window pins unchanged.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler jonkwheeler changed the title feat(react-window): add exact Octane binding feat(window): add exact Octane binding for react-window Aug 10, 2026
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Renamed the Octane package to @octanejs/window (packages/window), merged latest main, and Bugbot is clean on the current head.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency pass: merging origin/main into this DIRTY draft to restore CLEAN.

REVIEW WITHDRAWN

Resolve evals manifest conflict and refresh generated parity evidence
after main landed parity execution group fix (octanejs#690).

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency pass complete: merged origin/main (#690 parity execution group fix), resolved evals manifest conflict via pnpm sync, Bugbot clean on current head, merge state CLEAN, no unresolved threads.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency pass: origin/main advanced (#682 Version Packages). Merging to restore CLEAN.

REVIEW WITHDRAWN

Absorb Version Packages (octanejs#682) and refresh generated inventories via pnpm sync.

Co-authored-by: Cursor <[email protected]>
@leonidaz

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! This pull request was incorporated into main as commit 24aa23603bc3 through consolidated PR #699.

@leonidaz leonidaz closed this Aug 12, 2026
kotarotaniguchi0523 pushed a commit to kotarotaniguchi0523/octane that referenced this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent feat PR: new feature or capability REVIEW COMPLETE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants