openpencil/tests
xemc 783cdf9dbc fix(fig): component property definitions/references/assignments never survive a save/reload round trip
parseGuidOrNull requires the strict Figma GUID shape (sessionID:localID),
but every OpenPencil code path that creates a component property definition
uses `prop:<hex>` IDs, which never match. applyComponentMetadata silently
dropped componentPropDefs/componentPropRefs/componentPropAssignments/
variantPropSpecs whenever any entry failed that check, so any component
property created by the app (as opposed to imported straight from a real
Figma file) vanished on the very next save.

Mint a stable synthetic GUID for non-Figma-shaped property IDs instead of
dropping them, memoized per export so defs/refs/assignments/variantPropSpecs
pointing at the same property stay consistent. Also fix INSTANCE_SWAP
default/preferred/assignment values, which reference target node IDs and
had the same GUID-shape assumption, and were never being resolved back to
real node IDs on import in the first place (remapComponentIds only handled
instance.componentId, not these fields).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-18 08:10:11 +10:00
..
e2e fix(text): align editing overlays with vertical text (#543) 2026-08-17 19:32:40 +03:00
engine fix(fig): component property definitions/references/assignments never survive a save/reload round trip 2026-08-18 08:10:11 +10:00
figma style: tighten import grouping 2026-05-06 02:22:08 +03:00
fixtures feat(fig): support text on path 2026-08-17 12:00:01 +03:00
helpers feat(fig): support text on path 2026-08-17 12:00:01 +03:00