mirror of
https://github.com/penpot/penpot.git
synced 2026-10-30 14:30:37 +00:00
When generate-relocate moves a variant inside a component, the variant is no longer a root, so relocate left it out and validated nothing in its place. Validate the root of the enclosing component instead. The workspace does not allow this move, but relocate can be called directly. Document that the default call of generate-make-shapes-no-variant requires the shapes to be outside their variant container. Add tests for moving a variant into another container, and into a component with a corrupted root. AI-assisted-by: claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>