Skip to content

fix: more consistent props across fields #296

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

palkerecsenyi
Copy link
Member

@palkerecsenyi palkerecsenyi commented Jul 16, 2025

Closes inveniosoftware/invenio-app-rdm#3103

Please release at the same time as inveniosoftware/invenio-rdm-records#2101 and #298


❤️ Thank you for your contribution!

Description

This PR contains some changes that will help make overriding deposit form fields more predictable and consistent once inveniosoftware/invenio-rdm-records#2101 is also merged.

  • Added the disabled and required props to SubjectAutocompleteDropdown, SelectField, TextField, RichInputField

  • Moved the helpText to be shown above ArrayField rather than below it for a neater appearance (this was already the behaviour in some fields of the deposit form, where a custom help text component was being added instead of simply using the prop, for example in RelatedWorksField). See the examples below:

    See examples

    Already existing manual helptext component:

    image

    New helptext added via prop:

    image
  • Added support for helpText to the SelectField

    See example image

* Added the `disabled` and `required` props to
`SubjectAutocompleteDropdown`, `SelectField`, `TextField`,
`RichInputField`

* Moved the `helpText` to be shown above `ArrayField` rather than below
it for a neater appearance
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.

Ensure consistent use of Overridable in deposit form
1 participant