Commit Graph

36 Commits

Author SHA1 Message Date
Paul Bottein d95bf64edf
Add experimental sections view (#19846) 2024-02-22 20:51:48 +01:00
Paul Bottein 3e7f008277
Rename tile features to card features (#18732) 2023-11-24 13:36:58 +01:00
Paul Bottein 1cf928b425
Improve Lovelace types (#18652) 2023-11-15 11:13:49 +01:00
Paul Bottein d4cda0c106
Rename tile extras to tile features (#14483) 2022-11-30 18:35:13 +01:00
Paul Bottein a958c6296b
Add cover and light controls to tile card (#14244) 2022-11-21 17:13:15 +01:00
Steve Repsher 24509425ca
Fix some localize key type errors in lovelace editors (#13403) 2022-08-20 13:36:58 -04:00
Bram Kragten 869fa91ae5
Convert entity-attribute picker to ha-combo-box (#11587) 2022-02-07 10:22:08 -06:00
Bram Kragten 93b3b8f985
Fix editor structs (#9286) 2021-05-30 20:08:46 -07:00
Philip Allgaier 741ac679a0
Ensure we have all mandatory action keys present in action editor (#8424) 2021-02-22 21:10:06 +01:00
Bram Kragten a41afcd714
Update lovelace call service action (#8421) 2021-02-19 17:58:14 +01:00
Philip Allgaier 69d0a22091
Add check to prevent undefined access during action validation (#8257) 2021-01-27 18:39:03 +01:00
Philip Allgaier 0a3172dfdb
More comprehensive YAML config errors + dynamic checks for action configs (#8217) 2021-01-27 12:33:57 +01:00
Zack Barett 32ff166a74
Entities Card: Add Header & Footer Editor (#6751) 2020-11-09 22:41:59 +01:00
Zack Barett a2ec878ef0
Entities Card: Entity Row Editor (#7134)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-09-30 16:20:10 +02:00
Zack Barett a349e34bc2
Card Editor: Special Row doesn't show warning (#7093) 2020-09-24 11:36:43 -05:00
Zack Barett 24b390ba03
Add actions to entities config struct (#7063) 2020-09-21 13:26:08 +02:00
Zack Barett 100ba8edfa
Add allowed options to entities struct so UI editor can still be used (#6823) 2020-09-08 11:37:49 +02:00
Bram Kragten 16473c9177
Bump superstruct, add struct to automation action (#6436)
Co-authored-by: Zack Arnett <arnett.zackary@gmail.com>
2020-07-21 12:42:07 +02:00
Zack Arnett a1ee9ad48b
Card Editor: Documentation per Card (#5888)
* Doc-links

* Comments

* Fix

* Remove unneeded code

* undo the change

* better
2020-05-15 21:50:28 -04:00
Bram Kragten 82f80db558
Update typescript, prettier, tslint -> eslint (#5536)
* Update typescript, prettier, tslint -> eslint

* Organize imports

* Use glob for eslint fix react import
2020-04-14 09:05:45 -07:00
Bram Kragten 4150ac045d
Gui editor fixes (#5416)
* Gui editor fixes

* Fix

* Add change mode button to conditional card editor
2020-04-02 17:47:01 +02:00
Zack Arnett 4767fcbdfc
Card Editor: Add Toggle to Dialog (#5245)
* Add Toggle to dialog

* Fix for Stack Cards

* reviews

* Reviews
2020-04-01 19:17:16 +02:00
Tomasz 1599dc9e16
Set view visibility form UI (#4978)
* wip

* move logic to hui-view-visibility-editor.ts

* users will be always set

* extra filter to remove deleted users

* added better UI.
I had to add &nbsp; to ha-switch to avoid scrollbar

* fix for comments

* setting default visibility in a better way

* simplified logic, addressed comments
2020-03-06 12:36:34 +01:00
Zack Arnett aa2e632df3
Card Picker with Previews of cards (#4975)
* Card Picker with Previews of cards

* Getting Preview Async - Using dialogs entities

* Create generic getElement - filter entities before

* lint

* Add entities back to Picker. Set Qualifier

* Style Updates

* Move setup of filtered cards to connected

* style updates

* Dont pull entities if noEntity config

* Move all config logic to getConfig

* Style Update - Remove Manual process

* lint

* Accounting for ll-rebuild for async cards

* Style Updates - Use GetStubConfig for most

* Lint

* Filter entities with function - style - no preview

* Iframe rename and description

* Move getstubconfig to helper - update spinner

* Style for themes

* Move entities to be calc once

* Should update

* oops

* TSC

* Comments
2020-03-03 14:53:55 -05:00
Ian Richardson 95dfcafce3
UI Editor for picture-glance card (#3709)
* UI Editor for picture-glance card

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3700

* address review comments

* address review comments

* fallback to yaml if state image used

* push default changes

* default image for config

* Update hui-picture-glance-card-editor.ts
2019-09-25 15:38:26 -05:00
Ian Richardson f871387fa6 new action: url (#3773)
* new action: url

Takes a `url_path` option.
Closes https://github.com/home-assistant/ui-schema/issues/249
I'm experience the issue described here with my string values in the action-editor: https://github.com/home-assistant/home-assistant-polymer/issues/2645. Have not been able to track down where the issue is.

* Fix losing config on init

* fix action-editor
2019-09-22 21:56:29 +02:00
Ian Richardson 4c5d3138c1 UI Editor for `picture` card (#2240)
* UI Editor for `picture` card

This is a WIP.
* How should I handle service data? It's kind of freeform and I don't really have a good idea on what I should do.
* in action-editor I have two issues for `_navigation_path` and `_service` have TS errors saying the property doesn't exist on `ToggleActionConfig`. Not sure why that is the only type it is looking at. Should I be checking the type somewhere?

* Remove `id`

* Cleanup. Service-data still WIP

* Could use some help on service_data

* Perhaps a better/more structured method?

* Revert "Perhaps a better/more structured method?"

This reverts commit 1e1a1e44c16a18c5ffc380347cffd01e7fad52f9.

* Just playing around

* MVP doesn't include service data

* Address review comments

* Address review comments

* Name chunk and remove when unused

* Remove `more-info` action option

* Address review comments
2018-12-18 17:25:56 +01:00
Bram Kragten 4f0a965573 Changes for new storage (#2228)
* Changes for new storage

* Fix lint

* Use indexes for editing

* Use lovelace object

* Use lovelace object

* Lit conversion panel lovelace

* Lovelace obj

* Fix edit cards

* Fix some bugs

* Fix last bugs

* Lint

* Don't drop view content

* Move file

* Add skip button to card picker

* Correctly set lovelace mode
2018-12-10 08:57:29 +01:00
Bram Kragten baeda622de Save columns as string (#2214)
* save columns as string

* set type to number to convert to number before save
2018-12-07 14:14:29 +01:00
Bram Kragten 16cc3adcff Add badges to view editor (#2176)
* Badges

* Fix entity picker

* Make editor own element
2018-12-05 12:39:04 +01:00
Bram Kragten f461ad6d31 Add card functionality (#2160)
* MVP add card

* WIP

* Added stub config

* Little bit of cleanup

* Add all card

* At least it works now...

* clean up and bug fixes

* Fix for switching editor
2018-12-03 14:11:46 +01:00
Bram Kragten 97f5d8e7e2 Move lovelace data to /src/data/lovelace.ts (#2119)
* move lovelace data

* move types

* change imports from cards
2018-11-27 10:05:33 +01:00
Bram Kragten 101a364a83 Type LovelaceConfig -> LovelaceCardConfig (#2103)
* LovelaceConfig -> LovelaceCardConfig

* Typo
2018-11-24 14:03:54 +01:00
Bram Kragten 0bb85bc895
Added migrate dialog when card has no ID (#2008)
* Added migrate dialog when card has no ID

* typos

* Fix error messages

* cardId should be a string

* Add translation

* Only load yaml in yaml editor

* revert name change

* Combine migrate and edit in one dialog

* lint

* fixes + inlude and secret yaml

* resize after toggle preview -> value>config

* add loading spinners

* only create preview when type changes

* loader on yaml editor

* Fixed loading spinner not disappearing

* moved dialog

* disable toggle if not avail

* address comments

* cleanup showDialog
2018-11-19 22:19:50 +01:00
Zack Arnett 2076949289 Glance fix (#2040) 2018-11-12 08:05:05 +01:00
Zack Arnett 935639e5e0 Add getElementConfig to Glance + Add Form UI for updating YAML (#1944)
* Working version

* Working kind of

* Some more changes

* More review changes

* Progress

* Review updates

* Adding new changes

* Remove un-needed code

* Adding Types

* Updating UI Editor a bit

* Updating from missed reviews

* Updates from Reviews

* Yaml is not update each time. Instead stored as LovelaceConfig.

* Update to not pull config from preview but store it each time it changed

* Updating from Reviews

* Try catch fix

* Update hui-dialog-edit-card.ts
2018-11-06 10:09:28 +01:00