Skip to content

Allow when/otherwise alternatives on an item change - #1085

Merged
einari merged 1 commit into
mainfrom
screenplay-change-alternatives
Oct 27, 2026
Merged

einari merged 1 commit into
mainfrom
screenplay-change-alternatives

Conversation

@einari

@einari einari commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Added

  • on change on a component that presents items (a board moving a card, a list changing a row) can now choose an action list by the item that changed, with block-form when and otherwise, exactly as on click, on double click and on select already do. item is the changed item with its new value in place, value the new value and previous the old one, so a command's inputs bind to the data (with talkId from item.talkId) the way a view binds to a view model.
  • A new "Bind an item change to a command" section in the interactions documentation.

Changed

  • Diagnostic PLAY0560 now names change among the triggers that admit alternatives. An opaque where on a change keeps working and is not deprecated (PLAY0564 still covers click, double click and select only).

@einari einari added the minor New features, non-breaking additions label Oct 27, 2026
@einari

einari commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Cratis/AI: Cratis/AI#951

@einari einari added the ai-corpus: tracked Language change; the AI corpus update is tracked in a linked Cratis/AI issue or PR label Oct 27, 2026
@einari
einari merged commit 2dc4939 into main Oct 27, 2026
17 of 21 checks passed
@einari
einari deleted the screenplay-change-alternatives branch October 27, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-corpus: tracked Language change; the AI corpus update is tracked in a linked Cratis/AI issue or PR minor New features, non-breaking additions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant