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

Pre-fill entity state widget label with entity name #4296

Merged
merged 1 commit into from Mar 26, 2024

Conversation

jpelgrom
Copy link
Member

@jpelgrom jpelgrom commented Mar 26, 2024

Summary

Based on a 'suggestion' for the app on Discord: improve the UX when creating a new entity state widget by pre-filling the label for the widget with the name for the selected entity.

This does not apply when you've edited the label (or are editing a saved widget) until the label is cleared/blank.

Screenshots

Short video showing creating a widget (label empty by default), selecting an entity sets the label to the entity's name, changing the entity updates the label, editing the label and then changing the entity no longer updates the label:

widgetlabel.mp4

Link to pull request in Documentation repository

I don't think this requires documenting

Any other notes

 - When creating a new entity state widget, if the label is empty pre-fill it with the name for that entity to improve the initial UX. This does not apply when you've edited the label (or are editing a saved widget) until cleared.
Copy link
Member

@dshokouhi dshokouhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great improvement!

@dshokouhi dshokouhi merged commit acb81ba into home-assistant:master Mar 26, 2024
4 checks passed
@jpelgrom jpelgrom deleted the entity-state-widget-label branch March 27, 2024 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants