-
Notifications
You must be signed in to change notification settings - Fork 29
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
Simplify drag and drop integrations #2126
Conversation
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.
Let's close #1743 if this is as far as we are going.
@@ -26,16 +24,14 @@ export const Draggable: React.FC<DraggableProps> = ({ | |||
disabled, | |||
dropTarget, | |||
onDrop, | |||
onDragOver, | |||
onDragEnter, | |||
onDragStart | |||
// eslint-disable-next-line sonarjs/cognitive-complexity |
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.
[Q] Is this still needed?
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.
from the looks probably but thought I would check
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.
It passes sonar tests but not codeclimate. I checked.
Code Climate has analyzed commit a8c6a36 and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 96.0% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.7% (0.0% change). View more on Code Climate. |
Closes #1743
Would be quite hard to make just one integration after all. I didn't realize that the one for the experiments table does not work as a container since draggable items are deeply nested inside markup. What I was able to do though is to clean up that integration to use only what is necessary and not depend on the other integration (mainly the
makeTarget
function).