Skip to content

feat(popper): add exact Octane binding for react-popper - #558

Closed
jonkwheeler wants to merge 26 commits into
octanejs:mainfrom
jonkwheeler:jon/react-popper-binding
Closed

jonkwheeler wants to merge 26 commits into
octanejs:mainfrom
jonkwheeler:jon/react-popper-binding

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Octane applications can now migrate from [email protected] without replacing its root API: Manager, Reference, Popper, and usePopper retain the published runtime and type contracts.
  • The binding preserves Popper lifecycle, modifier ordering, virtual and explicit references, arrow/hide data, render-function behavior, ref cleanup, SSR, and hydration semantics while remaining React-free at runtime.
  • The pinned npm artifact and v2.3.0 tag are vendored as two authorities, with a fail-closed parity audit covering 52 artifacts and all 20 upstream runtime/type cases.

Why

@octanejs/floating-ui covers the underlying positioning ecosystem but is not an API-equivalent replacement for applications importing react-popper. This exact binding removes that migration gap without asking users to rewrite their positioning integration first.

Changes

  • Adds the publishable @octanejs/react-popper package, exact MIT provenance, published public types, pristine React differential oracle, and adapted Octane type programs.
  • Adds executable runtime, differential, SSR, hydration, Chromium, and Firefox evidence plus five negative controls that prove the upstream inventory and case map fail closed.
  • Registers the binding across workspace, generated package/status/parity inventories, website, CLI, MCP discovery, Vitest, playground, and changesets.

Validation

  • pnpm format:check (repository-wide command not run)
  • pnpm typecheck (repository-wide command not run)
  • pnpm test (repository-wide command not run)
  • targeted tests:
    • CI=true pnpm --dir packages/react-popper test — 4 Vitest files / 11 tests, pristine and adapted type programs, 52-artifact / 20-case audit, and 5 negative controls passed
    • React parity audit — stable 5,345 / canary 5,413 passed
    • Browser parity — Chromium 1/1 and Firefox 1/1 passed
    • MCP bridge — 2 files / 37 tests passed
    • Generated package, binding-status, parity-gap, and CLI inventories are current
    • Playground production build passed with 8,498 modules transformed
    • Package tarball inspected at /private/tmp/octanejs-react-popper-0.0.1.tgz
    • Changed first-party files pass Prettier; git diff --cached --check passed before commit

Risk / follow-ups

  • The package intentionally follows the pinned [email protected] published contract, including its type-level quirks; behavior changes should first be evaluated against that authority.
  • This PR is intentionally draft and remains draft through CI and Cursor/Bugbot review. Only an Octane maintainer should mark it ready or merge it.

Provenance

  • An agent produced this diff (agent-authored)

Compound Engineering


Note

Medium Risk
New UI positioning binding with DOM refs, Popper lifecycle, and SSR/hydration paths; risk is mitigated by extensive differential and audit gates but regressions would affect tooltip/overlay consumers migrating from React.

Overview
Introduces @octanejs/popper as a drop-in Octane port of [email protected], exporting Manager, Reference, Popper, and usePopper with the same public types and @popperjs/core positioning behavior. Implementation uses Octane context, ref-as-prop, and OctaneNode types; dev misuse warnings go through console.error instead of React Popper’s warning helper.

The PR adds the full binding package (vendored upstream pin, parity audit, adapted upstream tests, React differential oracle, typetests, SSR/hydration and browser coverage) and wires it into the monorepo: binding/status/inventory docs, react-popper → @octanejs/popper in CLI and MCP, Vitest projects, changeset, and lockfile hash bumps across parity manifests.

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

@vercel

vercel Bot commented Aug 4, 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 4, 2026 4:08am
octane-website-mcp Ready Ready Preview Aug 4, 2026 4:08am

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 4, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 4, 2026 03:55 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 4, 2026 03:56 Inactive
Comment thread packages/popper/src/usePopper.tsrx Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 4, 2026 04:07 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 4, 2026 04:08 Inactive
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 4, 2026 04:31
@jonkwheeler
jonkwheeler marked this pull request as draft August 4, 2026 05:09
jonkwheeler and others added 8 commits August 7, 2026 15:30
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping react-popper coverage.

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

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

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

Co-authored-by: Cursor <[email protected]>
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping react-popper coverage.
Regenerate lockfile hashes and inventory for react-popper.
Resolve inventory and root scripts while keeping react-popper coverage.
Regenerate lockfile hashes and Vitest evidence for react-popper.
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Branch is DIRTY vs main; withdrawing readiness until conflicts are cleared and Bugbot is clean on the new head.

Resolve workspace/catalog/lockfile and parity hash conflicts; keep both
LiveStore and React Popper playground demos.

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

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
…inventory

Add a pristine Jest lane for the 18 vendored cases, port matching adapted
identities, point type lanes at the upstream typings programs, and keep
SSR/hydration/browser projects outside react-parity ownership.

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

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Comment thread vitest.config.js Resolved
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Withdrawing readiness while addressing leonidaz parity threads, restoring merge currency with origin/main, and renaming @octanejs/react-popper → @octanejs/popper.

jonkwheeler and others added 2 commits August 10, 2026 12:40
Restore merge currency; take main lockfile hashes for shared parity
manifests and keep the union of user-apps-v1 train tasks.

Co-authored-by: Cursor <[email protected]>
Rename `@octanejs/react-popper` to `@octanejs/popper`, drop the redundant
Vitest pristine wrapper, inventory real typed-usage assertion groups with
tsconfig program membership, tighten adapted runtime structure controls,
and record the documented type-surface divergences.

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

@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 96a62e9. Configure here.

Comment thread .prettierignore Resolved
jonkwheeler and others added 2 commits August 10, 2026 12:56
Keep the renamed popper binding current with main.
Point .prettierignore at packages/popper/typetests after the package rename
so Prettier cannot rewrite the one-for-one upstream mirrors.

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

Copy link
Copy Markdown
Contributor Author

Maintainer parity threads addressed, package renamed to @octanejs/popper, main merged cleanly, and Bugbot is clean on the current head.

READY FOR REVIEW

jonkwheeler and others added 2 commits August 10, 2026 14:11
Address leonidaz review: public-api.test.ts is Octane-only framework
contract evidence checked via ordinary tsrx-tsc, not the required
popper-adapted-types react-parity lane. Merge origin/main and refresh
sync artifacts.

Co-authored-by: Cursor <[email protected]>
Refresh packages catalog and eval corpus after latest main movement.

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

Copy link
Copy Markdown
Contributor Author

Moved public-api.test.ts out of the required popper-adapted-types react-parity lane into ordinary package typecheck, merged latest origin/main twice, and resolved the leonidaz thread. Bugbot is clean on head 590a3d5e1.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Branch is BEHIND origin/main; withdrawing readiness until update-branch completes and Bugbot is clean on the new head.

@leonidaz

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! This pull request was incorporated into main as commit 89a3b1db918a 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants