Skip to content

feat(react-colorful): add exact Octane binding - #557

Closed
jonkwheeler wants to merge 30 commits into
octanejs:mainfrom
jonkwheeler:jon/react-colorful-binding
Closed

jonkwheeler wants to merge 30 commits into
octanejs:mainfrom
jonkwheeler:jon/react-colorful-binding

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Octane applications can now replace [email protected] with an exact @octanejs/react-colorful binding covering all 14 picker variants, HexColorInput, setNonce, and the six public color types.
  • The port preserves controlled updates, mouse/touch/keyboard interaction, onChangeEnd, ARIA state, CSP nonces, closest-root styles, SSR, and hydration without a React runtime dependency.

Why

  • react-colorful is a popular package-level migration blocker. This keeps its current public root contract and observable behavior instead of offering a merely similar color picker.
  • A fail-closed parity inventory pins both source and published declarations, and maps every upstream test identity to executable Octane evidence.

Changes

  • Adds @octanejs/react-colorful, provenance and license records, status metadata, a changeset, generated catalogs, CLI/MCP lookup support, and an interactive playground example.
  • Adds adapted runtime, pristine/adapted type, React differential, SSR, hydration, Chromium, and Firefox lanes.
  • Adds real-browser evidence for geometry, mouse, touch, multitouch, emulated-mouse suppression, keyboard input, focus, CSP, ShadowRoot, and iframe document ownership.

Session-settled decisions carried from planning: one binding per isolated draft PR (user-directed, over multi-binding batches); exact React public-contract parity (user-approved, over similar-but-different APIs); agent-authored PRs remain draft for maintainer promotion (user-directed, over agent readiness promotion).

Validation

  • pnpm format:check (targeted changed-file formatting and git diff --check passed; repo-wide formatting was not rerun)
  • pnpm typecheck (package source, pristine React declarations, and adapted Octane public types passed; repo-wide typecheck was not rerun)
  • pnpm test (targeted package, MCP, global React-parity, and playground gates passed; repo-wide test was not rerun)
  • package lanes: 6 files, 45 runtime/differential/SSR/hydration tests
  • browser parity: Chromium 1/1 and Firefox 1/1, with multiple interaction and ownership dimensions per engine
  • upstream audit: 72 pinned artifacts, all 64 upstream test identities, and 5 fail-closed mutation controls
  • type parity: pristine published declarations plus complete adapted root API with positive and negative assertions
  • React parity harness: package manifest and repository-wide audit passed
  • integration: 37 MCP tests, current binding/package/CLI inventories, and playground production build with 8,471 modules
  • packaging: package tarball contains the complete source contract, docs, provenance, and license

Risk / follow-ups

  • Browser evidence covers Chromium and Firefox desktop engines; it does not claim physical-device or mobile-WebKit parity.
  • Keep this PR draft through Cursor/Bugbot and human feedback. Green checks alone are not a readiness signal.

Provenance

  • An agent produced this diff (agent-authored)

Compound Engineering


Note

Medium Risk
Large new interactive UI surface (pointer/touch/keyboard, styles in document/iframe/Shadow DOM) with broad test coverage but non-trivial regression risk if parity gates drift; no auth or data-layer impact.

Overview
Introduces @octanejs/colorful, a new Octane binding aimed at drop-in replacement of [email protected]. The package re-exports all 14 picker variants, HexColorInput, setNonce, and the six public color types from .tsrx components and shared hooks, with closest-root stylesheet injection and CSP nonce support preserved from upstream.

Parity and repo integration: Vendored upstream audit inputs, react-parity.json lanes (pristine Jest, adapted Vitest, differential, type probes), fail-closed upstream-inventory, SSR/hydration/browser tests, and a documented divergence for native DOM event types on host props (public onChange callbacks unchanged). Generated inventories, binding status docs, CLI react-colorful → @octanejs/colorful mapping, changeset, and an implementation plan are updated so the monorepo counts 61 framework bindings.

Reviewed by Cursor Bugbot for commit 1160eee. 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:01am
octane-website-mcp Ready Ready Preview Aug 4, 2026 4:01am

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:10 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 4, 2026 03:11 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 4, 2026 04:01 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 4, 2026 04:01 Inactive
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 4, 2026 04:32
@jonkwheeler
jonkwheeler marked this pull request as draft August 4, 2026 05:09
jonkwheeler and others added 4 commits August 7, 2026 15:30
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping react-colorful coverage.

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

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

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

Co-authored-by: Cursor <[email protected]>
domgan-oai and others added 5 commits August 7, 2026 23:06
* perf: skip unchanged conditional keyed rows

* fix: exclude Activity boundaries from keyed row memoization
Compose the host ref with the internal stylesheet nodeRef so public root refs still attach.

Co-authored-by: Cursor <[email protected]>
@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

… args

Omit optional handlers can bind Octane's withSlot Symbol; clear it before storing or forwarding callbacks.

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

Copy link
Copy Markdown
Contributor Author

Addressed Bugbot trailing-slot finding on useEventCallback / useColorManipulation (head 8f9197b6f).

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Comment thread packages/react-colorful/UPSTREAM.md Resolved
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

jonkwheeler and others added 3 commits August 10, 2026 12:38
Restore merge currency for PR octanejs#557; lockfile SHA conflicts take main and will be regenerated after package work.

Co-authored-by: Cursor <[email protected]>
Rename @octanejs/react-colorful to @octanejs/colorful, execute the React
public probe lane, verify compiler-program membership from parsed
tsconfigs, classify every authored runtime/type test exactly once, and
pin adapted case-body digests so title-only evidence cannot stay green.

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

Copy link
Copy Markdown
Contributor Author

Renamed to @octanejs/colorful, closed the four leonidaz parity threads, merged main, Bugbot clean on current head.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Restore branch currency after main moved; resolve react-parity digest
and eval manifest conflicts via pnpm sync.

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

Copy link
Copy Markdown
Contributor Author

Merged origin/main for branch currency; react-parity digest and eval manifest conflicts resolved via pnpm sync. Bugbot clean on head 39be7f885.

READY FOR REVIEW

Refresh packages.md and evals manifest via pnpm sync after Version Packages (octanejs#682).

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

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

@leonidaz

Copy link
Copy Markdown
Collaborator

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