Simplified presentation of Nullable/Option/Optional types
Real-time actions on data. A building block for low-code applications
Brought to you by:
lukaszlata
Originally created by: piotrp
Currently these types are displayed on GUI as: plain type (eg. Long, the same as real Long type), Option, Optional.
User shouldn't care about this - things should be optional or not. If possible we should hide Option/Optional from user interface. We could display these types as "{originalType}?", eg. "Long?". That notation could be also used in autocompletion popups to indicate nullability of parameters and returned values.
Originally posted by: lciolecki
This don't need design. It's development case to show
Longinstead ofOption[Long]/Longinstead ofOptional[Long]. Am I right @Crack?Originally posted by: witekw
Do we want to show that a field is mandatory or optional? Do we show "This field is mandatory and can not be empty" just after opening the modal when there is no default value?
Originally posted by: fi-
After opening node details user should be able to identify required fields. We need to visually indicate which fields are required ones.
"This field is mandatory and can not be empty" - this red message and red borders around input should not be visible just after opening node. It should appear after validation. We should not validate before user fills the input.
Originally posted by: arkadius
@lciolecki IMO we shouldn't handle Option/Optional, Nullable is enough. @fi- has right that we should switch from "punishing logic" because user not filled something to "advising logic", what should be filled.
Originally posted by: lciolecki
I agree with that we should run validation after put something in input or after press save button.