Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Editor for picture card #2240

Merged
merged 13 commits into from Dec 18, 2018
Merged

Conversation

iantrich
Copy link
Member

@iantrich iantrich commented Dec 10, 2018

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?
  • What do you think about having a default image populated so that an error isn't thrown about an invalid configuration?

picture-editor

@ghost ghost assigned iantrich Dec 10, 2018
@ghost ghost added the in progress label Dec 10, 2018
@iantrich iantrich added the wip label Dec 11, 2018
@balloob balloob changed the title UI Editor for picture card WIP: UI Editor for picture card Dec 11, 2018
@balloob
Copy link
Member

balloob commented Dec 12, 2018

Can we just drop service support from the UI editor for MVP ?

@iantrich
Copy link
Member Author

@balloob yes on the MVP. I'll add a note for the user for now.

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?
@iantrich iantrich changed the title WIP: UI Editor for picture card ✨ UI Editor for picture card Dec 13, 2018
@iantrich
Copy link
Member Author

@bramkragten for a future PR, would it make sense to use the hui-yaml-editor for input of service_data?

@bramkragten
Copy link
Member

@bramkragten for a future PR, would it make sense to use the hui-yaml-editor for input of service_data?

For an MVP maybe... We should just create a UI element for it that we can reuse for every card that uses service_data

@balloob
Copy link
Member

balloob commented Dec 13, 2018

UI element for service data means we need to use the service descriptions available in hass.services. Can get difficult (but not impossible)

@ghost ghost added the in progress label Dec 16, 2018
@iantrich iantrich changed the title ✨ UI Editor for picture card UI Editor for picture card Dec 18, 2018
@balloob balloob merged commit 4c5d313 into home-assistant:dev Dec 18, 2018
@ghost ghost removed the in progress label Dec 18, 2018
@iantrich
Copy link
Member Author

Cool. I'll follow this same pattern for the other picture editors. Hopefully someone can come up with a clean way to handle service_data after those are done.

@iantrich iantrich added this to the 0.85 milestone Dec 21, 2018
@iantrich iantrich deleted the picture-editor branch December 21, 2018 21:47
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants