Repository navigation
feat(embla-carousel): port React binding - #483
jonkwheeler wants to merge 48 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
LFG run report
The PR is mergeable, but the strict babysit gate remains UNSTABLE solely because of the label-workflow residual. |
9628bbe to
a9f4b28
Compare
|
READY FOR REVIEW |
|
Branch is behind main — withdrawing prior ready signal before currency update. REVIEW WITHDRAWN |
|
Currency pass complete: updated via READY FOR REVIEW |
|
Branch updated onto latest main via READY FOR REVIEW |
|
Merge conflicts with main; restoring currency before re-checking readiness. REVIEW WITHDRAWN |
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
Merged origin/main, regenerated catalogs, and Bugbot completed on the current head with no unresolved findings. READY FOR REVIEW |
|
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]>
|
Merged origin/main (Version Packages #682), resolved catalog/evals conflicts via pnpm sync, and Cursor Bugbot completed on head READY FOR REVIEW |
|
Main moved after the prior currency pass; withdrawing ready signal before update-branch. REVIEW WITHDRAWN |
|
Currency pass complete: updated branch onto current main via READY FOR REVIEW |
|
Thank you for your contribution! This pull request was incorporated into |
Summary
Octane applications can now replace
embla-carousel-reactwith@octanejs/embla-carouselwhile keeping the familiaruseEmblaCarousel(options, plugins)API, including option/plugin updates, cleanup, SSR, and hydration behavior.The adapter keeps carousel mechanics in the upstream
embla-carouselcore 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:checkpnpm typecheckpnpm testpnpm --filter @octanejs/embla-carousel typecheckpnpm 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 passedpnpm bindings:parity:validate-manifestspnpm bindings:parity:check— current at 5,345 stable and 5,413 canary cases/docs/bindingsbrowser QA — one correctly linked Embla entry and no console warnings or errorsRisk / 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
agent-authored)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]: defaultuseEmblaCarousel, tuple/ref types,globalOptions, and unchangedembla-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), rootbindings: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.mjsdiscovery fortestExecution.group: heavy-browser.react_parity_checksinstalls 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.