-
Notifications
You must be signed in to change notification settings - Fork 860
feat(DragAndDrop): Switch from react-beautiful-dnd to its fork @hello-pangea/dnd #6868
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
feat(DragAndDrop): Switch from react-beautiful-dnd to its fork @hello-pangea/dnd #6868
Conversation
|
jenkins test it please |
| ); | ||
|
|
||
| expect(takeSnapshot(appDiv)).toMatchSnapshot(); | ||
| expect(screen.getByTestSubject('draggable')).toBeVisible(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really love how much the new fork cleaned up our tests!
I think I'd like to leave in just one it renders snapshot here to get a sense of the DOM output. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that makes sense. I added it :)
cee-chen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving my above comment as optional - if you're good with one it renders snapshot, feel free to make the change and merge it in. If not, merge away :)
…and rename test cases
…-pangea/dnd (#6868) * feat(DragAndDrop): Switch from react-beautiful-dnd to its fork @hello-pangea/dnd * test(EuiDraggable): add snapshot test for the basic render assertion and rename test cases
…-pangea/dnd (#6868) * feat(DragAndDrop): Switch from react-beautiful-dnd to its fork @hello-pangea/dnd * test(EuiDraggable): add snapshot test for the basic render assertion and rename test cases
…-pangea/dnd (#6868) * feat(DragAndDrop): Switch from react-beautiful-dnd to its fork @hello-pangea/dnd * test(EuiDraggable): add snapshot test for the basic render assertion and rename test cases
…-pangea/dnd (#6868) * feat(DragAndDrop): Switch from react-beautiful-dnd to its fork @hello-pangea/dnd * test(EuiDraggable): add snapshot test for the basic render assertion and rename test cases
…-pangea/dnd (#6868) * feat(DragAndDrop): Switch from react-beautiful-dnd to its fork @hello-pangea/dnd * test(EuiDraggable): add snapshot test for the basic render assertion and rename test cases
Summary
react-beautiful-dndis in maintenance mode and doesn't support React 18 or StrictMode. This PR fixes #6187 and switches to using a forked and maintained version of RBD -@hello-pangea/dnd. Both packages share the same API and are cross-compatible as long as EUI consumers aren't importing DND elements from both EUI and react-beautiful-dnd.QA
yarnandyarn startThis code doesn't pass type checking because of differences in types between
@types/react@17and@types/react@18. This will be fixed when #6827 is merged tofeature/react-18and/or in following PRs.General checklist