TexteaInc / funix

Building web apps without manually creating widgets
http://funix.io
MIT License
99 stars 11 forks source link

Editor with `possible` and `example` #3

Closed TURX closed 2 years ago

TURX commented 2 years ago

In the backend, we have defined the possible and example fields. The possible field overrides the example field, and it provides a list of acceptable values for this argument, while the example field only provides some sample values, and users can customize their own values for function calls.

forrestbao commented 2 years ago
  1. Are values in example fields default values? If so, how can a user fill an argument using values in the example field?
  2. An argument with possible field should be converted into an AutoComplete or Select widget in MUI as users are NOT allowed to enter values beyond provided.
  3. I am not sure whether the possible field is enforced in the example below (in the username field): image
TURX commented 2 years ago

Close as implemented

forrestbao commented 2 years ago

I suggest change "possible" to "whitelist".

TURX commented 2 years ago

https://github.com/TexteaInc/PyDataFront/pull/13 by Labelray introduces many breaking changes, and APIs like this are removed in that PR.

TURX commented 2 years ago

Changed possible to whitelist in https://github.com/TexteaInc/PyDataFront/commit/7dac3e106322d45df8a2b6eb0404d6f0c138f413 and https://github.com/TexteaInc/PyDataFront/commit/6ca9b3a50beba204af0e5d853de3f94bb52dbdbf.