mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
apply-changes-local replays the pending redo changes on a local copy of the data, so that later builder calls can read up-to-date values. It replayed :validate-shapes too, so the validator ran on that copy, which has no real file id and no libraries. Any chain of two generators that apply local changes then failed with false errors, such as :component-not-found. Skip :validate-shapes when applying changes locally. Add the variant container to the shapes that generate-update-property-name and generate-remove-property validate. Validating only the main instances misses errors that only the container check finds, such as siblings with different property names. Register variant-properties-test in the runner so that it runs on JS, where validation takes place. Add tests that corrupt a main instance or the container and expect a validation error. Remove two debug prn calls from the validator. AI-assisted-by: claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>