Skip to content

feat(embla-carousel): port React binding - #483

Closed
jonkwheeler wants to merge 48 commits into
octanejs:mainfrom
jonkwheeler:jon/embla-carousel-binding
Closed

jonkwheeler wants to merge 48 commits into
octanejs:mainfrom
jonkwheeler:jon/embla-carousel-binding

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Octane applications can now replace embla-carousel-react with @octanejs/embla-carousel while keeping the familiar useEmblaCarousel(options, plugins) API, including option/plugin updates, cleanup, SSR, and hydration behavior.

The adapter keeps carousel mechanics in the upstream embla-carousel core and limits the port to React-facing lifecycle integration. Pinned upstream source, license provenance, runtime/type inventories, negative controls, and differential evidence make the claimed parity surface auditable.

Session-settled decisions carried from planning: preserve the upstream API (user-directed); ship one binding per PR (user-directed); reuse the framework-neutral Embla core (user-approved); and follow the latest repository port and parity guidance (user-directed).

Validation

  • pnpm format:check
  • pnpm typecheck
  • pnpm test
  • targeted tests:
    • pnpm --filter @octanejs/embla-carousel typecheck
    • pnpm exec vitest run --config vitest.config.js --project embla-carousel-conformance --project embla-carousel-differential --project embla-carousel-reactive-utils --project embla-carousel-ssr --project embla-carousel-hydration --project embla-carousel-parity-audit --project embla-carousel-browser — 7 files, 21 tests passed
    • pnpm bindings:parity:validate-manifests
    • pnpm bindings:parity:check — current at 5,345 stable and 5,413 canary cases
    • generated bindings status, parity gaps, package inventory, CLI data, changeset, and eval-corpus checks
    • manual /docs/bindings browser QA — one correctly linked Embla entry and no console warnings or errors

Risk / follow-ups

The binding is alpha and intentionally mirrors [email protected]. Its required Chromium lane exercises real layout, scrolling, selection, and destroy behavior; future upstream adapter changes should update the pinned parity evidence before expanding the supported surface.

Provenance

  • An agent produced this diff (agent-authored)

Compound Engineering


Note

Medium Risk
Large new binding surface with CI routing changes for browser tests; risk is mainly regression in parity/heavy-browser discovery and carousel lifecycle edge cases, not security-sensitive code.

Overview
Adds @octanejs/embla-carousel, an Octane drop-in for [email protected]: default useEmblaCarousel, tuple/ref types, globalOptions, and unchanged embla-carousel / reactive-utils behavior. The adapter wires viewport refs, option/plugin equality, SSR no-construction, and destroy/reinit lifecycle through Octane hooks.

Parity and tests include a pinned React differential lane, vendored pristine reactive-utils suite, paired type matrices, conformance/SSR/hydration tests, parity negative controls, and a Chromium heavy-browser harness for real scroll/cleanup (not jsdom).

Repo integration: patch changeset, binding counts and status/inventory/CLI migration (embla-carousel-react → @octanejs/embla-carousel), root bindings:typecheck, and an implementation plan doc.

CI: drops hardcoded per-package browser paths from sharded tests; the browser heavy-integration lane uses scripts/run-heavy-browser.mjs discovery for testExecution.group: heavy-browser. react_parity_checks installs Playwright Chromium for parity browser oracles; lint’s parity step is validate-only (no browser launch there).

Reviewed by Cursor Bugbot for commit 72d75f4. 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 12:21am
octane-website-mcp Ready Ready Preview Aug 3, 2026 12:21am

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 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 09:51 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 09:52 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 10:06 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 10:07 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 10:17 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 10:18 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 10:36 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 10:36 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 10:54 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 10:55 Inactive
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

LFG run report

  • Head: 9628bbe4
  • Substantive CI: green. The full CI workflow passed, including all Node 22/24 shards, lint/static checks, React parity audit, required Chromium browser evidence, SSR/hydration coverage, package builds, typechecks, examples, compatibility, website/MCP integration, and provenance.
  • Review: no unresolved review threads; automated review completed without findings.
  • Residual: the separate Label PR / apply labels workflow fails because its repository GITHUB_TOKEN cannot mutate/draft this fork PR (Resource not accessible by integration). This is repository-side and unrelated to the binding implementation.
  • Tracker: binding.embla-carousel-react remains In review until the PR is merged.

The PR is mergeable, but the strict babysit gate remains UNSTABLE solely because of the label-workflow residual.

@jonkwheeler
jonkwheeler force-pushed the jon/embla-carousel-binding branch from 9628bbe to a9f4b28 Compare August 3, 2026 00:07
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 00:07 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 00:08 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 00:12 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 00:13 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 00:20 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 00:21 Inactive
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 01:47
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is behind main — withdrawing prior ready signal before currency update.

REVIEW WITHDRAWN

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency pass complete: updated via gh pr update-branch, then merged later origin/main (DIRTY after main moved), regenerated catalogs with pnpm sync. Merge state CLEAN, no unresolved threads, Cursor Bugbot SUCCESS on current head.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch updated onto latest main via gh pr update-branch. Cursor Bugbot completed successfully on the new head with no unresolved findings; merge state is CLEAN.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merge conflicts with main; restoring currency before re-checking readiness.

REVIEW WITHDRAWN

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merged origin/main, regenerated catalogs, and Bugbot completed on the current head with no unresolved findings.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Main moved again after the prior merge; restoring currency before re-checking readiness.

REVIEW WITHDRAWN

Merge Version Packages (octanejs#682) from main and refresh generated
docs/packages.md and evals manifest via pnpm sync.

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

Copy link
Copy Markdown
Contributor Author

Merged origin/main (Version Packages #682), resolved catalog/evals conflicts via pnpm sync, and Cursor Bugbot completed on head af66bf723 with no open findings. Merge state is CLEAN.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Main moved after the prior currency pass; withdrawing ready signal before update-branch.

REVIEW WITHDRAWN

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency pass complete: updated branch onto current main via gh pr update-branch. Merge state CLEAN, no unresolved threads, Cursor Bugbot SUCCESS on head 72d75f470.

READY FOR REVIEW

@leonidaz

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! This pull request was incorporated into main as commit 6edc561f70c3 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 READY FOR REVIEW REVIEW COMPLETE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants