Skip to content
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

Merged
merged 15 commits into from
Apr 17, 2021
Merged

feat: autolabel fields when omitted #42

merged 15 commits into from
Apr 17, 2021

Conversation

denolfe
Copy link
Member

@denolfe denolfe commented Jan 27, 2021

  • Field labels get labeled automatically if left undefined.
  • label: false opts out of getting labeled
  • label: 'My Custom Label' overrides auto-labeling

Resolves #37

@denolfe
Copy link
Member Author

denolfe commented Feb 3, 2021

Blocks must have a label for pill text.

@denolfe
Copy link
Member Author

denolfe commented Feb 5, 2021

Ready for review

@@ -7,6 +7,7 @@ export type Props = Omit<ArrayField, 'type'> & {
path?: string
fieldTypes: FieldTypes
permissions: FieldPermissions
label: string
Copy link
Member

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?

Copy link
Member Author

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.

@denolfe denolfe force-pushed the field-autolabel branch 2 times, most recently from 6bc7c64 to 195932d Compare March 9, 2021 03:34
@jmikrut jmikrut merged commit b383eb6 into master Apr 17, 2021
@denolfe denolfe deleted the field-autolabel branch July 7, 2022 02:38
jacobsfletch pushed a commit to jacobsfletch/payload that referenced this pull request Oct 15, 2023
jacobsfletch pushed a commit to jacobsfletch/payload that referenced this pull request Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-generate field labels if none specified
2 participants