mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A copy grid with its own cells that lost the row its main removed, and grew one back to hold its children, fitted its cells into the fewer tracks first. Its authored empty cell (`align-self :end` at row 2, column 2) was merged into an occupied one and lost (F594). User decision: the cell keeps its place. `assign-inherited-grid-cells` now grows the track lists its children need before fitting the cells (`grow-for-children`), so a grid that grows back the tracks it lost keeps its cells where they were. Only the track lists grow; the cells it holds keep their places. Found by a fresh gate round (seed 20261117, grid property). Test: generated `generated-a-copy-grid-keeps-an-authored-empty-cell-where-it-was-when-it-grows-back` (JVM and frontend replay). Benchmark (bench-components, alone): | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+---------+---------+--------| | deepest-edit-through-three-levels | 35.215 | 21.906 | 23.299 | 0.62 | | edit-through-a-chain-of-dependents | 68.931 | 46.008 | 46.834 | 0.67 | | library-update-into-copies | 83.083 | 53.933 | 55.436 | 0.65 | | main-edit-among-many-shapes | 4.837 | 2.497 | 2.639 | 0.52 | | main-edit-into-10-copies | 1.79 | 1.185 | 1.228 | 0.66 | | main-edit-into-100-copies | 15.415 | 11.262 | 11.561 | 0.73 | | main-edit-into-1000-copies | 153.086 | 108.966 | 112.568 | 0.71 | | variant-switch-into-copies | 32.052 | 23.931 | 24.195 | 0.75 | AI-assisted-by: claude-opus-5-5