Closed jlaur closed 5 months ago
I agree
Is it intentionally shown initially (i.e. after installation)?
I believe so.
Is it intentionally shown after being hidden when refreshing the page?
This doesn't sound right and suspect it's unintentional.
I would hope that it is possible to hide it so that it won't be shown again until requested using the (Shift+Alt+D) shortcut.
I agree. It should be hide able and that choice should persist across refreshes.
It should only appear automatically if you have an empty overview page. Have you added any widgets to the MainUI overview page?
I would hope that it is possible to hide it so that it won't be shown again until requested using the (Shift+Alt+D) shortcut.
Yes, please! This "feature" is very annoying if you are using a Page on a wall tablet in full size or kiosk mode and don't have access to a keyboard to hide the sidebar.
I have encountered this behavior too while spinning up a new instance to review some PRs and found it (sorry) annoying as well.
The 'offending' code is here, I believe: https://github.com/openhab/openhab-webui/blob/0c199ec1022fedc1caa45ed9e05fd9a9f2c95b5b/bundles/org.openhab.ui/web/src/components/app.vue#L508-L512
I think it would be better to have a button in the "empty state" of the overview page to open the developer pane instead, in this case.
have a button
I realized today that there is already a switch to turn the Developer Sidebar on and off, but it is always re-enabled after a page refresh.
So if this switch state would persist, everything should be fine ...
I have encountered this behavior too while spinning up a new instance to review some PRs and found it (sorry) annoying as well.
No apologies necessary, I would find it annoying too. I just can't replicate it on either of my test systems.
The 'offending' code is here, I believe:
Yeah, that's it. It just works as expected on my system, so I'm flummoxed.
I think it would be better to have a button in the "empty state" of the overview page to open the developer pane instead, in this case.
This is a perfectly satisfactory compromise. I'll try and get a PR out today or tomorrow.
Thank you @florian-h05. 👍
The problem
The Developer Sidebar is shown initially and it keeps reappearing on page refresh.
Expected behavior
Is it intentionally shown initially (i.e. after installation)? Is it intentionally shown after being hidden when refreshing the page?
I would hope that it is possible to hide it so that it won't be shown again until requested using the (Shift+Alt+D) shortcut.
Steps to reproduce
Hide the Developer Sidebar. Refresh the page.
Your environment
Browser console
Browser network traffic
Additional information