mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 17:50:38 +00:00
The variant programs now also make sets: transform a component into a variant set (kind make-variant) and combine two components as variants (kind combine), each paired with a switch. The pure runner runs both actions through their common generators with what the frontend events do after them: the reflow of the new board's layout, and a combined board sized 30 px past its mains on each side. Each must leave the components it names as members of one new set in the board, with the same property names; a transform adds a member with a value of its own. The library editor of the stale library programs edits its variant sets too: property edits, added variants, transforms and combines, followed by a library sync and a switch in the consuming file. Their requested results are checked on the library, and an added member takes on the model of the main it duplicates. The test of undoing a library variant a consumer switched to belongs to the previous commit's fix. The stale library programs must cover only the library steps and the operations they are tested with, as the variant programs do; the structure and swap programs cover the rest. A frontend step also waits briefly for an undo transaction its events close on a later tick, as combining variants does, and the golden master transcripts record the components a variant action makes. Harness only; the benchmark is not run. AI-assisted-by: claude-opus-5-5