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

Volto form block fixes #6370

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open

Volto form block fixes #6370

wants to merge 31 commits into from

Conversation

robgietema
Copy link
Member

@robgietema robgietema commented Oct 3, 2024


If your pull request closes an open issue, include the exact text below, immediately followed by the issue number. When your pull request gets merged, then that issue will close automatically.

Closes #

Copy link

netlify bot commented Oct 3, 2024

Deploy Preview for plone-components canceled.

Name Link
🔨 Latest commit dc2c6a4
🔍 Latest deploy log https://app.netlify.com/sites/plone-components/deploys/6765bdbd98b57600084a801e

Copy link
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add release notes and fix the lint errors and failing unit tests.

@davisagli davisagli requested a review from sneridagh October 4, 2024 00:59
@stevepiercy
Copy link
Collaborator

This PR should also render its Storybook. We recently merged a PR that should fix the pull request preview build on Netlify:
#6410

The Netlify build currently fails to recognize changes in the most recent commit:
https://app.netlify.com/sites/plone-components/deploys/670fb4bff3f6740008e0d09f

@robgietema robgietema force-pushed the volto-form-block-fixes branch 2 times, most recently from 6d9bc8a to be53373 Compare November 5, 2024 12:55
@robgietema robgietema force-pushed the volto-form-block-fixes branch from 988b47e to dd5a050 Compare December 20, 2024 18:55
@robgietema robgietema force-pushed the volto-form-block-fixes branch from dd5a050 to dc2c6a4 Compare December 20, 2024 18:55
Copy link
Collaborator

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed only the .pot and news, both of which look good, with a couple of MyST markup enhancements and a question.

Will this PR need developer documentation? For example:

Add taken slugs to slugify helper. @robgietema
Add filter choices, additional choices and sort to select widget. @robgietema
Add max size and accept type checks to file widget. @robgietema
Fix bug with pressing enter in blocks form. @robgietema
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which bug is that?

Add filter choices, additional choices and sort to select widget. @robgietema
Add max size and accept type checks to file widget. @robgietema
Fix bug with pressing enter in blocks form. @robgietema
Add option to pass custom widget config to field component. @robgietema
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Add option to pass custom widget config to field component. @robgietema
Add option to pass custom widget `config` to field component. @robgietema

Add max size and accept type checks to file widget. @robgietema
Fix bug with pressing enter in blocks form. @robgietema
Add option to pass custom widget config to field component. @robgietema
Add optional widgets config to form component. @robgietema
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Add optional widgets config to form component. @robgietema
Add optional widgets `config` to form component. @robgietema

import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose } from 'redux';
import { filter, includes, map, without } from 'lodash';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recall that we want to remove lodash and use either plain JavaScript or lodash-es instead. See the PLIP at #6350.

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.

4 participants