mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 22:10:34 +00:00
duplicate-variant calls generate-make-shapes-variant before it moves the new shape into the target container. When a variant is pasted into a different variant container, the new shape already has the target container's data but still sits in the old one, so the validation in generate-make-shapes-variant reported errors on valid data. Pass :skip-validation? to generate-make-shapes-variant, and validate the target container once the shape is inside it. That also covers the pasted shape, which the closing validation of generate-duplicate-changes missed. Add tests for pasting a variant into another container and for duplicating it inside the same container. AI-assisted-by: claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>