Toolbar for actions in the flow editor

Hi folks,

The list of available actions becomes bigger at every Node-RED release. Lots of very useful actions have been added meanwhile.

But I have to admit that I use the actions very infrequently ( :relaxed: ). My brain is not capable to remember shortcut keys, and my impatient nature just prevents me from searching through the action list ...

I would find it very useful if these actions would also become available via an icon in a toolbar. Something like this:

Which means that every action has its own icon, and can be visible in the toolbar or not.
And of course it should be possible to hide the toolbar, if you want to have more space for your flows:

image

I have a hard time to believe that nobody has ever asked this feature before. But can't find it on Trello or on Discourse. Perhaps I have been searching for the wrong keywords...

I'm aware that it won't be easy to implement: e.g. some actions belong together (functionally), so they perhaps need to be displayed in the toolbar also together. And people will probably start customizing it. And so on...

But it would be a very useful feature for people like me. And it would be a next step to make Node-RED accessible for less technical skilled users...

Thanks !!!
Bart

5 Likes

I second this motion :stuck_out_tongue: KB shortcuts are for freaks'o'nature that have functional memory :laughing:... not poor little old me :crazy_face:

EDIT Perhaps making it a customizable toolbar, by adding a checkbox in the below mentioned scrollable action items list, for displaying an icon as desired?

1 Like

Hi Bart.

I am just wanting to ask what this will actually achieve?

Connecting nodes is done by the mouse and direct input.

Looking at the icons in the example you show above...... I'm not seeing what they mean.

