FlowFuse / node-red-dashboard

https://dashboard.flowfuse.com
Apache License 2.0
204 stars 49 forks source link

Mobile Support / Responsive Design #16

Closed MarianRaphael closed 11 months ago

MarianRaphael commented 1 year ago

Description

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

walterjj commented 1 year ago

I would like to suggest that the next Layout Manager could support a hierarchical model, so one could group components inside flex sublayouts - inside each other - in different combinations of row /columns (flex-direction:row and flex-direction:column) , which might be enough to meet most needs.

MarianRaphael commented 1 year ago

FYI @joepavitt

joepavitt commented 1 year ago

Thanks @walterjj! I've just pushed the foundational model for Dashboard 2.0 in this PR which includes a new layout architecture vs. Dashboard 1.0

Each "Page" within the Dashboard UI's will have a new option - "Layout". We then have a /layouts folder with a collection of different layout options.

Each layout takes the collection of widgets passed to the given page and that "Layout Manager" then chooses how to display said widgets.

My thinking here is that by having multiple "layout" options, we could have something super simple to get 80% of people off the ground, through to more complex configurations that allow for customisations but may have a slightly steeper on-boarding curve.

walterjj commented 1 year ago

Good @joepavitt! may be if a ui_group can have a also a "parent" property, or a "group" property instead of "tab" or "page" , that future layouts could use these properties in order to implement a nested hierarchy!

thebaldgeek commented 1 year ago

A critical aspect of mobile / responsive design for my existing Node-RED dashboard is for the table gadget to switch to card view on mobile sized screens.

Tables with more than 2-3 columns that are more than 20 or so wide are simply too wide to view on a mobile sized view port. As the view port becomes more portrait vs landscape, to have the table gadget switch to a card view becomes critical to eliminate horizontal scrolling. See the last three Tweets for an example: https://twitter.com/thebaldgeek/status/1664755773329780736?s=20

joepavitt commented 1 year ago

Thanks for the insight @thebaldgeek - will be sure to make that a feature

joepavitt commented 11 months ago

Generally speaking, we have responsive design already now in place. With the specific request above re: tables, we have https://github.com/FlowFuse/node-red-dashboard/issues/76 opened to cover this.