Skip to content
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

Visual Layout Editor #30

Closed
rcarmo opened this issue Jun 22, 2023 · 9 comments · Fixed by #1369
Closed

Visual Layout Editor #30

rcarmo opened this issue Jun 22, 2023 · 9 comments · Fixed by #1369
Assignees
Labels
epic A significant feature or piece of work that doesn't easily fit into a single release feature-request New feature or request that needs to be turned into Epic/Story details size:XL - 8 Sizing estimation point

Comments

@rcarmo
Copy link

rcarmo commented Jun 22, 2023

Description

One to the unappreciated (and somewhat obscure) features of the current solution is the integration with the main Node-RED environment and the ability to do a baseline visual layout without fully leaving the flow editor. The widget grid and sizing system is a bit clunky (the emphasis on units rather than percentages/free resizable elements, etc.), but it works pretty well for multiple scenarios (like the example below):

Have you provided an initial effort estimate for this issue?

I am no FlowForge team member

@rcarmo rcarmo added feature-request New feature or request that needs to be turned into Epic/Story details needs-triage Needs looking at to decide what to do labels Jun 22, 2023
@joepavitt
Copy link
Collaborator

Just thinking through this (out loud) a little.

We have a new set of events that we could add a widget-layout event too, or something along those lines.

The ideal (end goal) UX would be as follows:

  1. Enable "edit" mode (maybe via a shortcut, or option in the UI, or via config on the page in Node-RED, the latter feels clunky?)
  2. All groups & widgets then allow for dragging & dropping (for ordering) & corner/side grabbing for resizing.
  3. Upon re-ordering and/or resizing, the widget-layout event send a message back to Node-RED for the config to be updated (i.e. the options int he editor now reflect the new layout already).

The challenge is that how to re handle the nature of re-deploying? The NR editor would have changes not deployed, but that are actually reflected in the UI/Dashboard, because we've created those values locally in the client.

@joepavitt joepavitt moved this to 💡Should Have in Dashboard Backlog Jul 28, 2023
@bartbutenaers
Copy link
Contributor

@joepavitt,
Perhaps you might also find some useful ideas in Flexdash about this, like this demo from Thorsten to create a layout via the config screen...
Bart

@joepavitt
Copy link
Collaborator

Thanks for sharing @bartbutenaers - exactly what I had in mind.

@MarianRaphael MarianRaphael moved this from 💡Should Have to Backlog in Dashboard Backlog Aug 3, 2023
@Hyperlooper
Copy link

Hyperlooper commented Jan 17, 2024

First off, let me say thank you for this amazing project. I am blown away at the progress.

I wanted to put my hat in the ring to say that a visual layout editor would definitely be a feature I would miss if it were absent. For context, here's an example of a dashboard I am working on in dashboard 1.0 that is being used on a television kiosk. Would this layout be possible in 2.0 without a visual layout editor? (I'm asking out of ignorance, I don't currently understand how I would accomplish this layout sans the visual editor).

https://imgur.com/kEBqdgz

As an aside, I did a pretty deep survey of a ton of self-hosted 'dashboard' tools recently, and I concluded that node-red and dashboard 2.0 really fills and under-served niche here, especially if there's enough flexibility for layout and theming. There's really nothing else out there quite like it, and certainly nothing you can self-host.

@joepavitt
Copy link
Collaborator

HI @Hyperlooper - happy to help, although can I get you to post into https://discourse.nodered.org/tag/dashboard-2 please? Want to keep the GitHub issues focussed on features, etc. rather than assisting particular use cases and projects.

I do have answers, and can help, just want to make sure others can see it too, and the forums are a better place for that. A topic with "Achieving this layout in Dashboard 2.0" would be appropriate, with your screenshot included.

@rcarmo
Copy link
Author

rcarmo commented Jan 26, 2024

HI! I would like to see some kind of statement regarding a visual editor as welll. I rely on the old one for quickly laying out things, so it's quite an important feature that applies to multiple layouts.

@joepavitt
Copy link
Collaborator

It's definitely in the plans, but not in the very short term just yet as we have other priorities: https://github.com/orgs/FlowFuse/projects/15

@SuperNinja73
Copy link

another idea for the layout editor: the current Dashboard v1 !
layout editor

@joepavitt joepavitt moved this from Backlog to Up Next in Dashboard Backlog May 23, 2024
@joepavitt joepavitt added size:XL - 8 Sizing estimation point and removed needs-triage Needs looking at to decide what to do labels May 23, 2024
@joepavitt joepavitt added the epic A significant feature or piece of work that doesn't easily fit into a single release label Jun 26, 2024
@joepavitt joepavitt self-assigned this Aug 27, 2024
@joepavitt
Copy link
Collaborator

Have an option to use https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage in order to enable layout editing directly in a Dashboard session

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic A significant feature or piece of work that doesn't easily fit into a single release feature-request New feature or request that needs to be turned into Epic/Story details size:XL - 8 Sizing estimation point
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants