mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:42:01 +00:00
Update main of a swap pushed into a main makes the swap a plain nested copy of its own component. It kept the constraints of its old position, such as an authored fixed scroll, without marking them as overrides, so the next sync from its own main would reset them. Mark the constraints group when the old position's constraints differ from the new main's, as orientation already is. The update-main model predicts the same from the swapped head before the update. A fresh-seed JVM library run found this. Its shrunk program fails I4 before the fix and passes unchanged after it. Goldens are unchanged. Full suites ran once on the tree with this fix and the related fixes that follow it. Common passes lint, JVM, JavaScript and formatting: JVM 2059 tests / 33770 assertions; JavaScript 1995 / 32377. All six component properties pass 40 programs each at seed 712 in both runtimes. Full rebuilt frontend passes 1798 / 15737. Backend passes 1838 / 9293; exporter passes 16 / 40; consumer lint and formatting pass. Compare lower-quantile milliseconds with the saved baseline; keep that baseline unchanged. The machine/JVM warning makes ratios rough. No world is flagged. World Baseline Now Ratio Main into 10 copies 1.790 0.895 0.50 Main into 100 copies 15.415 8.623 0.56 Main into 1000 copies 153.086 86.717 0.57 Three nesting levels 35.215 17.928 0.51 Dependency chain 68.931 35.381 0.51 Library update 83.083 43.344 0.52 Many plain shapes 4.837 2.118 0.44 Variant switch 32.052 18.854 0.59 AI-assisted-by: claude-opus-5-5