node-red / flow-library

Node-RED Flow Library
Apache License 2.0
70 stars 44 forks source link

Enhancement: Parse paletteLabel and align #8

Open codmpm opened 7 years ago

codmpm commented 7 years ago

It would be nice to reflect the properties set by paletteLabel and align from the nodes in _palettenode.html so that the look is the same as in the palette in node-red's editor.

flows.nodered.org flow-nodered-org-node-visualisation

in comparison to the palette palette-node-visualisation

yoiang commented 5 years ago

If an owner could verify that the paletteLabel should be used and the type name isn't being shown for a specific reason I can make a PR with the change.

knolleary commented 5 years ago

paletteLabel should not be used. We display the type name as that is important information to share about the module.

yoiang commented 5 years ago

@knolleary for argument's sake, we don't want to show the end user a preview of what they would expect to see in their own editor? Will it be confusing that once the nodes turn up in the editor some are prepended with ui_ and some aren't?

knolleary commented 5 years ago

There's a balance to be struck between two different requirements; displaying the node as it appears in the palette, and listing the underlying node type.

Open to suggestions for addressing both.