Giter VIP home page Giter VIP logo

Comments (10)

elchininet avatar elchininet commented on June 19, 2024 1

The option is not in core but in custom-sidebar, check the configuration options.

from custom-sidebar.

elchininet avatar elchininet commented on June 19, 2024

sorry to open the first issue, but after several weeks of fine operation, I suddenly see this happening in my system, and the sidebar is completely populated again:

Do not worry, issues exist for that reason 😉

Check the merge request that was published in the major version 2.0.0.

from custom-sidebar.

Mariusthvdb avatar Mariusthvdb commented on June 19, 2024

i am completely flabbergasted here. I didn't update the resource at all, and was running the version as printed for some time now...

also, now I change the name, ma ny menu items still show.
must check whether the config options have changed too I guess...

sidebar-config.json

see how most of these except for Logbook are still displayed, and order on Energy and Cameras is not respected :

Scherm­afbeelding 2024-01-25 om 16 35 44

also still dont get why this started just now, and not when the merge was done..

from custom-sidebar.

Mariusthvdb avatar Mariusthvdb commented on June 19, 2024

found some of the trouble:

    {
      "item": "logboek",
      "hide": true
    },
    {
      "item": "history",
      "match": "data-panel",
      "hide": true
    },
    {
      "item": "calendar",
      "match": "data-panel",
      "hide": true
    },
    {
      "item": "todo",
      "match": "data-panel",
      "hide": true
    },
    {
      "item": "media",
      "hide": true
    },
    {
      "item": "resources",
      "hide": true
    },
    {
      "item": "config",
      "match": "data-panel",
      "exact": true,
      "hide": true
    },
    {
      "item": "developer-tools",
      "match": "data-panel",
      "hide": true
    }

match was introduced, and indeed now fixes the hides.
not the order yet:
Scherm­afbeelding 2024-01-25 om 16 47 27

from custom-sidebar.

elchininet avatar elchininet commented on June 19, 2024

Most probably this is a cache issue, that is why it started now.

For the other issue, I recommend you to backup the JSON, start from scratch, and add things one by one. If it works with one go to the second and stop when it fails so you can detect exactly where it is failing. With a whole configuration it is difficult.

from custom-sidebar.

Mariusthvdb avatar Mariusthvdb commented on June 19, 2024

ok will do, and will open new issue on order if still occurring after rebuilding.

Is there a chance core menu item order (set when wiggling) would interfere here?

from custom-sidebar.

elchininet avatar elchininet commented on June 19, 2024

ok will do, and will open new issue on order if still occurring after rebuilding.

👍

Is there a chance core menu item order (set when wiggling) would interfere here?

I really don‘t know, mine is done from scratch. If you detect that it interferes let me know to add it to the notes.

from custom-sidebar.

Mariusthvdb avatar Mariusthvdb commented on June 19, 2024

just a quick observation on core menu item interfering with this plugin:

when deleting menu items in core, and also having set a hide in the plugin, this results in a warning in Inspector on an unavailable menu item.

Scherm­afbeelding 2024-03-05 om 09 46 37

seems an issue, or at least worth the trouble of improving that notification?

something like: "you are hiding a menu item, but it is already hidden in core."

I am aware core hiding is per device, and plugin hides per system.

I am not sure this doesnt harm Frontend rendering, looking for items that are no availble.

I took out the core hiding now, and let plugin do all the work, at least that prevents the warnings

from custom-sidebar.

elchininet avatar elchininet commented on June 19, 2024

Yes, that warning is on purpose and it doesn‘t harm the rendering in any way, it just warn you that you have an item in your config that doesn‘t match with any item in the sidebar.

The plugin doesn‘t know if it cannot find the item because it was hidden with the core functionality, or because the user made a typo in the configuration, or because the user is trying to match the items by English texts meanwhile has Home Assistant in another language, the causes could be multiple, and only the user will know why it is happening, that‘s the purpose of the warning 🙂

Remember that you have a new option to disable the native reordering/hiding functionality of the sidebar, in that way, you can prevent that anyone uses this functionality due that it is being managed by the plugin.

from custom-sidebar.

Mariusthvdb avatar Mariusthvdb commented on June 19, 2024

Remember that you have a new option to disable the native reordering/hiding functionality of the sidebar, in that way, you can prevent that anyone uses this functionality

Not sure I understand what you are referring to here? Which new option in Core is that?

from custom-sidebar.

Related Issues (9)

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.