The one you have shown as active (?) (the yellow arrow..... What does it do?
To the right there is the icon with the 4 arrows...
Then the hand icon. Which I guess is for scrolling. But that is done by MMB and dragging.
Though: yes, that does catch me out sometimes....

Zooming... (I guess is the next one).
That is already at the bottom right of the edit screen - isn't it?

Finding and clicking on an icon instead of a buried action (or heaven forbid, remembering the KB shortcut... if any) would be much like the connecting of nodes with a mouse... easier :smiley:

I think that was just a copy/pasted example from a word processor program or something.

Ok, yeah... But to me it doesn't help me to understand what is meant to be achieved.

Grouping can be ......

Examples of what is wanting to be done would be handy to help the case/cause.

Basically use a toolbar icon instead of clicking on Hamburger - View - Action List - then scrolling to find the wanted action... and finally clicking on said action (hoping not to hit the wrong one because they are named similar at times... Ask me how I know :flushed: )

Yikes!

I had never seen that at all!

(A whole new world has just appeared!) :wink:

I get the confusion with key assignments though. (and even mouse controls for scrolling, etc)
I use a few different programs and each - of course - are different.
The number of times I trip up using the wrong mouse controls for scrolling (etc) is on going.

1 Like

I guess the only problem is: finding appropriate icons.

Because the icon needs to be intuitive to what it is doing - or else it is hurting the idea behind it.
If it isn't, you are only moving the problem from: remembering keys to do things to: remembering what icon does what.

eg:
Group selection:
Two icons some to mind.
(and using a paint programs icons this time)
There is the crop icon
of there is the lasso icon. (Probably better)

Sorry, but only that I am not using those things as much - maybe - as others, it isn't a problem for me. But as I said: You really need intuitive icons for this, or you are just opening another can of worms.

Gives the HMI devs something to do besides coding :stuck_out_tongue:

Some of the icons could use similar iconology as is already used elsewhere

Eg. I commonly use the action list to enable/disable selections of nodes (BTW, no KB shortcuts availed for that). The whole flow can already be enabled/disabled using the side bar, so those icons could be repurposed for selected nodes as well

image

But unlike KB shortcuts, icons can have popups with words...

image

Hi @Gunner,
Indeed an action could have some properties in the :

  • Boolean indicating whether the action is *visible in the toolbar or not.
  • Text that represents the (e.g. FontAwesome) icon name, which has a default value that might be overriden by the user.
  • (Optionally) Text that represents the group name.

And those actions could be edited in the User Settings:

image

So perhaps instead of using a group name, another way of working would be to group them here somehow in the editableList (e.g. by adding spacers between groups...).

Or you can drag icons in the toolbar (similar to dragging tabsheets), which is the same as dragging them in this editableList.

I had not added this information in the original post, too avoid talking too quickly quickly about implementation details. Which is one of my other bad habbits :relaxed:

I spend quite some time in Node-RED, but only in developing nodes. Which means I have few time left to use the flow editor. And at those few moments in the flow editor, then I e.g. want to align nodes. And then I keep aligning them manually, just because there is not the toolbar that I'm used to work with ...
I completely understand that the actions will be very usefull and fast for people that use the flow editor very often, but not for me ...

Oh no... I just googled the keywords "flow editor toolbar" and did a copy/paste on a Node-RED screenshot. Because I am not going to spend my valuable free time in screenshots, when I don't know if my feature request will be accepted anyway. So I have no idea what those icons represent.

Damn. Busted already :rofl:

Well it is very simple. There are two kind of folks on this blue planet:

  • The ones that can remember shortcuts. So they like shortcuts and they can use them very fast.
  • The ones that can't remember shortcuts. So they dislike shortcuts and they love toolbars.

I assume you belong to the first group, and I certainly to the second group. I don't think there is any way that folks from one group can convince folks from another group. So I am not even going to try it...

The first group has their shortcuts already, so it would be very nice if they would openminded and allow the second group to have their belovely toolbar :slight_smile:

Totally true. A badly choosen icon will mislead us over and over again...

But I am going to wait a bit now, before starting to discuss about which toolbar icons to use. Would love to hear the opinion from the dark forces of Node-RED about the toolbar itself. Because the toolbar proposal might not be accepted, or there is no time to implement it in the the near future, or ...

I'd say there are three groups :wink:

  • the third group loves both worlds and will use shortcuts if it makes sense (for example Ctrl-Shift D) .

Hovering over an icon should not only show the description but also the linked shortcut. That way it will be easy to remember, after a while, hopefully.

1 Like

Yes you are absolutely right. No arguments agains that :wink:

Bart,

I wasn't wanting to attack your effort. I get that my view of NR is different to other people's, ad there are people who code rather than use.

I'm in the latter. You are in the former. In many ways I would like to enjoy both worlds.

I hope that clears up any misunderstanding. Again, it wasn't meant to be an attack. I was only asking.

I hope someone who is good with graphics reads this and offers to create the icons needed.
(No, that isn't me sneaking in an offer. I am not good with graphics stuff. Though I may have a go if given the specs for what is needed.)

Hey Andrew,
Oh no. I absolutely had not the impression that you were attacking this proposal.
I am already glad to get some feedback!
There is nothing more worse than announcing something, and nobody responding to it...
We can only get a decent proposal if we get to know how different kind of users would do it.

Moreover: every time that you append stuff to this discussion, the chances are getting bigger that the dark forces of Node-RED accidentally read my feature request. Without me having to mention them explicit.

So please keep going :rofl:

2 Likes

@BartButenaers I've said before, I do keep a closer eye on this category than others. There is no need to goad a response - particular when its the weekend and I'm not sat glued to the forum.

My honest answer is I'm not sure whether a toolbar is a good fit or not. I wary of over-cluttering the UI, and the toolbar would be a finite amount of space for an ever growing list of actions.

Making it customisable could be an option, but I'm also wary of giving the user more choices to deal with.

Putting aside the technical details of how it would work (such as choices of icons, whether it should be customisable etc etc etc), the issue you state is about keeping track of what actions are available.

I think it is true to say the list of actions will always outgrow any screen real-estate, but there are things we can do to help.

In the 2.1 release, the main menu has been extended to have both an 'Edit' menu - with more of the relevant actions listed:

As well as a new 'Arrange' menu that (spoilers) exposes a bunch of the new actions coming in the release:

You can also see in those screenshots that we now list keyboard shortcuts on the menu.

(You can see these things being developed over the last few weekly live streams I do - Twitch)

I appreciate this isn't the same convenience as having a button directly in the UI for your favourite action, but it will help with general discoverability of commonly useful actions.

The other piece I wanted to explore was the toolbar we already have at the bottom of the workspace - where the zoom buttons are. That whole strip is already a pluggable component that can have extra items added via an API. For example, if you have nrlint installed, you get a summary of the lint results with a button to open the lint sidebar:

image

My todo list includes adding Project status to that footer - to give more convenient access to git status and things like that.

I don't see that becoming a full-blown toolbar in the way you describe, but there could be a way to expose actions down there.

I absolutely don't expect anybody to be here fulltime on the forum, so try to avoid mentioning people. Was only joking with the guys...

Indeed most people would like to have as much space as possible for their flows, which is why it should be able to hide it.

Ah that looks very interesting indeed!!!
Such a logical structure of the actions absolutely helps, instead of having to search through a long flat list of actions.

Yes indeed, that is a big improvement to find an action quickly. That will certainly be inviting enough to start using actions more and more...

Did you have ever some bad experiences with this kind of customizations? I can't imagine a real life case at the moment where things could go wrong with a toolbar, but I assume some users can be very inventive and (ab)using it in a way that it isn't designed for ...

Thanks for your extensive feedback !!

1 Like

Please don't turn it into a monstrosity like the MS ribbon - where you spend half your life puzzling over what all the stupid hieroglyphs mean and laboriously hovering over each in turn to be able to read the words. A few select well chosen and clear icons can be useful - But the ribbon is a mess where a well ordered hierarchical menu would be better - oh like MS used to use...

(Yes there are a few 'office' warriors who know all the glyphs and the ribbon does work for them - I guess for the developers it is the same. But for most people it is a nuisance.)

3 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.