mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 17:50:38 +00:00
When sync or a switch takes a text's family from one side and its weight from the other, a run that shows the same weight and style takes the variant id of the family's side, which names a variant of that family. A copy that changed a bold text to Roboto kept the main's "bold" after a sync instead of Roboto's "700", so a second sync was no longer a no-op. Runs with another weight keep the weight's variant for the frontend to fix. The golden master is recorded again: its Roboto copy texts now hold Roboto's "700", and update-main carries it to the main. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+-------+-------| | deepest-edit-through-three-levels | 35.215 | 19.955 | 0.57 | | edit-through-a-chain-of-dependents | 68.931 | 39.875 | 0.58 | | library-update-into-copies | 83.083 | 45.419 | 0.55 | | main-edit-among-many-shapes | 4.837 | 2.323 | 0.48 | | main-edit-into-10-copies | 1.79 | 1.037 | 0.58 | | main-edit-into-100-copies | 15.415 | 9.335 | 0.61 | | main-edit-into-1000-copies | 153.086 | 97.201 | 0.63 | | variant-switch-into-copies | 32.052 | 24.822 | 0.77 | AI-assisted-by: claude-opus-5-5