-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat: autolabel fields when omitted #42
Conversation
Blocks must have a label for pill text. |
d32f6d2
to
a5315c9
Compare
Ready for review |
src/admin/components/forms/DraggableSection/ActionPanel/types.ts
Outdated
Show resolved
Hide resolved
79d2916
to
c57d688
Compare
@@ -7,6 +7,7 @@ export type Props = Omit<ArrayField, 'type'> & { | |||
path?: string | |||
fieldTypes: FieldTypes | |||
permissions: FieldPermissions | |||
label: string |
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.
This should also be allowed to be set to false as well, right? As the Blocks type?
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.
Ugh, changing this one had a lot of implications, let's discuss.
6bc7c64
to
195932d
Compare
label: false
opts out of getting labeledlabel: 'My Custom Label'
overrides auto-labelingResolves #37