mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
The random histories edited a grid's direction and its cells, but never its rows and columns. The grid programs build worlds whose first component is a grid, with copies in grids, and add a track edit: add, remove, resize or reorder a row or column, or merge a cell into an area, through the production grid functions the frontend's track editor calls. A main edits all of them; a copy only resizes its tracks, so the edits that move cells reach copies through sync from their main. The model takes the tracks an edit asks for and the default tracks a grid grows after them to hold children that lose their cells. When a copy's inherited tracks shrink, the cells it authors move, shorten or join as the contract keeps them (move into a free slot, else into one track, else into the cell where they would start). Test: random-grid-compositions; 200 programs pass. Focused only; the full common suite runs at the end of this series. Harness only; the benchmark is not run. AI-assisted-by: claude-opus-5-5