Add HomeyScript dashboard widgets and batch execution metadata - #64
Draft
jeroenwienk wants to merge 4 commits into
Draft
jeroenwienk wants to merge 4 commits into
jeroenwienk wants to merge 4 commits into
Conversation
Add versioned content blocks, Markdown, named-script actions and forms with typed events, field validation errors and retain/clear/reset behavior. Share the document contract, interaction controller and renderer across all four widgets, and add a playground using Homey OS styles with examples, public types and regression coverage.
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.
Add dashboard controls for running saved HomeyScripts and displaying their latest results. The widget picker provides Script Button and Script Result, each with a standard and transparent variant. Requires Homey 12.3.0 or later.
lastExecuted; script edits still save immediately. Downgrading to the old storage format is not supported.Widget result values remain in memory and reset on app restart. The SDK still sends the whole app-settings document for each save, so batching reduces write frequency rather than the size of each underlying write. Transparency is static; runtime transparency remains separate work.
Validation: all 37 tests pass, ESLint and scoped Prettier checks pass, generated manifests and standard/transparent asset parity are verified, and Homey publish validation passes. Browser checks covered submission, sizing, themes, and animation behavior. Installed successfully on a development Homey and verified migration preserves existing script definitions and timestamps. Unload flushing is covered with a mocked Homey SDK; actual shutdown persistence has not yet been confirmed.