-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adding drag and drop of mails using the SortableJs library #543
Adding drag and drop of mails using the SortableJs library #543
Conversation
Here is the link of the task: https://avan.tech/item44205-Cypht-Add-drag-and-drop. |
Thanks for taking stab at this! Before anyone will dive into to the source I wonder whether ~3.7k SLOC library is worth including? Are there other real (not just hypothetical, not "for future") benefits of the (quite huge I'd say) JS library for Cypht? |
Related feature request: #216 |
@marclaporte I see - thanks for the analysis of "liveness" of the biggest contenders. On the other hand I'd still prefer evaluating the following 3 criteria (in this order) in addition to project liveness:
On the other hand, if the library you want to choose now will not influence Cypht design and APIs and thus will be easily exchangeable, then I'd take the first such library which also suits your devs as that's what counts the most at the beginning. We can later see if we could optimize (do better) in the sense of point (1) above or at least in the sense of the library size. |
With the currently proposed integration, 4 lines of code are modified. So the lib is easily interchangeable later. I do expect us to add drag and drop in a few other places like folder management but I don't expect it to influence Cypht. I tested https://sortablejs.github.io/Sortable/ in touch mode, and it works well. Only issue I noticed in the "Handle" mode: the handle is small and not easy to catch. SortableJS has MultiDrag, which makes a lot of sense for email: |
I'm a bit confused by this PR - What exactly is the point of this? To re-order the list on the client side? The order is not sticky (and will most likely break new message arrival placement in the list) so I really don't understand the use case. @marclaporte can you help me out here? |
This is the goal: #216 So pick 3 messages and drag and drop to a folder. |
I'm sorry, I misunderstood the task. The code just changes the order of the emails. I'll fix that ASAP. |
I think this is going to be maybe a bit tricky. Let me know if you get stuck on anything I'm happy to help! |
Pullrequest
Issues
Checklist
How2Test
Todo