Skip to content

Teach How it works and Extending the defineWidget form of a widget - #7551

Merged
max-sixty merged 1 commit into
mainfrom
agent-a08b8c7ade208232a
Nov 28, 2026
Merged

max-sixty merged 1 commit into
mainfrom
agent-a08b8c7ade208232a

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Max asked whether How it works was being updated for the new interfaces. The site's How it works and Extending pages now teach the form the references teach since #7544: a widget is its declaration plus, if it draws, an Effect UI component that defineWidget defines, which takes state as a prop and issues Commands such as RecordAction.

How it works' Package interface tab gets a new widget definition, drawing, forms table and principles, and walks through lf-verdict as the component module-widgets.md shows. docs/verdict, which the page runs and quotes, changes with it. The prose describes a widget acting on Leaf through Commands and names none of the thread and obligation functions Max chose to remove.

The example's two buttons sat with no gap between them. docs/verdict, the module-widgets.md example and the starter leaf package init --widget writes now space their row with a class of their own.

leaf-dev interface --base reports no name added. The product-page, interface and starter tests pass, among them test_widget_quality.py and test_plain_elements.py's starter test. A probe pressed Ship and Undo in the page's live sample.

This was written by Claude Code on behalf of max-sixty

Max asked whether How it works was being updated for the new interfaces. The site's How it works and Extending pages now teach the form the references teach since #7544: a widget is its declaration plus, if it draws, an Effect UI component that `defineWidget` defines, which takes `state` as a prop and issues Commands such as `RecordAction`.

How it works' Package interface tab gets a new widget definition, drawing, forms table and principles, and walks through `lf-verdict` as the component `module-widgets.md` shows. `docs/verdict`, which the page runs and quotes, changes with it. The prose describes a widget acting on Leaf through Commands and names none of the thread and obligation functions Max chose to remove.

The example's two buttons touched. `docs/verdict`, the `module-widgets.md` example and the starter `leaf package init --widget` writes now space their row with a class of their own.

`leaf-dev interface --base` reports no name added. The product-page, interface and starter tests pass, among them `test_widget_quality.py` and `test_plain_elements.py`'s starter test. A probe pressed Ship and Undo in the page's live sample.

> _This was written by Claude Code on behalf of max-sixty_
@max-sixty
max-sixty merged commit 09183c9 into main Nov 28, 2026
7 checks passed
@max-sixty
max-sixty deleted the agent-a08b8c7ade208232a branch November 28, 2026 20:39
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.

2 participants