-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Introduce <TextArrayField>
and use <TextArrayInput>
/ <TextArrayField>
in guessers for scalar arrays
#10939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
TextArrayInput
/ TextArrayField
in guessers for scalar arrays<TextArrayField>
and use <TextArrayInput>
/ <TextArrayField>
in guessers for scalar arrays
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect ✨, I only have a tiny doc suggestion
Co-authored-by: Madeorsk <[email protected]>
|
||
The following props are available for `<TextArrayField>`: | ||
|
||
| Prop | Type | Required | Description | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: the Required column is the second one in all prop tables, here it's the third. Also, we usually include a Default column.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay I'll change that on master
UPDATE: I mean on next
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: d785636
Problem
EditGuesser
assumes that every array is an array of objects. If we detect values that are scalar arrays, the guesser will use aTextInput
, which is not correct.Solution
Detect scalar arrays in introspection, and use:
TextArrayInput
inEditGuesser
TextArrayField
(a list of Chips in a Stack, to be invented) forListGuesser
andShowGuesser
How To Test
Additional Checks
master
for a bugfix or a documentation fix, ornext
for a featureAlso, please make sure to read the contributing guidelines.