Closed FRosner closed 6 years ago
Seems okay. But what happens when we start using more complex types? Say for example Regex/Lists/Sets/Ports etc. Finding icons might get harder. Maybe just the tooltip is enough? Since we'd have more flexibility with strings.
Finding icons might get harder. Maybe just the tooltip is enough? Since we'd have more flexibility with strings.
I agree that it might get harder to find icons. On the other hand icons are more intuitive and smaller. If there is no icon available we might as well design one. A tooltip alone is not so nice as it takes some time to load, is not obvious, and not available on mobile.
Despite the fact that we need to have icons for all the upcoming types, what do you say about the ones I chose and the way it is displayed?
If there is no icon available we might as well design one
Well if we do that we may need to design it for all types otherwise the design won't be consistent across types. Generally speaking I would prefer to avoid this.
About intuitiveness we are basically looking at icons thinking this image may represent type T. Looking at a hash for example a user could conclude that it is a number but does not really know that the number must be an integer (so there is still doubt). And for the decimal the '5.1' sign may be standardized for something else (sound 5.1). For someone who already knows what it is generally used for, it might even become confusing to see it here. What I mean to say is that the icons are not a value add in every case. They work for simple forms but the forms in Broccoli are a bit more 'technical'. Plus it is hard to maintain because of the designing thing.
As for the design itself I think it is good. Does not change too much of what was being done earlier and even though it occupies a tad more space than I would prefer it is still acceptable.
@sohaibiftikhar can you please review again?
LGTM
I think it's good to somehow show the parameter type in the front-end. Otherwise the user has to guess whether he has to enter a number or a string, e.g.
I'm not sure about the visuals. It looks a bit clumsy like this. @sohaibiftikhar what do you think? What do the others think?
fixes #365