supervisor icon indicating copy to clipboard operation
supervisor copied to clipboard

Roadmap: Improve hassio frontend

Open c727 opened this issue 8 years ago • 20 comments

  1. UI improvements
  • [ ] Addon section
  • [ ] Snapshot section
  • [ ] Advanced section
  • [ ] Hide some options behind a developer toggle (like local addons and network stuff)
  1. HA integration
  • [ ] optimize HA functions, like restart, for hassio
  • [ ] add hassio: to HA config by default
  1. Odds and ends to improve the usability
  • [ ] Several language improvements (by a native speaker)
  • [ ] rename "Google Assistant" addon to something with "SDK" in name to avoid confusion with the HA component
  • [ ] fix inconsistencies like "snapshots" are named "backups" in samba addon
  • [ ] improve logoutput of config check addon
  • [ ] maybe install some essentially addons like samba and SSH by default

Here is a first concept for the addon section hassio

c727 avatar Jan 09 '18 00:01 c727

There are some points they will be hard:

  • We have a own API check the config for the running version. We should implement this to UI. The config check add-on is more like a utility to check the config for next release but should not be used to check the config with running version.
  • Snapshot/Backup. At view now, its not nice, yes. But that is not easy changeable, since it break any add-on they work with it. For statement now, I would like to rename /config to /homeassistant while it can be misunderstood config. I had copy this from official docker image but over the time, it was a bad idea. We can try to plane a big breaking change and hope all add-on developer will help on this movement but we don't make he happy with this...
  • HomeAssistant config is a part of HomeAssistant and we can't add defaulthassio: but default it have discovery: and that make the same.

EDIT I Have a idea for soft migration the folder names. I will add this for next release 👍

pvizeli avatar Jan 09 '18 12:01 pvizeli

I also vote to drop: screen shot 2018-01-09 at 21 35 12

Restart is already in many places (configuration menu, container, hassio CLI) that this makes no sense. Also this doesn't work on mobile.

ciotlosm avatar Jan 09 '18 19:01 ciotlosm

It's not the same restart as on other places

pvizeli avatar Jan 09 '18 22:01 pvizeli

We could "fix" the restart on other places, by detecting the presence of the HASSIO env variable on those buttons and present or trigger a different logic, right?

frenck avatar Jan 09 '18 23:01 frenck

Can we have an API to delete snapshots? Can the supervisor detect if a snapshot got deleted (without restarting it)?

c727 avatar Jan 10 '18 18:01 c727

It would be good to have the "visit website" link that is visible before installing an addon persist to the installed addon itself so the setup instructions (when present) are more easily accessed.

cogneato avatar Jan 10 '18 22:01 cogneato

@c727 I can make a remove function.

You need not reload the supervisor. You can touch on reload on snapshot page. It run also a job in background they will update the snapshots if someone remove this from folder.

pvizeli avatar Jan 10 '18 22:01 pvizeli

@pvizeli can "updater:" be fixed to show update for hassio if you're running hassio? Would make more sense I think, just like restart.

ciotlosm avatar Jan 11 '18 21:01 ciotlosm

Like this? https://github.com/home-assistant/home-assistant/pull/11571

pvizeli avatar Jan 11 '18 22:01 pvizeli

ciotlosm and I started to update the frontend. is there something you like to see changed or miss? (advanced is still the same)

new_addons new_dashboard new_snapshots new_snapshots2 new_store

c727 avatar Jan 20 '18 10:01 c727

Amazing

pvizeli avatar Jan 22 '18 11:01 pvizeli

Looks great guys! That is a major leap forward 🚀

On the dashboard, it shows the currently installed add-ons. Personally, I would like to see which one is running and which isn't. On an ecstatic side note, maybe add the add-on icons as well?

frenck avatar Jan 22 '18 11:01 frenck

@frenck there are currently just logos which don't have fixed ratio and usually are petty big. If icons would be provided by addons that would be great to add.

The running/ stopped is shown by the "puzzle" icon being green or grey. The same icon transforms to an orange arrow up when an update is available for an installed addon.

ciotlosm avatar Jan 22 '18 11:01 ciotlosm

I will see a PR :)

pvizeli avatar Jan 29 '18 15:01 pvizeli

Our problem is the new iframe panel... Frontend dev does not seem to work atm:

element-mixin.html:593 GET http://hassio:8123/home-assistant-polymer/hassio/index.html 404 (Not Found)

c727 avatar Jan 29 '18 16:01 c727

@c727 on this point, I can't help -> @balloob ?

pvizeli avatar Jan 29 '18 19:01 pvizeli

balloob fixed it already :)

c727 avatar Jan 29 '18 20:01 c727

I think the long_description should be displayed on add-on store page but not on the add-on "config panel".

pvizeli avatar Jan 30 '18 11:01 pvizeli

Hass.io API

  1. Isn't it inconvenient that we have to use 3 APIs for the add-ons:
  • supervisor/info for installed add-on with running-status <- dashboard
  • addons for all add-ons in all repos <- add-on store
  • addons/53caca22_mopidy-cast/info for add-on details <- add-on details
  1. same for snapshots, snapshots has some information of snapshots/6dbde1f3/info, but not all

  2. generic information for HA, Host, Supervisor also have separate APIs...

so can we merge them all into 1 API (like the hass-object) or combine some of them?

c727 avatar Feb 01 '18 20:02 c727

If you combine them all into 1 object, you need to load them all before being able to show any page. There is no need to always load all the available add-ons. That info is only needed in the add-on store.

balloob avatar Feb 07 '18 00:02 balloob