Skip to content

Tweak layout of Alarm Panel card editor #3675

@SeanPM5

Description

@SeanPM5

Home Assistant release with the issue:
0.98.5

Description of problem:
While reporting the preview bug in #3662 I played around with this card editor a bunch. And I think that it could use a few layout and usability tweaks. It's mostly three minor suggestions:

  1. The "Entity" dropdown should be on its own line. This is the only required part, yet it's currently displaying an optional field before it on the same line. Because it has such small width and because the alarm_control_panel domain is pretty lengthy, it's a very poor experience on mobile and even desktop.

  2. With the "Name" textfield moved underneath, the placeholder text should also indicate that it is an optional field.

  3. Switch to toggles instead of a dropdown. There's only four choices, and it already shows two by default, so having a dropdown for two items seems unnecessary. And since a dropdown is collapsed by default those extra options are also not immediately visible to the user. And a dropdown also requires extra clicks/taps compared to the toggles.

Here is a before and after mockup.

Current design:
current-alarm-panel

Proposed design:
proposed-alarm-panel

Now that you can compare both images, to recap, benefits of proposed design:

  • Clearly labeled heading (as per Add card name to Lovelace "Card Configuration" headings #3658)
  • Entity ID being the first option shows it has priority/significance over everything else
  • Can actually read the entire entity ID now
  • Name field is clearly labeled as optional so there's no confusion and user can easily skip it
  • All of the "Available States" are immediately visible and no longer behind a dropdown
  • Because they are toggles instead of dropdown choices you save clicks
  • There's not a bunch of empty wasted space on the left
  • A lot more mobile friendly

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions