Switch the drag and drop/sortable lists libraries to a better alternative #12580
Labels
dependencies
Pull requests that update a dependency file or issues that talk about updating dependencies
status: design required
Describe the bug
Currently we're using two libraries for the drag and drop / sorting functionality available in different features:
These two libraries are Dragon Drop and html5sortable.
Expected behavior
Ideally we would use only one library for the same functionality, and that's what @alecslupu started doing on PR #12479. He decided to ditch "Dragon Drop" and use html5sortable, as the later one seems more maintained, but in the process he stopped as:
So, we're in the process of seeing the different alternatives and pros and cons between them. The requirements are:
Just for comparison purposes, I've added the current two libraries that we're planning moving from it.
Alternatives
Dragon Drop
GitHub: https://github.com/schne324/dragon-drop
Site & demo: https://schne324.github.io/dragon-drop/demo/
NPM: https://www.npmjs.com/package/drag-on-drop
One of the current libraries that we're using.
It didn't have any release nor commits in the last years.
Only 4 contributors.
Stats
SCC
html5sortable
GitHub: https://github.com/lukasoppermann/html5sortable
Site & demo: http://lukasoppermann.github.io/html5sortable/
NPM: https://www.npmjs.com/package/html5sortable
One of the current libraries that we're using.
It didn't have any release nor commits in the last years.
Actively looking for a co-maintainer
Only 2KB (minified and gzipped).
Built using native HTML5 drag and drop API.
Stats
SCC
Sortable
GitHub: https://github.com/SortableJS/Sortable
Site & demo: https://sortablejs.github.io/Sortable/
NPM: https://www.npmjs.com/package/sortablejs
Supports touch devices and modern browsers (including IE9).
Built using native HTML5 drag and drop API.
Big community.
Stats
SCC
interact.js
GitHub: https://github.com/taye/interact.js
Site & demo: https://interactjs.io/
NPM: https://www.npmjs.com/package/interactjs
Supports touch devices and modern browsers (including IE9).
Supports more features (see the demo), but the most important for us (sortable lists) seem to be only available in the Pro version (to be released).
Stats
SCC
Other alternatives
In the research process there were some libraries that were discarded as they don't seem to be maintained anymore:
Extra data
Acceptance criteria
All these features work with sorting:
At the moment the most promising is Sortable. We kindly ask the community to provide more alternatives in the next following weeks, so we can reach to an agreement April 5th.
The text was updated successfully, but these errors were encountered: