Repository navigation
feat(react-dropzone): add exact binding - #530
jonkwheeler wants to merge 34 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Address PR review feedback (octanejs#530) - distinguish compiled block children from public render props - strip the compiler slot from optional useDropzone arguments - preserve exact public declarations and refresh executable evidence
Address PR review feedback (octanejs#530) - distinguish compiled block children from public render props - strip the compiler slot from optional useDropzone arguments - preserve exact public declarations and refresh executable evidence
475b2bf to
e4a9c8c
Compare
Resolve inventory, eval manifest, hook-form parity lockfile, and root package scripts while keeping react-dropzone coverage. Co-authored-by: Cursor <[email protected]>
Update vitest evidence hashes, lockfile integrity, and regenerate binding inventory including website/public/llms.txt. Co-authored-by: Cursor <[email protected]>
|
Merged latest main (conflicts in READY FOR REVIEW |
leonidaz
left a comment
There was a problem hiding this comment.
Reviewed for React-parity and Vitest conformance only.
) Declare testExecution ownership and separate differential/browser projects so adapted-dom inventories only count one-for-one upstream adaptations, while ordinary shards keep Octane-only probes. Co-authored-by: Cursor <[email protected]>
|
Parity project ownership and adapted-dom inventory split landed; branch is current with main and Bugbot is clean on this head. READY FOR REVIEW |
Keep browser and SSR probes in ordinary shards and drop the adapted-server and browser react-parity lanes until they have a React oracle. Co-authored-by: Cursor <[email protected]>
|
Review feedback addressed (Octane-only browser/SSR probes demoted from react-parity) and branch updated to main. READY FOR REVIEW |
Keep block-children/compiler-slot contracts in ordinary probes and observe post-blur focus state before the differential keyboard/click checks. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
Addressed leonidaz feedback (Octane-only cases moved to ordinary probes; post-blur differential checkpoint), merged origin/main through the parity-rollup conflicts, and Bugbot is clear on the current head with no unresolved threads. READY FOR REVIEW |
leonidaz
left a comment
There was a problem hiding this comment.
React-parity/Vitest re-review only; no tests were run. Four conformance gaps remain on the current head.
| "environment": "workspace-node", | ||
| "project": "react-dropzone", | ||
| "evidenceOrigin": "upstream-suite", | ||
| "notes": "Runs the one-for-one Octane adaptation of upstream DOM cases.", |
There was a problem hiding this comment.
This is still not a one-for-one adapted upstream suite. The pristine lane inventories 218 cases, while adapted-dom.json contains 91; test-classifications.json title-matches only 68 and assigns the other 150 upstream identities to pristine-oracle-plus-contract, whose generic rationale points at aggregate contracts/differentials instead of preserving each upstream scenario and assertions. Existing upstream cases cannot be replaced by bounded supplementary coverage. Adapt every applicable case one-for-one and explicitly classify only genuine incompatibilities/not-applicable cases with specific evidence.
There was a problem hiding this comment.
Adapt every applicable case one-for-one and explicitly classify only genuine incompatibilities/not-applicable cases with specific evidence.
Agreed — this is still open. Current title-match coverage is essentially the utils table (68/70); all 148 index.spec.tsx identities remain under the generic pristine-oracle-plus-contract disposition, and the U3/U4 adapted files are aggregate contracts rather than one-for-one upstream identities. Completing that adaptation (or per-case N/A with specific evidence) is required before READY. Leaving this thread open.
Decision context for maintainers/agents:
- (a) Keep this PR draft until all remaining applicable
index.spec.tsxcases are adapted one-for-one — lean. - (b) Explicitly diverge/N/A individual cases with specific per-case evidence where Octane cannot host them, then adapt the rest.
- Not signaling READY while this gap remains.
| ] | ||
| }, | ||
| { | ||
| "id": "react-dropzone-adapted-types", |
There was a problem hiding this comment.
These required type lanes are paired only by filename and whole-file hashes. The adapted files are substantially re-authored (for example, upstream accept.tsx is a 71-line component program while the adapted file is an 11-line assignability probe), and verifyReactDropzoneEvidence never extracts or compares assertion groups, checks allowed transformations structurally, or exercises deleted/skipped/removed-@ts-expect-error controls. Add executable one-for-one structural mapping and negative controls before counting the nine adapted programs as upstream type parity.
There was a problem hiding this comment.
Add executable one-for-one structural mapping and negative controls before counting the nine adapted programs as upstream type parity.
Agreed — still open. Filename/hash pairing remains; the adapted programs are still substantially re-authored assignability probes versus upstream’s component programs, and verifyReactDropzoneEvidence does not yet extract assertion groups or enforce permitted structural transforms / negative controls. Leaving this thread open and not signaling READY until that gate exists and the adapted programs satisfy it.
Decision context:
- (a) Rewrite each adapted type program as a permitted structural transform of its upstream counterpart, then inventory assertion groups + negative controls — lean.
- (b) Stop claiming upstream-suite type evidence for these nine until (a) lands.
Discover and disposition every port-authored runtime/type root instead of only the adapted-dom trio, and keep the inventory wrapper out of the byte-exact pristine vitest-full selection so it actually executes. Co-authored-by: Cursor <[email protected]>
|
Thank you for your contribution! This pull request was incorporated into |
Summary
Octane applications can now replace
[email protected]with@octanejs/react-dropzonewhile keeping the default component,useDropzone,ErrorCode, all 13 public types, package conditions, and observable file-acquisition behavior. The port preserves root/input prop getters, refs and imperativeopen, validation, drag/drop, paste, input and File System Access acquisition, async supersession, SSR, streaming, hydration, and cleanup.Parity is executable and fail-closed: all 218 canonical React runtime cases and nine upstream type programs are accounted for, with 109 adapted/differential/server/browser evidence cases and mutation controls that fail on missing or stale evidence. Packed-consumer validation also proves the authored package across CJS, ESM, NodeNext, Bundler, Vite client/server, SSR, package metadata, direct dependencies, singleton Octane, and absence of React.
Validation
pnpm format:checkpnpm typecheckpnpm testRisk / follow-ups
The binding maps React's component/ref mechanics to Octane refs-as-props and authored TSRX while preserving the public API and observed acquisition contract. Browser-only behavior remains protected by real Chromium journeys, and all acquisition fixtures are local—no production network or credential-bearing input is used.
Provenance
agent-authored)Note
Medium Risk
Large new surface area around file input, drag/drop, and async validation, but behavior is pinned to upstream with fail-closed parity lanes and no core Octane runtime changes in this diff.
Overview
Introduces
@octanejs/react-dropzone(0.1.20) as an exact mapped binding to[email protected]: defaultDropzone,useDropzone,ErrorCode, all 13 public types, and roottypes/import/requireplus./package.jsonexports. Runtime is authored as Octane TSRX (src/index.tsrx+ framework-neutralsrc/utils/index.ts) while preserving upstream file-acquisition behavior (click/drop/paste, validation, async supersession, File System Access branches, SSR/hydration).Evidence and CI add vendored npm/canonical upstream trees, hashed inventories (
audit/npm-files.json, runtime/type inventories),audit/react-parity.jsonlanes (218 pristine React runtime cases, adapted DOM suite, pristine/adapted type programs, React-vs-Octane differential tests), plus Vitest projects wired invitest.config.jsand sharedscripts/react-parity/*hooks. Rootprebindings:typecheckruns the new package typecheck before bindings status generation.Docs and release: patch changeset, binding plan (
docs/plans/2026-08-02-001-feat-react-dropzone-binding-plan.md), updates todocs/bindings-status.md,docs/binding-parity-gaps.md,packages/clioctane-data, README/UPSTREAM/LICENSE, and provenance generatoraudit/generate-u1-inventories.mjs.Reviewed by Cursor Bugbot for commit 9852cd9. Bugbot is set up for automated code reviews on this repo. Configure here.