-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
DataForm: make it work nicely with bulk editing #65685
Comments
@jameskoster this would need some design feedback. Is this the target we should aim to? It means:
|
@oandregal Do you think that this issue should be resolved on data views library level or on the consumer side? At least, for now, I more inclined to this latter approach. In the case of the page view, I would update this code: gutenberg/packages/edit-site/src/components/post-edit/index.js Lines 46 to 59 in 62e0e6f
to something like this: const fields = useMemo(
() =>
_fields?.map( ( field ) => {
if ( field.id === 'status' ) {
return {
...field,
elements: field.elements.filter(
( element ) => element.value !== 'trash'
),
};
}
// Add another condition we render `Mixed` only when values differ
if ( ids.length > 1 ) {
return {
...field,
render: ( { value, onChange } ) => <>Mixed</>,
};
}
return field;
} ),
[ _fields, ids.length ]
); |
There are two issues here:
|
Sorry for not being clear, with Thanks for the feedback! I will start to work on this soon! 🙇 |
Part of #59745
When selecting multiple items and open the QuickEdit, we need to make sure to provide a good experience.
Questions to resolve:
The text was updated successfully, but these errors were encountered: