I totally understand the desire not to pollute the workspace but lets not forget: Rarely (be honest) do folks add docs to their nodes. If they do, it is typically the function node or a subflow.
So long as it is subtle (low opacity, can reveal on hover etc) I think we can make this work?
I abused my previous experiment to count the number of nodes (admittedly only in my test instance) having descriptions. 179 though a couple of those were just tests. That's out of 1279 nodes in total.
Or just read the flows.json using a JS script or function node, and count all nodes with a description property.
One may even go as far as generating a flow documentation from that. Did that once for a larger project to get a an overview of specific node types and their docs.
if ( n.info ) {
$(`#${n.id}`).append('<g class="red-ui-flow-node-jkinfo" transform="translate(5,5)"><circle cx="5" cy="5" r="5"></circle></g>')
// NB: You have to re-render the container (ref: https://stackoverflow.com/a/36305466/1309986):
$(`#${n.id}`).html($(`#${n.id}`).html())
}
(Obviously amend to different appearances as desired)
Thanks for that, the line that escaped me was the re-rendering thing - SVG content needs re-rendering, normal HTML is updated automagically. Hence I used the createElementNS since that updates the SVG automagically.
In the browser, everything looks like XML.
Btw if (n.info)... has the disadvantage that a " " info is true, hence my trim() thing.
I really like this approach, but it looks like the topic has fallen asleep. In my opinion, if someone really takes the time to document the functionality of a node so that they don't have to familiarize themselves with it again (years?) later, I think it's definitely worth some space in the workspace for an additional icon to ensure that this information is read again later.
How (hidden) the documentation to a node is implemented right now, I will keep doing my workaround and simply add an additional 'comment'-node right above the node that I want to leave a comment. This is really polluting the workspace but otherwise I am pretty sure that I won't find my comments later again
That's not a bad idea but doesn't really resolve the original request which I agree with. Some (possibly optional) method of knowing that a node/group/tab has some additional data would be a good thing I think.
I'd be happy if there were an easy(ish) way to identify whether something had notes using a CSS Selector - that would be good enough for me since, as you say, you could then put your own CSS in place to show things however you want.