Repository navigation
feat: supply sample source values to package render checks - #3997
Merged
Merged
Conversation
Add x-example-data beside worked-example markup, validate its values through the bound data contracts, and publish them through the throwaway page data store. Keep examples that reuse source ids separate so populated and unset states cannot leak into one another. Closes #3992
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.
Package render checks now accept
x-example-databeside a widget'sx-example: source IDs map to sample JSON values, validated against the contracts bound by that example. The throwaway preview publishes these values through Leaf's ordinary data store, so both the column and workspace checks measure the populated drawing. Examples reusing a source ID render separately, and omitted sources stay unset.The browser regression exercises a data-bound widget whose populated box is 200px tall and verifies that
keeps-first-boxmeasures it in both layouts. Model coverage checks invalid payloads, unbound source IDs, and independent values across examples. Six focused tests and the applicable pre-commit checks pass. Local media references in sample data use the same blank stand-ins as markup references.Closes #3992 — automated triage