Skip to content

feat(bindings): port react-transition-group - #487

Closed
jonkwheeler wants to merge 67 commits into
octanejs:mainfrom
jonkwheeler:jon/react-transition-group-binding
Closed

jonkwheeler wants to merge 67 commits into
octanejs:mainfrom
jonkwheeler:jon/react-transition-group-binding

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Octane applications can now migrate code built on [email protected] without replacing its transition model. The binding preserves the package's public component and subpath surface, including lifecycle callback order, CSS phase classes, keyed group retention, switch/replace sequencing, and server-rendered initial state.

The port keeps the pinned BSD-3-Clause upstream source, tests, and license as checksum-verified audit evidence. Exact-identity Octane parity lanes exercise every authored DOM/export and SSR test while remaining explicit that the complete upstream suite has not yet been adapted test-for-test.

Validation

  • pnpm format:check
  • pnpm typecheck
  • pnpm test
  • targeted tests:
    • package TypeScript check
    • 16 client/export/SSR tests across both Vitest projects, including review-regression cases for live completion callbacks, stable-key SwitchTransition updates, and nodeRef callback arguments
    • exact-identity React parity harness validation and execution
    • repository-wide React parity audit: stable 5,345 cases; canary 5,413 cases
    • upstream checksum/license audit and generated binding/package/CLI checks

Risk / follow-ups

  • Octane intentionally has no findDOMNode; DOM-aware transitions require nodeRef.
  • Dynamic TransitionGroup collections must be passed as inspectable descriptor values such as children={items.map(...)}.
  • The complete pinned upstream suite is retained for provenance but is not represented as verified test-for-test parity; the manifest records this honestly as recorded-unverified.

Provenance

  • An agent produced this diff (agent-authored)

Note

Medium Risk
New public binding with timer/effect ordering and keyed group semantics that must match upstream; mistakes affect animation orchestration across migrated apps, though coverage is heavy and divergences are documented.

Overview
Introduces @octanejs/transition-group, a new Octane binding aimed at drop-in replacement of [email protected]. It ships Transition, CSSTransition, TransitionGroup, SwitchTransition, ReplaceTransition, and config on the root and documented subpath exports, implemented in TSRX with nodeRef-based DOM access (no findDOMNode).

Evidence and integration: byte-pinned upstream/ sources and tests, DefinitelyTyped type-suite mirrors, pristine Jest oracle, adapted Vitest/SSR lanes, and react-parity audit wiring. Generated binding/package docs, CLI octane-data, and MCP import bridge now map react-transition-group → @octanejs/transition-group. .prettierignore excludes upstream-types/.

Lifecycle fixes (also noted in changesets): Transition commits ENTERING/EXITING before onEntering/onExiting so status is observable; TransitionGroup keeps survivors when onExited synchronously re-adds the same key; exit/enter flags refresh when a child starts leaving mid-list.

.changeset patch entries and widespread lockfileSha256 bumps reflect the new workspace package and lockfile refresh.

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

@vercel

vercel Bot commented Aug 2, 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 10:19am
octane-website-mcp Ready Ready Preview Aug 3, 2026 10:19am

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 14:15 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 14:16 Inactive
@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 2, 2026
jonkwheeler added a commit to jonkwheeler/octane that referenced this pull request Aug 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 14:24 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 14:24 Inactive
jonkwheeler added a commit to jonkwheeler/octane that referenced this pull request Aug 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 14:38 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 14:39 Inactive
jonkwheeler added a commit to jonkwheeler/octane that referenced this pull request Aug 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 15:14 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 15:14 Inactive
jonkwheeler added a commit to jonkwheeler/octane that referenced this pull request Aug 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 15:30 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 15:31 Inactive
jonkwheeler added a commit to jonkwheeler/octane that referenced this pull request Aug 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 15:41 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 15:41 Inactive
jonkwheeler added a commit to jonkwheeler/octane that referenced this pull request Aug 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 15:52 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 15:53 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 16:06 Inactive
Re-check live children after onExited so a synchronous re-add is not undone by handleExited's mapping delete.

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

Copy link
Copy Markdown
Contributor Author

Addressed Cursor Bugbot finding on TransitionGroup exit cleanup (sync onExited re-add) and pushed a regression test.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

@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 11:22
Drop the redundant react prefix from the Octane package id and folder so the
published binding is @octanejs/transition-group. Keep upstream react-transition-group
names for the npm/React library and parity harness scripts.

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

Copy link
Copy Markdown
Contributor Author

Renamed @octanejs/react-transition-group → @octanejs/transition-group (folder packages/transition-group) per maintainer naming guidance. Upstream react-transition-group npm/React names unchanged.

Checklist:

  • Still draft
  • No unresolved review threads (including Cursor Bugbot)
  • Current with main / mergeable (CLEAN)
  • Cursor Bugbot completed on current head with no open findings

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Merging origin/main to clear DIRTY conflicts; prior ready signal is void until Bugbot and the ready checklist pass on the new head.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Merging origin/main to clear DIRTY conflicts; prior ready signal is void until Bugbot and the ready checklist pass on the new head.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merged origin/main (resolved generated evals manifest hash drift by taking main). @octanejs/transition-group / packages/transition-group rename intact. Cursor Bugbot completed on the current head with no open findings.

Checklist:

  • Still draft
  • No unresolved review threads (including Cursor Bugbot)
  • Current with main / mergeable (CLEAN)
  • Cursor Bugbot completed on current head with no open findings

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Merging origin/main to clear DIRTY conflicts; prior ready signal is void until Bugbot and the ready checklist pass on the new head.

Resolve docs/packages.md via pnpm sync after Version Packages (octanejs#682) landed on main.

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

Copy link
Copy Markdown
Contributor Author

Merged origin/main (Version Packages #682; resolved docs/packages.md via pnpm sync). @octanejs/transition-group rename intact. Cursor Bugbot completed on the current head with no open findings.

Checklist:

  • Still draft
  • No unresolved review threads (including Cursor Bugbot)
  • Current with main / mergeable (CLEAN)
  • Cursor Bugbot completed on current head with no open findings

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Updating branch onto latest origin/main; prior ready signal is void until Bugbot and the ready checklist pass on the new head.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

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 716783b. Configure here.

Deferred onEntering/onExiting, skip-path completions, and addEndListener
now read latestProps like upstream's setState callbacks instead of
closing over performEnter/performExit props.

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

Copy link
Copy Markdown
Contributor Author

Addressed Bugbot finding: deferred enter/exit lifecycle callbacks and addEndListener now read latestProps at invocation time, matching upstream's live this.props in setState callbacks.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Updated branch onto latest origin/main via gh pr update-branch. Addressed Bugbot finding: deferred enter/exit lifecycle callbacks and addEndListener now read latestProps at invocation time.

Checklist:

  • Still draft
  • No unresolved review threads (including Cursor Bugbot)
  • Current with main / mergeable (CLEAN)
  • Cursor Bugbot completed on current head with no open findings

READY FOR REVIEW

@leonidaz

Copy link
Copy Markdown
Collaborator

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

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 READY FOR REVIEW REVIEW COMPLETE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants