mirror of
https://github.com/penpot/penpot.git
synced 2026-11-22 10:20:51 +00:00
A copy text that overrides a typography unit, such as its font family, drops a typography its main applies, without a typography override. When update main pushes that text into the main, it keeps the same reference, yet the push authored the missing reference as a typography override. The pushed text now leaves out the typography group when its own text overrides drop the reference; a typography that differs on its own is still authored. Tests: pushing-a-text-authors-no-typography-its-own-styles-drop and the regression program updating-a-main-from-a-switched-copy-keeps-the-text-overrides-it-pushes. Full common suite: 2348 tests, 1 failure, the known 20-program coverage flake (library-redo reached by one program; the property passes). Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+--------+---------+--------| | deepest-edit-through-three-levels | 35.215 | 19.02 | 19.838 | 0.54 | | edit-through-a-chain-of-dependents | 68.931 | 37.452 | 39.34 | 0.54 | | library-update-into-copies | 83.083 | 45.852 | 48.286 | 0.55 | | main-edit-among-many-shapes | 4.837 | 1.893 | 2.076 | 0.39 | | main-edit-into-10-copies | 1.79 | 1.068 | 1.092 | 0.6 | | main-edit-into-100-copies | 15.415 | 10.287 | 10.57 | 0.67 | | main-edit-into-1000-copies | 153.086 | 97.173 | 105.333 | 0.63 | | variant-switch-into-copies | 32.052 | 20.618 | 21.363 | 0.64 | AI-assisted-by: claude-opus-5-5