Add DOM-box quality metrics for Figma HTML artifacts#571
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dom-box-quality.jsonbeside captureddom-boxes.jsonduring.fig -> HTMLmatrix runs and roll DOM metrics into fixture/matrix readiness totals.data-figma-node-idboxes can be diagnosed.Metrics added
dom_horizontal_overflow_countdom_viewport_width_leak_countdom_huge_vertical_spacing_countdom_collapsed_box_countdom_offscreen_box_countdom_missing_node_id_box_countrisk_scoreandrisk_bucket, plus matrixrendered_dom_boxesrisk category totalsEvidence
/var/folders/lr/c_cmmt7s0592m4njz99v5yb40000gn/T/opencode/figma-html-render-evidence-20260706/fisiostetic-dom-box-quality.jsonhigh, no horizontal overflow or viewport-width leaks.Tests
composer testinfigma-transformernpm ciinphp-transformer/tools/visual-paritynpm testinphp-transformer/tools/visual-paritygit diff --checkLimitations
dom-boxes.jsonfiles only expose missing node-id boxes if the provider/report included unidentified elements. New captures include a boundedunidentified_elementslist.AI assistance