Skip to content

Preserve inferred grid visual placement#613

Merged
chubes4 merged 1 commit into
trunkfrom
fix/figma-inferred-grid-visual-order
Jul 16, 2026
Merged

Preserve inferred grid visual placement#613
chubes4 merged 1 commit into
trunkfrom
fix/figma-inferred-grid-visual-order

Conversation

@chubes4

@chubes4 chubes4 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Order inferred flow children by stable source geometry and preserve source-relative placement for inferred freeform grids.

What changed

  • Added stable inferred grid/row child ordering while preserving declared auto-layout and layered children.
  • Added bounded residual grid-item margins for inferred freeform grids whose asymmetric source geometry cannot be represented by equal CSS tracks.
  • Added contracts for visual order, stable ties, explicit auto-layout, absolute/decorative exclusions, source insets, and unequal item placement.

How to test

  1. Run cd figma-transformer && composer test; expect Contract suite passes.
  2. Run git diff --check; expect No whitespace errors are reported.

Compatibility

Backwards compatibility: declared Figma auto-layout, non-inferred containers, and absolute/decorative/layered child behavior are unchanged.

Evidence

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode
  • Model: openai/gpt-5.6-sol
  • Used for: Recovered the Homeboy candidate, diagnosed its real-fixture gap, implemented the bounded geometry correction and contracts, and verified the fixture matrix with Chris.

Source relationships

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Figma transformer parity from three-file matrix

1 participant