mirror of
https://github.com/penpot/penpot.git
synced 2026-11-26 21:00:32 +00:00
Validation compared each variant's property names with the first child of its board, so it missed forbidden characters, too-long text and repeated names, and never checked labels in deleted components. Repair cut every variant down to the first child's names, which dropped values, and left the file invalid. Validation now checks the members of each board as one set: cleaned text, and the same names in the same order, in layers-panel order as in migration 0038. Repeated value combinations stay valid, as the editor allows them. It also checks boards that exist only in a component's objects, variant components that belong to no board, and the whole board when a save touches only one of its members. Repair writes the aligned properties and labels on each component and its main. A live variant main outside its board is reported as :variant-main-outside-board and detached, as the editor does, instead of turning its parent into a board. :main-instance-not-a-variant now repairs the main of a deleted component inside its objects. Moving a shape or component into a board now cuts property values taken from its name or path to 60 characters, as the schema requires. Closes #13238 AI-assisted-by: claude-opus-5-5