Closed alexandru-elisei closed 3 years ago
Looks good to me. Let us keep it enumerated from zero - it is a tool for geeks anyway.
I've implemented the indexes for fields that are part of numerically indexed array. I've created a branch based on the web interface branch, which is pending integration.
Do you think I should merge the two branches into one single pull request?
I've opted to implement this feature on a separate branch because the web interface code is already very complex and I didn't want to add even more complexity in case I need to change something.
Do you think I should merge the two branches into one single pull request?
Yeah, it might be the best at this stage.
Done, the web interface is now final. You can review the pull request.
I have experimented with several ways to differentiate the fields for array variables, and what I think the best idea is to have the array index before the field.
For example, let's say that I have the following dependencies in the recipe:
On the web interface the fields will appear like this:
If it's not exactly clear how this will look like I can upload a screenshot.
With nested array variables (for example, capabilities):
In case it might look a bit strange to start the numbering from 0 (e.g
0. Plugin
): array indexes start at 0 with most programming languages, I would like to keep it that way on the web interface too. But if it looks too weird I can change it (I'll add 1 to the array index).