I discussed with one of my colleagues and he said this: āIt should allow you to map fields from other nodes using drag and drop, rather than having to constantly search for the exact syntax and manually enter the names of the nodes in the backend. Also, when you rename a node before a code node, it should automatically update the name in the code within the code node, so you donāt have to do it manually.ā
Hey community!
Thanks a lot for all the feedback thatās very helpful!
Related to the request to drag/drop input data:
if the node is set to āRun Once for All Itemā, what would you expect to drag?
In that case, the node works on the whole array of items, which you access with $input.all(). How do you expect drag/drop to work here?
You know, itās one of those things where when I drag the item, I expect the item to appear there with the curly brackets, whatever the normal behavior elsewhere
So youād have two available routes,
first is, whatever youāre dragging, give me at least the path up until $json or item.
So, if iām dragging $json.body.group.item , give body.group.item
Otherwise, based on whatās selected, either Run Once for All Item or All at once, put the right prefix?
Iām a user with basic understanding of javascript and this is my experience. I just want to drag the item into where Iām at right now in the block of code. I love the feature because I donāt have to stress about where [n] is and whatnot
NPM packages on the cloud version. I am a relatively new cloud user for n8n, and the most frustrating part has been trying to work around this restriction. I so far have been able to work around all the issues. But, for new users, I think being able to just throw in an npm package and work with known tools would be a much better user experience.
Code window could extend further vertically. When editing on a 4k screen, the vertical window size is limited. There is just empty space below it.
If you have longer names for the nodes, you canāt see what you are selecting with the auto select.
Reusable functions. I have to validate the userās webhook post on every request using firebase auth. So, if I could just reference that function, it would be much simpler to build and maintain. If I change something that could be reusable, I have to change it for every webhook.
You canāt insert the inputs into the code, like you can with all the other nodes.
As a newish user, the way that you have to input parameters is a little confusing. You donāt know if you are selecting the right variable from a previous node. I have got it now (mostly), but if you could automatically see what the value was of the variable that you are inputting (like a popup), then you would be able to figure out the system faster.
Yes, I just mean, in the left hand panel, you canāt drag values from the left panel into the code editor in the center panel, like you can with other nodes.
In our case, my colleague refers to sth similar to Make, like displaying a collection of items from all the nodes; when you click on a field to populate in the code editor.
If it is an array, prompting for which index to use would be great, or allow dragging and dropping the array elements from a nodeās output directly.
Another one I thought of. This is pretty minor, but it might be nice to have a console output below the code, so you can console log stuff and have it show up without using dev tools. Pretty minor, as you can just use dev tools, but for ux it might be useful.
My feedback would a combination of some of the requests above for:
drag/drop inputs
some boiler plate templates that help you to get started
improved AI assistant (I havenāt been able to get anything functional from the current assistant and always go elsewhere for this)
These could intersect in a number of ways:
Basic templates with drag/drop inputs can be used as a starting point for customising the code
You could have a form where you drag the input fields you want to work with and then a text box where you write instructions for the code you want the AI assistant to produce.
Have a specific option for to describe to the the AI assistant of problems with current code (e.g. based on the log messages) or changes you want made.
Going hand in hand with this, showing the value of the used expressions like in other nodes would be very nice. Instead of doing all kinds of console.log() āmagicā, needing to leave the node, execute, see browser console, go back to node to change something, etc.
Having a view like you have for expressions, where you have $input.all() in the code, and when your cursor is within that string of characters, the expression is marked green and you have a split window below that shows the current value of $input.all().