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

ENH Convert ElementList into a functional component #1297

Conversation

GuySartorelli
Copy link
Member

This is needed to allow the use of hooks for dnd-kit.

This PR should change nothing about the user experience or functionality of the module, it should be a perfect like-for-like comparison to 6.0 without this PR.

Test everything you can think to test - sorting, saving, publishing, archiving, etc both from a page and an element level to check everything works the way it used to.

Issue

@GuySartorelli GuySartorelli force-pushed the pulls/6.0/elementlist-functional branch 2 times, most recently from 5b4f3fa to 6faa3c2 Compare December 16, 2024 02:03
@GuySartorelli
Copy link
Member Author

behat failure will be fixed by #1296 separately

Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

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

It appears to do the things correctly

One tiny change

increment
});
// These state setting methods are set by the ElementList react component
// setting saveAllElementst state to true will trigger a re-render in the react component
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// setting saveAllElementst state to true will trigger a re-render in the react component
// setting saveAllElements state to true will trigger a re-render in the react component

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@GuySartorelli GuySartorelli force-pushed the pulls/6.0/elementlist-functional branch from 6faa3c2 to b4b13dc Compare December 16, 2024 20:29
@emteknetnz emteknetnz merged commit f36f400 into silverstripe:6.0 Dec 16, 2024
22 of 24 checks passed
@emteknetnz emteknetnz deleted the pulls/6.0/elementlist-functional branch December 16, 2024 20:57
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.

2 participants