#Random idea while looking at our more

1 messages ยท Page 1 of 1 (latest)

naive cape
#

Not the full list, maybe just a mention "BE carreful this entity is part of 62 automations, and 5 dashboards"
I like this approach, keeping the dialog simple and focused on the task.

tired flicker
#

I would have the code ready for the FE. For dashboard I need to add something to core to find the entity in related dashboards. Should we also mention the group and scene count?

naive cape
#

Oh yes! Good idea

tired flicker
naive marsh
#

Maybe some line breaks? I would definitely gloss over that way too easily

tired flicker
timber vessel
#

Here's what I'd absolutely LOVE for this:

Really delete foo_bar_baz?

This entity is used in 12 automations, 3 scripts and 1 dashboard.

[ See Related ]   [ Cancel ]  [ Delete ]

where See Related would take you to a filtered search so you can start cleaning up.

#

similarly, "1 dashboard" is often too ambiguous when you make heavy use of subviews. It usually takes a lot of Ctrl-F in raw YAML to track it down.

naive cape
#

I would simplify the sentence by dropping the are you sure part:

โ€œThis entity is used in 12 automations, 3 scripts and 1 dashboard.โ€

naive cape
naive marsh
#

Dropdown?

#

Or make it similar to the restart bottom sheet. It also has a dropdown.

timber vessel
#

in my version, the story would be โ€œoh, I want to clean up before I delete itโ€ so the See Related implies canceling the deletion

naive marsh
#

If I'm looking up an entity and go to delete (which involves a few steps already) I'd just want a quick glance what might break.

#

"Ah it's just that stuff let's go ahead" I wouldn't want to backtrack if it wasn't anything relevant

merry idol
# tired flicker

What about this,

Delete [entity-name]

Deleting an entity is an irreversible action. Are you sure you want to continue?

This entity is associated with 1 automation, 1 script, 1 group and 1 dashboard.

Deleting an entity is permanent. Continuing may cause issues!

#

And if there aren't any associations:

Delete [entity-name]

Deleting an entity is an irreversible action. Are you sure you want to continue?

This entity is not associated to anything, and will therefore not cause any issues if deleted.

naive cape
#

We had the entity name in the tile before. We dropped that because sometimes the entity name is huge.

merry idol
#

That's fine, IMO

#

As long as most of the name is visible, you can just end up truncating it

#

The alternative is ...

merry idol
naive marsh
naive cape
#

Germans invented the printing press because they were tired of handwriting

naive marsh
#

It's my longest non gibberish entity id. Perfect for stress testing lol

naive marsh
#

Otherwise it's a good idea i think to include more information given there are no tight space constraints

merry idol
#

Better to make newbies worried about deleting an entity, than to allow them to delete it willy-nilly without checking

naive marsh
#

But what are people's expectations? I deleted my weather entity, oh why isn't my weather showing on my dashboard...

tired flicker
#

Well, based on my day to day job I can say, not everyone is expecting a deletion when they hit delete ๐Ÿ™ˆ

timber vessel
sacred breach
#

While not all of these listed are valid, there is a LOT of potential places an entity can be used. Gathering them all might be difficult, and showing just some of them isn't a full picture

onyx marsh
# timber vessel Here's what I'd absolutely LOVE for this: ``` Really delete foo_bar_baz? This ...

+1 to this suggestion from me, and if including the entity name in the dialog title is a concern, I would go for "are you sure" as the title and replace "this entity" by its name in the text.

I love the idea of allowing the user towards a filtered search right from here. For me, the dialog would close (I agree that it implies cancelling deletion) and opening / navigating to wherever the user can do their cleanup.

naive cape
#

"are you sure" as the title and replace "this entity" by its name in the text.
The title should explain the action, in this case delete. We shouldn't have any are you sure titles.

We can show the entity name in the description.

onyx marsh
merry idol
tired flicker
#

So this is now what I've ๐Ÿ™‚

merry idol
tired flicker
#

Name or entity ID?

naive cape
#

Name

merry idol
# tired flicker Name or entity ID?

yeah that's good. I'd personally emphasize the fact that deleting the entity whilst it's still connected to other things could cause things to break (because it can)

merry idol