Coder Social home page Coder Social logo

Comments (7)

matthiasdebaat avatar matthiasdebaat commented on August 28, 2024 1

As the tag would still exist after you remove it from Home Assistant, we should change the button tot Remove.

from frontend.

silamon avatar silamon commented on August 28, 2024

So we should use "remove" because the tag still physically exists or did I misunderstand that?

from frontend.

matthiasdebaat avatar matthiasdebaat commented on August 28, 2024

Correct

from frontend.

silamon avatar silamon commented on August 28, 2024

I'm not sure if I would follow for that reason to make it "remove". It still deletes the tag from Home Assistant in a non recoverable way. "remove" mentions it is kept in existence, which means it's still somewhere around but no longer associated or referenced.
We also use "delete" for floors and areas for example, which also exist physically, which is sort of the same example. I think the line should be crossed to say that "delete" and "remove" apply for things in Home Assistant.

from frontend.

matthiasdebaat avatar matthiasdebaat commented on August 28, 2024

I've researched it a bit more and come to the following conclusion:

  • The term Remove should always be used when an item/setting or content is to be removed or disassociated, but the action can be reversed or reapplied.
  • The term Delete should always be used to refer to any action that will cause the permanent deletion of an item/setting or content.

Added this to our design docs #21297

In this case, you can add the tag again. It's recoverable, so it can be Remove.
At the same time when removing a tag, you will break automations. That is a non-recoverable action, so it can be Delete.

I can live with both.

from frontend.

silamon avatar silamon commented on August 28, 2024

I've opened a pull request for "delete" if you don't mind. Reading the design doc, I still interpret "delete" as delete everything that is known to the tag while "remove" to me is clear the associations, but keep the tag present in Home Assistant.
In fact, everything is recoverable, depending on how much time you want to spend.

from frontend.

silamon avatar silamon commented on August 28, 2024

After reading these resources below, it follows your previous/current design documentation with the addition that "remove" can also be used if you delete something to the trash can, which means it can be undone and thus recoverable.

from frontend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.