mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-13 02:53:00 -06:00
## Summary The Details widget was missing the "notify when run" toggle available in the Scripts widget, causing unwanted notifications when scripts were executed from the widget. Added `showConfirmationNotification` parameter to `WidgetDetailsAppIntent` following the same pattern as `WidgetScriptsAppIntent`: - Added parameter with existing localization strings (`app_intents.notify_when_run.title/description`) - Flows through `WidgetDetailsEntry` to `ScriptAppIntent` when widget button is tapped - Only visible in configuration when "Run Script" is enabled - Defaults to `true` for backward compatibility ## Screenshots <!-- If this is a user-facing change not in the frontend, please include screenshots in light and dark mode. --> ## Link to pull request in Documentation repository <!-- Pull requests that add, change or remove functionality must have a corresponding pull request in the Companion App Documentation repository (https://github.com/home-assistant/companion.home-assistant). Please add the number of this pull request after the "#" --> Documentation: home-assistant/companion.home-assistant# ## Any other notes <!-- If there is any other information of note, like if this Pull Request is part of a bigger change, please include it here. --> <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Missing "notify when run" toggle for Details widget</issue_title> > <issue_description>**iOS device model, version and app version** > > Model Name: iPhone 16 Pro > Software Version: iOS 26.1 > App version: 2025.11.2 (2025.1537) > > **Home Assistant Core Version** > 2025.11.3 > > A "notify when run" toggle is missing from the "Details" widget resulting in unwanted notifications when the script is run. > This toggle exists in the "Scripts" widget. > </issue_description> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> - Fixes home-assistant/iOS#4018 <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey). --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: bgoncal <5808343+bgoncal@users.noreply.github.com>