squiggle icon indicating copy to clipboard operation
squiggle copied to clipboard

Calculators fields should have ``isOptional`` flag

Open OAGr opened this issue 2 years ago • 1 comments

  • x Is new feature

Description of suggestion or shortcoming:

When this feature is set, then when the field is empty, it should return an empty string or similar. This should be picked up by the underlying component.

This will be useful here, at least: https://squigglehub.org/models/ozziegooen/met-calories-calculator.

It could be nice to label this field as optional in the UI, but it's not a major concern at this point.

OAGr avatar Dec 29 '23 06:12 OAGr

Would go well with: https://github.com/quantified-uncertainty/squiggle/issues/2932

OAGr avatar Jan 09 '24 21:01 OAGr