feat(client): Entity field custom attribute UI #6066
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of: #5989
PR Details
The forth PR for the epic - add the client-side functionality for EntityField.CustomAttrbute
🤖 Generated by Copilot at 3274ee3
Summary
🏷️🛠️🆕
This pull request adds support for custom attributes for entity fields, which are additional properties that users can define for their fields in the entity editor. It modifies several GraphQL queries and mutations, as well as React components, to include and display the
customAttributes
field. It also fixes a minor issue with theOptionSet
component.Walkthrough
customAttributes
field to various GraphQL queries and mutations to support the new feature of custom attributes for entity fields (link, link, link, link, link, link, link, link, link, link)TextField
component to render thecustomAttributes
field in theEntityFieldForm
component, which is used to create or edit an entity field (link, link, link, link)onKeyDown
function and prop from theForm
component, which were used to prevent the default behavior of submitting the form when the user presses the enter key, and rely on the default behavior of theForm
component instead (link, link)type
prop to theButton
component, which is used to render an option in theOptionSet
component, which is used to create or edit an option set field, and set it to "button" to prevent the default behavior of submitting the form when the button is clicked (link)PR Checklist
npm test
doesn't throw any errorIMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.