-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
feat(ui): flatten UI when elevation is not necessary (#2317) by @floutchito #2317
feat(ui): flatten UI when elevation is not necessary (#2317) by @floutchito #2317
Conversation
Add a UI section in settings Move dark mode switch to UI Settings section Add UI setting to replace Navigation Drawer with tabs, useful when app is embedded in another one, typically Home Assistant integration
Remove cards nesting when unnecessary Flatten elevation when unnecessary Use buttons instead of ExpansionPanels for actions and statistics on ControlPanel Refactored StatisticsCard.vue
This is a Draft, I'm searching for an easy way to use the HA zwave-js-server to continue this work on node views, but it seems I can't link the dev server to an existing prod instance embedded in HA. My HA instance and its ZWJS2MQTT plugin are dockerized by Supervisor. Do some of you guys know a way to do so ? |
Pull Request Test Coverage Report for Build 2025337885
💛 - Coveralls |
Hiu @floutchito ! Really thanks for your PR, love it! I agree the UI can be improved a lot, like you can see I'm not an UI fun, I'm more a backend guy 😆
About your question, you should get the ip address of the docker container that is running the webserver and set it here: https://github.com/zwave-js/zwavejs2mqtt/blob/master/src/apis/ConfigApis.js#L10 Let me know if you need something else! I will give a try to your PR soon |
src/App.vue
Outdated
@@ -845,3 +860,9 @@ export default { | |||
}, | |||
} | |||
</script> | |||
|
|||
<style scoped> | |||
.smaller-min-width-tabs { |
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.
In order to make this working with scoped
you should use >>>
operator
.v-tabs >>> .smaller-min-width-tabs
Thanks ! I'll give a try at setting the IP of my prod server. Will work on this at night. |
Perfect! Thanks :) |
…space Removed wrapping VCard Positioned file browser sticky to the top of the view Moved file selection VSpeedDial to file browser view Positioned file content actions sticky to the bottom of the file content view Vertically centered placeholder text and progress Small typographic styling
Pulled Ping / Advanced node actions out of NodeDetails Using vertical tabs Unwrapped manual instructions from tabs Flattened values expansion panels
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.
@floutchito Firstly thanks for this PR, just love it!
I tested your changes and everything looks good! Just two things:
- On smaller screen I think it makes sense to have node tabs (in node details) horizontally instead of vertically, could you change that?
- The controller stats button seems like it's not clickable when stats are hidden, I would change the disabled color to something more user friendly so the users can detect it as something clickable
The rest LGTM :)
Hi @robertsLando,
Done. I had to align left the AssociationGroups table to let users understand the structure on smaller screen.
Done. I also added a toggle for each individual node to show / hide statistics. |
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.
LGTM. Thanks @floutchito
@floutchito I just updated to release 6.6.0 in my Home Assistant instance and noticed the Dark Mode setting doesn't apply when I first load the page. To enable dark mode I must first navigate to settings, then to any other Z-Wave JS page. It remains enabled as long as I stay within Z-Wave JS. As soon as I navigate away to another page in HA and come back to Z-Wave JS it's reverted to displaying in light mode again. Also the Save button in settings isn't reachable in the HA Android app, it's rendered off the right edge of the screen. Let me know if there's any particular info you need to help debug, happy to provide any logs / network traces, versions etc. that may be of use. |
Hello, I can reproduce this bug. I'll look at it as soon as possible. |
I guys.
I'm using this piece of code every day via home assistant, and I love it !
However, I noticed minor possible enhancements that I propose to share with this PR.
Comments and remarks are welcome.
Here's what is modified :
Statistics panel now shows all possible stats grayscaled when empty, and blue / red colors are applied when a value is set.
This makes the panel size, and the stats positions predictable over time, whereas it does not visually take more place.
I think it is useful when someone is quickly searching for a specific stat.
Stats are also grouped by logical sections:
MESSAGES
,COMMANDS
,COMMUNICATION
.