Skip to content

refactor: establish Observers folder feature - #331

Merged
jderochervlk merged 1 commit into
codex/option5-svg-folderfrom
codex/option5-observers-folder
Aug 7, 2026
Merged

refactor: establish Observers folder feature#331
jderochervlk merged 1 commit into
codex/option5-svg-folderfrom
codex/option5-observers-folder

Conversation

@jderochervlk

@jderochervlk jderochervlk commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Tracking issue: #342

Stack context

Part 21 of the Option 5 folder-feature stack.

Review this PR as the incremental diff against #330.

Summary

  • add the target src/observers folder on the unqualified internal Observers feature
  • consolidate Intersection Observer, Mutation Observer, and Resize Observer bindings
  • add the supported WebAPI.Observers -> WebAPI.DOMNodes + WebAPI.Geometry + Observers feature
  • preserve the four existing flat observer interface modules
  • localize the instanceof Document check in IntersectionObserverRoot so the observer feature does not depend on the broad legacy Document module

Dependency note

IntersectionObserverRoot previously imported Document only for its runtime type check. Its public type already uses foundational DOM.document; keeping the check local removes an otherwise unnecessary dependency on the still-broad Document interface without changing the decoded result.

Temporary state

  • Document remains in the legacy DOM folder until the later Window/document integration layer
  • the legacy broad WebAPI.DOM source entry remains until its remaining interfaces have been assigned
  • final feature-graph guardrails and cleanup remain deferred until the stack is complete

Review focus

  • observer domain membership
  • the DOMNodes/Geometry dependency closure
  • the localized Document runtime check

Verification

  • node_modules/.bin/rescript clean
  • node_modules/.bin/rescript build --prod --features DOM,Event,DOMPlatform,Animation,CSSOM,Geometry,DOMNodes,Observers
  • npm run build
  • npm test
  • npm run format:check
  • git diff --check

Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: b0306322c9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from b030632 to f91f011 Compare August 4, 2026 17:31
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from f91f011 to 0c87595 Compare August 5, 2026 12:14
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from 0c87595 to 385f886 Compare August 5, 2026 12:31
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from 385f886 to 7e8349d Compare August 5, 2026 12:34
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch 2 times, most recently from d8ad5a7 to f8cd585 Compare August 5, 2026 13:57
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from f8cd585 to 7aa2592 Compare August 5, 2026 14:00
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch 2 times, most recently from 506b86e to bfd7397 Compare August 5, 2026 14:50
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from bfd7397 to ddc2b1c Compare August 5, 2026 15:09
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from ddc2b1c to 93d725d Compare August 5, 2026 15:45
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from 93d725d to e09a357 Compare August 5, 2026 17:40
@jderochervlk
jderochervlk requested review from brnrdog and tsnobip August 6, 2026 14:45
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from e09a357 to 69d080e Compare August 6, 2026 14:52
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from f14e293 to 7c09788 Compare August 7, 2026 13:45
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from 7c09788 to 15ab4ae Compare August 7, 2026 13:45
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from 15ab4ae to 67ad2b8 Compare August 7, 2026 13:50
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from 67ad2b8 to f23e04a Compare August 7, 2026 13:54
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from f23e04a to 64cad8f Compare August 7, 2026 13:56
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from 64cad8f to 5a1934c Compare August 7, 2026 13:57
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from 5a1934c to 7f584f2 Compare August 7, 2026 13:58
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch 2 times, most recently from 39337bc to 77d372a Compare August 7, 2026 14:00
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from 77d372a to 3137b88 Compare August 7, 2026 14:00
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from 3137b88 to cecd694 Compare August 7, 2026 14:03
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from cecd694 to f1ea416 Compare August 7, 2026 14:04
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from f1ea416 to 46285db Compare August 7, 2026 14:04
@jderochervlk
jderochervlk force-pushed the codex/option5-observers-folder branch from 46285db to c4753d5 Compare August 7, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants