My NR app now has 8 web pages and 2.5MB in size, all done with the original dashboard.
I do use dashboard 2 (flowfuse) as it was the perfect answer when it came along to creating a smaller screen set of select items and pages for my tablet & iPhone. Works awesome and I like the things I can do with D2. I haven't researched what, if anything, I do now with D1 that perhaps cannot be done with D2 (is there a list?). I use almost all of the D1 nodes.
So with D1 deprecated it's been on my mind to (slowly?) convert to D2 for my primary application but I know that's going to be a LOT of work. The issue stopping me though is then I either give up the tablet / iPhone version or convert it then from D2 to D1. But then the Q is what's the point in moving off D1 if I'll still be using it.
I read somehere here:
You can only have 1 Dashboard per Node-RED instance.
So my point here is that one minor shortfall of the dashboards is the inability to set 2 dashboard targets (main pages). D1 is locked into "/ui" and D2 seems locked to "/dashboard".
My question is "Could there be at least 2 dashboard instances in D2 and if so, could this maybe become a higher priority for any planned changes with it?"
This was the intention from day 1 however there were difficulties (I forget what) that caused it to stall. It's still an open issue on the backlog but with so few requesting this it never made it back to the "up next" list.
Funny coincidence, I did play with this idea last week and got a rough proof of concept (almost) working but I ran out of time and never committed it.
Dashboard v2 is generally more friendly than v1 for a mixture of PCs, phones and tablets and it's probably preferable to have just one dashboard component displaying any particular data set. It has more sophisticated access control too.
He'll be along to say it himself soon but @TotallyInformation has a fine dashboard component in Uibuilder. I think you can have multiple db urls.
There was another very impressive looking dashboard offering presented recently too.
I think it should be possible to show different pages in the page dropdown dependent on the size of the screen in use. This would have to allow for the fact that mobile and desktop could both be connected at the same time. Someone more knowledgeable than myself would have to help though.
Yes, UIBUILDER can have multiple uibuilder node instances, each creates an independent website with its own root URL. You can also create multiple pages and folders in a single instance, in that case, they share the same root URL and socket.io channel. UIBUILDER messages carry information about the connected client, the page/url and even the browser tab id so that you can process and filter messages accordingly.
Other potential advantages for a large migration might be:
You are not necessarily swapping one complex framework dependency for another. UIBUILDER gives you the choice as to even whether you want a framework. But if you do want one, you can choose any. Either way, you are not locked in. Without a framework, you will find that the long-term maintenance gets easier and easier over time since you are using mostly standard HTML/CSS.
You are benefiting from over 10 years of development of the nodes and libraries.
You can use standard web development tooling should you wish to.
There is no complexity "cliff-edge" to worry about (the point at which you find yourself fighting the framework more than benefitting from it, a well known issue with frameworks that is causing more people to move away from them as HTML and CSS increase in capabilities over the years).
For mobile use, UIBUILDER pages tend to be a lot smaller than D1 or D2 pages.
Of course, choosing UIBUILDER would mean that you need to translate the node-based approach of D1 to more of a component-based approach. Some components are already available and there are many 3rd-party web components that will work with UIBUILDER since it is an enhancement to HTML, not a replacement.
Oh, and I should mention that you can run D1, D2, and UIBUILDER together from the same instance of Node-RED.
I must admit Julian, my bad but I've not looked at uibuilder, probably because I've used D2, know the differences and invested time to learn the transition requirement from D1. I suppose I was avoiding potential confusion by throwing a 3rd in there. I now do plan to look into it next.
It seems your collective replies pushed me to focus on the possibilities more then I previously have because it struck me that maybe I COULD get all I want from D2 (maybe uibuilder as well). I haven't tested this yet but perhaps I could create a D2 page called "mobile" and put the select items on it. Then for the tablet / iPhone I'm thinking I could simply bookmark that page (~:1880/dashboard/mobile), going straight to it. I know the theory will work for at least the initial page (works with D1) however I don't know if I can structure the page properly for screen size (PC monitor must be prime) or that I could get a side bar menu this way for additional mobile pages (multiple bookmarks would work but kinda clumsy).
The new realization for me now is at least there are potential "work arounds". I'd have to summarize though by saying it still seems a more elegant solution to have multiple instances where you have control over the entire environment. This is the driver for me to now look into uibuilder.
You could. However, don't forget that D2 is an SPA which means that you get a load of other things along with that "page" which isn't really a page in HTML terms. An SPA virtual page might contain lots of other things hidden away.
With a UIBUILDER page, you would first try to use CSS to reformat mobile pages so you only have 1 actual page. This is the standard web development approach. If that turned out to be a challenge, you could indeed create a second page specific for mobile use.