Skip to content

Accept the playground's one resize on activation in widget quality - #5411

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4951
Nov 5, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The widget-quality check now accepts that a generated playground's first box changes once on activation. Its live view builds each control's label and native field from the declarations, then moves the preview beside the controls. known_widget_findings.py lists that resize for lf-playground, -control, -preset, -preview and -choice, as max-sixty decided in #4951.

#4724 moved the playground's drawing from the initial producer into the live widget. It accepted the same content-derived resize for shots, diffs and timelines. The alternative would have authors hand-write the controls the declarations already describe. Nothing on screen changes; only the test's accepted set does.

test_bundled_widgets_meet_the_widget_quality_checks[playground] failed on 1b3e0770c with the 16 findings reported in the issue. With this change it passes, and so does tests/model/test_widget_quality.py.

Fixes #4951

The widget-quality check now accepts that a generated playground changes its
first box once on activation: the live view builds each control's label and
native field from its declarations and moves the preview beside the controls.
#4724 accepted the same content-derived resize for shots, diffs and
timelines; the alternative had authors hand-write controls the declarations
already describe.

Fixes #4951
@leaf-agent
leaf-agent merged commit e91c84b into main Nov 5, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4951 branch November 5, 2026 06:38
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.

Playground controls change their boxes during first presentation

1 participant