Skip to content

feat: supply sample source values to package render checks - #3997

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-3992
Oct 25, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-3992

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Package render checks now accept x-example-data beside a widget's x-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-box measures 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

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
@leaf-agent
leaf-agent merged commit 7a762c6 into main Oct 25, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-3992 branch October 25, 2026 18:24
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.

package check --render can't draw a data-bound widget with data

1 participant