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

Add SimpleFormConfigurable component #8395

Merged
merged 14 commits into from
Nov 18, 2022
Merged

Add SimpleFormConfigurable component #8395

merged 14 commits into from
Nov 18, 2022

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Nov 15, 2022

SimpleFormConfigurable

sx={{
display: 'block',
'&.RaConfigurable-editMode': {
margin: '2px',
Copy link
Member Author

Choose a reason for hiding this comment

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

MAde necessary because the outline is invisible for elements used as children of Paper, which has overflow:hidden

useSetInspectorTitle('ra.inspector.datagrid', { _: 'Datagrid' });

const [availableColumns] = usePreference<ConfigurableDatagridColumn[]>(
Copy link
Member Author

Choose a reason for hiding this comment

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

refactored to FieldsSelector (which is also used by SimpleFormEditor

</Root>
<Popover
Copy link
Member Author

Choose a reason for hiding this comment

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

I had to move from Badge to Popover because there is no other way to make the customize button break out of its parent container when that container has overflow:hidden

@fzaninotto
Copy link
Member Author

Back to WIP, I forgot unit tests

@fzaninotto fzaninotto added RFR Ready For Review and removed WIP Work In Progress labels Nov 16, 2022
@fzaninotto
Copy link
Member Author

And Ready For Review

docs/SimpleForm.md Outdated Show resolved Hide resolved
Co-authored-by: Aníbal Svarcas <WiXSL@users.noreply.github.com>
@slax57 slax57 self-requested a review November 17, 2022 13:29
Copy link
Contributor

@slax57 slax57 left a comment

Choose a reason for hiding this comment

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

Otherwise, everything seems good! It works like a charm ☺️

packages/ra-ui-materialui/src/form/index.tsx Show resolved Hide resolved
@slax57 slax57 added this to the 4.6 milestone Nov 18, 2022
@slax57 slax57 merged commit 93e63a1 into next Nov 18, 2022
@slax57 slax57 deleted the simpleformconfigurable branch November 18, 2022 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants