mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 22:10:34 +00:00
generate-make-shapes-no-variant now validates the shapes and their old variant containers, and accepts a :skip-validation? option. generate-relocate calls it before moving the shapes, while they are still inside the container. Validating the container at that point reported :main-instance-not-a-variant on valid data. Relocate now passes :skip-validation? and validates at the end: the old and new variant containers, and the moved variants when they end up outside any component. Inside a component they are no longer roots, and the validator can't check them on their own. Add tests for the function and for moving a variant out of its container, with valid and corrupted data. AI-assisted-by: claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>