I have modified the navigation in emoncms to use a sidebar. You can navigate between the menu sections without leaving the page. Once you navigate to another page the sidebar will indicate your position by highlighting the current menu item.
cd /var/www/emoncms
git pull
git checkout sidebar
cd Modules/app
git pull
git checkout sidebar
cd..
cd Modules/dashboard
git pull
git checkout sidebar
cd..
cd Modules/graph
git pull
git checkout sidebar
cd..
cd Modules/find
git pull
git checkout sidebar
cd ..
cd Modules/sync
git pull
git checkout sidebar
cd ..
cd Modules/deamandshaper
git pull
git checkout sidebar
cd ..
cd Modules/postprocess
git pull
git checkout sidebar
cd ..
After switching to the sidebar branch clear the browser cache or use private browsing mode to ensure no javascript is cached.
Additional Modules
For optional Modules to make use of the sidebar the "_menu.php" file for each Module must also be changed. We are working to update all the Modules. You can checkout these Modules for testing…
Any thoughts on this new sidebar design? I’ve been using it for a while now on my Emoncms system and it works very well, I think it’s a big improvement in usability. It’s still a work in progress, but we would really like this to be merged into master very soon.
Any feedback would be appreciated, if you find any minor issues please open github issues and assign to @emrys
To complement @emrys, screencast and screen grab above here are some screenshots showing the mobile view in action:
Assume you’re referring to the device module beta? It’s best start a new thread to discuss this. Currently it’s planned to release the device module, Feed page and sidebar all together since some components depend on each other. This sidebar cannot easily be released as a beta feature toggle since its significant change to the code.
They are all connected, you are correct there are changes to the feed/input list.
As I mentioned above the sidebar is significant code change to many modules therefore not really easy to deploy as a beta feature toggle. Anyone who wants to test currently needs to checkout the branch as described above. After some more testing we’ll try to get it merged into master branch for further testing. Master branch is kind of like a beta branch since the majority of users are running stable branch (emonSD default).
The screenshots and video on this thread should give a good idea of how the sidebar nav will work.
Is the sidebar branch up to date with master (should really just go and check…)? Does it have it’s own module versions or are the changes to Modules non-breaking?
Yes I think it’s uptodate with master, I don’t think version numbers have been changed yet. The modules just need to be updated to make them appear in the sidebar. Updating just the core will show the sidebar with a few modules missing.
Left overnight (on graph) and I now have a ‘Login’ on the top right. Great, except when I click on the ‘Login’ it it stubbornly stays on the graph page.
If I edit the ‘graph’ out of the URL it drops me into the login page and all is well except it does not take me back to where I was, but drops me into the default ‘home’ page.
BTW this is Lighttpd and SSL enabled (in case there is an issue replicating it).
As a note to others, restart the emoncms_mqtt service. It looks like it is running but for me was not doing anything. Restarting this unit brought the data in again (MQTT is on a separate broker). I did the 'what on earth did I change 16 Hrs ago! It may just have been the git pull that caused it.
Hi @glyn.hudson I have noticed that if the user session has expired, the page redirection does not work correctly if on a sub page, and you just refresh the page. Also the ‘login’ button does not work.
I do not think so but I’ll try it and see (just need to leave it to expire the session).
What I try is to reload the page so /emoncms/feed/list, browser load to a blank page with ‘logon’ in top right, but clicking on that doesn’t do anything.