-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redesign settings page & Add doc links #1997
Conversation
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Job #1119: Bundle Size — 15.76MiB (~+0.01%).Metrics (2 changes)
Total size by type (2 changes)
|
@ghys Please let me know what you think. |
Many thanks @florian-h05 for giving this a shot! It's pretty much what I imagined. I very much like the reintroduction of direct links to the add-on settings which makes more sense from a UX perspective than having to find them again in the add-on store and then finding and clicking on that little gears icon. Seeing that screenshot lead to more thoughts and ideas:
I don't think we have to rush this, we can discuss this and schedule it for the next milestone or the one after. I've learned from other experiences that too many big changes in critical parts of an UI as we adjust and make up our minds can lead to confusion and frustration. |
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Only add-ons which provide configuration via config-descriptions or persistence add-ons are listed by default. All other add-ons are considered advanced. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
I had a few thoughts about your comment:
I understand what you mean, but when openHAB 4.1 is released hopefully transformations aren't that lonely anymore, because we have a page to manage the semantic tags in place. Regarding transformations:
For system settings, it is difficult to decide whether they are advanced or not, and I don't want to hardcode a list - I'd prefer to show them all. Now looks like this: Note that I chose to add a list button "Show Advanced" (and also "Hide Advanced") because IMHO this is more intuitive than placing the "Show advanced" checkbox in the upper right corner. |
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Thanks! I think it looks great, I have a couple little more nitpicks obviously:
|
Incidentally this is something which should be beneficial in other places, for instance the sessions list in the "profile" page, as illustrated on https://demo.openhab.org/profile/ |
The current two column layout is ideal for 1024px, but has some limitations. Hiding visual items behind a 'show all' tab would be great and necessaire for the smaller viewports. Many of us have screens with a much higher resolution. |
That's a fair remark, however the settings screen has been carefully designed with a 1280px screen width in mind (kind of the middle point), also considering you can use the developer sidebar at this resolution and above, so it had to fit just right: Adding columns could be done but the developer sidebar reduces the available width without adjusting the viewport size, so all of this has to be taken into account.
This is also influenced by the fact that not all add-ons have settings to configure, some would just be log level settings, that's why they're behind a "show all" filter, as they don't have anything specific to configure. Also in your mockup I would move the add-on store items to the middle column. This drives me to another completely different idea: we could have a consolidated "add-ons" section presenting the installed add-on settings, then a single "add-on store" link to add more. |
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
…ems - Open documentation" Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Agreed, and already commited.
Good point. I have added documentation buttons to the "empty state placeholders", but I wanted to keep a simple way to open the docs right from the UI, so I extended those "x Items" lines to "x Items - Open documentation". Regarding the number of columns and ordering, I will have a look once I have the time. |
I love this idea, similar to how browser extensions are managed. It also gives us a place to see all the addons that are currently installed, and that it would load much more quickly. |
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
I have consolidated the add-on store and the add-on settings into a single block (even refactored them to their own component), introduced advanced system settings (hard-coded inside the UI) and added a third column for large screens. On a smaller screen: On a larger screen (note that I have chosen a good brakepoint to use the developer sidebar the same time): |
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
FYI, I have just fixed a style issues, that was caused by the use of CSS visbility instead of v-if (took me a while to find the right v-if condition).
Good idea, I like that and so I implemented it. |
Just a suggestion, maybe ‘copy’ instead of move it. I like both place to ‘enter the store’ |
I think it looks pretty neat now 😍!
Fair point, might be a simple button like "Install More Add-ons" instead of the prominent item in the attempt above, but I actually like this current design and the separation of concerns of sorts. This separation is all more important if, in the future, when some sort of RBAC is implemented and/or OAuth2 scopes are implemented, we might allow certain users access to the settings, but not to the store. One other technicality would be to move the add-on store pages to simply Thanks very much @florian-h05! |
@@ -73,6 +73,11 @@ | |||
</ul> | |||
</li> | |||
|
|||
<f7-list-item link="/settings/addons/" :title="$t('sidebar.addOnStore')" panel-close :animate="false" | |||
:class="{ currentsection: currentUrl.indexOf('/settings/addons/') >= 0 }"> | |||
<f7-icon slot="media" ios="f7:bag" aurora="f7:bag" md="material:shopping_bag" color="gray" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor detail I just noticed too late (it wouldn't have been blocking): in that left side menu the top-level entries' icons (Settings, Developer Tools, About) are "filled" and the sub-levels are "hollow", so in this case the icon should have been e.g. f7:bag_fill
instead of f7:bag
; again just a minor design quirk but it contributes to the consistency 😎
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed that it should be changed for visual consistency, so here it is: #2053.
You could also argue that this fixes a bug and it should be backported to 4.0.x. 😉 |
Addresses openhab#1997 (comment) 78. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Please do (when it all works), I think you can make these decisions on your own :) |
openhab/openhab-webui#1997 introduced documentation links to several parts of the UI, this adds the required redirects. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
openhab/openhab-webui#1997 introduced documentation links to several parts of the UI, this adds the required redirects. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
…tore (#2053) Follow-up for #1997. - Addresses https://github.com/openhab/openhab-webui/pull/1997/files#r1313446378: Use filled icon for the add-on store. - Fixes #2049: Fix sidebar highlighting for add-on settings and add-on store pages. - Fixes #2028: Fix tab is resetted to bindings when reloading the add-on store (by using seperate routes for all tabs, therefore addresses #1997 (comment)). - Closes #2048: Expand system settings by default on large screens where three columns are used. - Localize the "Show All" buttons. --------- Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Co-authored-by: Yannick Schaus <github@schaus.net>
Closes openhab#1935. - Moves transformations to a new list for visual separaration, as it is only second class configuration. - Renames System Services to System Settings. - Add Add-on Settings, which opens the same settings page as the add-on store, i.e. provides log, service config and persistence config (if persistence service). Add-ons that only provide log settings are considered advanced and hidden by default. - Consolidate the add-on store and the newly added add-on settings into a single place (refactoring included). - Add doc links to Things, Items, pages, rules, scenes & scripts list pages. - Make some system settings advanced. - Use a third column for large screens. --------- Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
…tore (openhab#2053) Follow-up for openhab#1997. - Addresses https://github.com/openhab/openhab-webui/pull/1997/files#r1313446378: Use filled icon for the add-on store. - Fixes openhab#2049: Fix sidebar highlighting for add-on settings and add-on store pages. - Fixes openhab#2028: Fix tab is resetted to bindings when reloading the add-on store (by using seperate routes for all tabs, therefore addresses openhab#1997 (comment)). - Closes openhab#2048: Expand system settings by default on large screens where three columns are used. - Localize the "Show All" buttons. --------- Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Co-authored-by: Yannick Schaus <github@schaus.net> Signed-off-by: jgeorgi <justin.georgi@gmail.com>
…tore (openhab#2053) Follow-up for openhab#1997. - Addresses https://github.com/openhab/openhab-webui/pull/1997/files#r1313446378: Use filled icon for the add-on store. - Fixes openhab#2049: Fix sidebar highlighting for add-on settings and add-on store pages. - Fixes openhab#2028: Fix tab is resetted to bindings when reloading the add-on store (by using seperate routes for all tabs, therefore addresses openhab#1997 (comment)). - Closes openhab#2048: Expand system settings by default on large screens where three columns are used. - Localize the "Show All" buttons. --------- Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Co-authored-by: Yannick Schaus <github@schaus.net> Signed-off-by: jgeorgi <justin.georgi@gmail.com>
…tore (openhab#2053) Follow-up for openhab#1997. - Addresses https://github.com/openhab/openhab-webui/pull/1997/files#r1313446378: Use filled icon for the add-on store. - Fixes openhab#2049: Fix sidebar highlighting for add-on settings and add-on store pages. - Fixes openhab#2028: Fix tab is resetted to bindings when reloading the add-on store (by using seperate routes for all tabs, therefore addresses openhab#1997 (comment)). - Closes openhab#2048: Expand system settings by default on large screens where three columns are used. - Localize the "Show All" buttons. --------- Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Co-authored-by: Yannick Schaus <github@schaus.net>
Closes #1935.