Skip to content

Add schema-driven page clone normalization#718

Draft
jjpaulino wants to merge 2 commits intomasterfrom
jordan/page-clone-schema-normalization-8dd1
Draft

Add schema-driven page clone normalization#718
jjpaulino wants to merge 2 commits intomasterfrom
jordan/page-clone-schema-normalization-8dd1

Conversation

@jjpaulino
Copy link
Copy Markdown
Member

@jjpaulino jjpaulino commented Apr 9, 2026

Summary

  • normalize cloned component instance data in pages.create using _resetOnPageClone and _omitOnPageClone
  • warn when a schema configures the same field in both clone directives while still letting omit win
  • add unit tests and document the new schema keys in the schema introduction docs

Testing

  • ./node_modules/.bin/eslint lib/services/pages.js lib/services/pages.test.js lib/utils/page-clone.js lib/utils/page-clone.test.js
  • ./node_modules/.bin/mocha lib/services/pages.test.js lib/utils/page-clone.test.js

Slack Thread

Open in Web Open in Cursor 

cursoragent and others added 2 commits April 9, 2026 16:18
Co-authored-by: Jordan Paulino <jjpaulino@users.noreply.github.com>
Co-authored-by: Jordan Paulino <jjpaulino@users.noreply.github.com>
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