Commit Graph

139 Commits (c3e155a95c6280f693856a5891e193e18f4ffc38)

Author SHA1 Message Date
Grzegorz Libiszewski c3e155a95c
Unified safe area (insets) for Android and iOS (#24689)
* feat: Introduce new css variables for safe area

* feat: Replace all safe area env with variable
2025-05-22 08:11:04 +03:00
Wendelin 3058fcad46
Use `ha-font-size` typography css tokens (#25361) 2025-05-09 13:47:25 +02:00
Wendelin ba4ec960c8
Use `ha-font-weight` typography css tokens (#25374)
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
2025-05-08 15:11:53 +00:00
Bram Kragten b4e8c56f58
Fix decorators with properties (#25282)
* Fix decorators with properties

* Green build

---------

Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>
2025-05-02 18:21:38 +02:00
Jan-Philipp Benecke ab415188ba
Allow pasting YAML in automation/script editor directly (#24838)
* Allow pasting YAML in automation/script editor directly

* Highlight pasted items

* Change highlighting

* Also reset in script editor

* Show dialog when pasting to changed automation/script

* Add shortcuts to shortcuts dialog

* Use translated shortcut

* Change timeout and clear on save

* Fix imports

* Process code review

* Move paste logic to manual-*-editor
2025-04-29 18:28:07 +02:00
Bram Kragten e156dd36f4
Use SWC for typescript, update to Lit 3, migrate decorators (#25150)
Co-authored-by: Wendelin <w@pe8.at>
2025-04-24 14:10:35 +02:00
Wendelin 6aa2a576b3
Revert "Unified safe area (insets) for Android and iOS" (#24629)
Revert "Unified safe area (insets) for Android and iOS (#23811)"

This reverts commit ee10f9080d.
2025-03-14 11:03:50 +01:00
Grzegorz Libiszewski ee10f9080d
Unified safe area (insets) for Android and iOS (#23811)
* feat: Introduce new css variables for safe area

* feat: Replace all safe area env with variable

* fix: CR fix move from derived styles to styles and rename
2025-03-13 10:20:54 +02:00
Jan-Philipp Benecke 77fc11cda6
Use new improved save dialog when leaving script editor dirty (#23862)
* Use new improved save dialog when leaving script editor dirty

* Fix url
2025-01-25 19:14:47 +01:00
Jan-Philipp Benecke 09102d34d6
Improve automation save dialog when leaving editor dirty (#23589)
* Improve automation save dialog when leaving editor dirty

* Make CI happy
2025-01-23 09:03:39 +02:00
Bram Kragten 4b03caa01a
Make timeout for save automation/script longer (#23665) 2025-01-09 16:39:19 -08:00
karwosts b439c5d213
Display an error if saving new script times out (#23527)
* Display an error if saving new automation times out

* changes

* update

* string tweak

* Fix save failed for scripts
2025-01-02 13:46:36 +01:00
Bram Kragten 361caafab9
fix saving new automation/script (#23433) 2024-12-24 08:44:23 -05:00
Jan-Philipp Benecke 94f679e387
Add area to automation/script save dialog (#23416)
Add area chip to automation/script save dialog
2024-12-24 11:21:03 +01:00
Jan-Philipp Benecke 5cd6f22e99
Add category and labels to automation/script save and rename dialog (#23240)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2024-12-22 16:59:04 +01:00
Wendelin d2ec24f32a
Automation/Script editor add settings,category overflow actions (#23272)
* Add settings, category actions

* Add script category and settings actions

* Correct overflow actions order

* Use consume instead of subscribe
2024-12-12 17:40:52 +01:00
Bram Kragten 3436a023f6 suggestions 2024-12-11 16:08:03 +01:00
Jan-Philipp Benecke 3579d82e8e fix function calls 2024-12-11 15:59:46 +01:00
Jan-Philipp Benecke 91777d45b0 Prevent leaving the editor if there are unsaved changes 2024-12-11 15:59:46 +01:00
Simon Lamon 0ce98a86e6
Combine Edit in yaml and Edit in visual editor (1/2) (#23142)
* yaml / visual part 1

* clean up

* clean up
2024-12-11 09:48:10 +02:00
Jan-Philipp Benecke bf624f5ca7
Intercept default search shortcut and focus our search input on data table pages (#23209)
Intercept default search shortcut on data table pages
2024-12-11 09:34:27 +02:00
Paul Bottein 6934f0626c
Fix boolean attributes (#23189) 2024-12-06 18:39:34 +01:00
Petar Petrov 400ddbf625
Fix attributes broken by the warning fixes (#23182) 2024-12-06 14:56:42 +01:00
Petar Petrov 7a12fd2853
Fix ALL the eslint warnings (#23165)
* Fix many lint warnings

* Fix ALL lint warnings

* small fix

* type fixes
2024-12-06 09:55:07 +01:00
karwosts f51bc40203
Catch yaml errors in script editor (#22853) 2024-11-17 15:09:03 +00:00
Simon Lamon 4cd4635fa5
Collection of localization issues (#22615)
* Fix wrong use of 'zero' in ICU formatted string for condition headlines

* Matter: Use setup code consistently

* Matter: Share from Google Home dialog

* Remove question format for settings toggles

* Add translation for current add-on version:" in add-on details

* Missing space

* Localize integration name not localized in single_config_entry alert

* Reword start into restart to indicate that the addon restarts when it crashes

* Rephrase rename description

* localize migrate script / automation

* Fixup script translation
2024-11-04 08:00:27 +01:00
Wendelin 830d8d2410
Add type import check to eslint (#22488)
* Add type import check to eslint

* Add type imports with eslint --fix
2024-10-30 11:12:30 +00:00
Bram Kragten 778fcab90d
Fix entity id setting on newly created scripts, handle update of enti… (#22272)
Fix entity id setting on newly created scripts, handle update of entity id
2024-10-11 13:13:17 +02:00
Bram Kragten cbce6f633f
Migrate base automation config to plurals (#22053)
* Migrate base automation config to plurals

* revert

* Update hat-script-graph.ts

* Make traces work with both new and old config

* Adjust validateConfig
2024-09-24 20:03:53 +02:00
Simon Lamon 2832f501d1
Fix scripted blueprints (#21649) 2024-08-09 19:38:33 +02:00
Bram Kragten 7e799bf639
migrate script sequence to new format (#21556) 2024-08-02 12:47:41 +02:00
Bram Kragten 9a2051a679
Change take control of blueprint UX (#21254)
* Change take control of blueprint UX

* Add margin to ha-alert

---------

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
2024-07-02 21:18:58 +02:00
Bram Kragten 55b66250f4
Take convert of blueprint automation and script (#21151)
* substituteBlueprint

* WIP ux

* Simplify feature

* Add take control to scripts

* Add translations and catch error

* Clean import

---------

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
2024-06-26 11:24:47 +02:00
Paul Bottein e059ca146b
Script change icon (#20885)
* Add icon to rename dialog

* Check in entity registry

* Only use icon for script
2024-05-29 13:57:13 +02:00
karwosts 9b28c7cf69
Script editor updates (match automation editor) (#20791)
* Show descriptions in script editor

* Script editor updates (match automation editor)

* review feedback
2024-05-21 19:01:51 +02:00
Paulus Schoutsen 7ab2d1496e
Run script in script editor open more info if fields (#19982)
* Run script in script editor open more info if fields

* Extract function
2024-03-04 22:23:14 +01:00
Simon Lamon 9ef07484dd
Replace paper-toast with mwc-snackbar (#19579)
* toast

* Fixes

* Linting

* Remove empty styles

* PR feedback

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2024-02-28 21:50:58 +01:00
Steve Repsher 6234f7b7d2
Initialize boolean properties (#19445) 2024-01-18 16:39:33 +01:00
Bram Kragten 7b6b5724e1
Add descriptions to automation page sections (#19081)
* Add descriptions to automation page sections

* add name key

* Update manual-automation-editor.ts

* hide explanation if there is content

* Update src/translations/en.json

* hide when advanced
2023-12-21 21:01:11 +01:00
karwosts 14a49d6664
`Copy to clipboard` button for service response (#18872) 2023-12-04 14:24:35 +00:00
Kendell R f4ee734ea3
Use new localize format (#18574)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-11-28 12:29:41 +00:00
renovate[bot] 15395275ba
Update dependency prettier to v3.1.0 (#18675)
* Update dependency prettier to v3.1.0

* Reformat

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Steve Repsher <steverep@users.noreply.github.com>
2023-11-19 23:31:56 -05:00
karwosts 80112bb662
Add Fields to Script UI (#18250) 2023-10-25 09:23:15 +02:00
Paul Bottein f7f1a0c32d
Add better localize keys typings for config pages (#17815)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-09-05 11:39:03 +02:00
Simon Lamon a725b6c9de
Clear entityId before duplicate script (#17624) 2023-08-21 15:27:54 +02:00
Franck Nijhof bc3295d851
Add prefix support to text selector (#17335) 2023-07-18 11:57:20 +02:00
Philip Allgaier 32a9b13af0
Translate message that script/automation is unavailable (#17066) 2023-06-28 12:38:10 +00:00
Bram Kragten 4761036816
Show if script is unavailable and why (#17051) 2023-06-27 18:28:53 +02:00
karwosts 5381a467e5
Fix blueprint script editor erroneously setting `mode` field (#16934) 2023-06-19 13:43:04 +00:00
Bram Kragten 1596578f96
Fix automation editor (#16057) 2023-04-05 10:20:21 +02:00