homer icon indicating copy to clipboard operation
homer copied to clipboard

Feature request: Collapsible elements

Open goliath888 opened this issue 3 years ago • 3 comments

Would be possible to implement collapsible elements? In the example, "Applications" would be collapsible when click on it, letting you have more applications in the screen, grouped by category, and in a more clean way.

I have been playing a bit with something like this But I have no experience in vuejs, and I am afraid I have not the level enough to do it by myself with a result worth sharing with you.

goliath888 avatar Nov 15 '20 09:11 goliath888

Hey @goliath888,

That's would be nice yes, with maybe memorizing the group state in local storage like the dark theme preference, so when you come back the elements stays like you left them. I'm adding that to my todo list :+1:

bastienwirtz avatar Dec 09 '20 23:12 bastienwirtz

Hey @bastienwirtz! I would love to tackle this. I have been playing around and have some ideas. Just so we are on the same page here:

  • Each group would have its own collapsible panel
  • Clicking the group heading would hide/show the list of services for that group. It would not have an effect on the other groups.
  • There is some indicator (eg. fa-chevron-down/up) to show if a group is collapsed
  • There is some form of smooth transition that hides the elements
  • The previous state of the collapsed group is saved in localstorage

Let me know if there are any issues, or if you think I have missed anything!

Aidan-B avatar Jun 13 '21 19:06 Aidan-B

I would also say have each service group has a default collapse state setting in the YAML config.

I have a few service groups that are just for administration for my family's home network dashboard. They really don't need them showing expanded by default.

hydrian avatar Jun 22 '21 14:06 hydrian