Merge ReorderController into ListController#553
Conversation
|
@LukeTowers @bennothommo @jaxwilko this work for SimpleTree and Sortable models. Won't work with NestedTree. Any idea how we could implement this for NestedTree (since the List widget is way different than the current ReorderController) Do we even WANT to make this work for NestedTree in the list widget? |
|
Having a think about this abstractly, I'm now a bit 50/50 on reordering as it stands. The problems we're going to face are:
I don't have a potential solution right now. :( |
I understand your concern, but what's the difference with the current ReorderController?
The current ReorderController supports this, we could add a button that opens a popup to reorder nested trees with a different list markup maybe?
Yeah, that's a good idea.
Again, I agree but this is still the case with the current ReorderController.
Maybe the "reorder mode" you suggested above could trigger a change in the list markup to use what the ReorderController currently uses? Once the list is reordered, switching the "reorder mode" off would bring back the standard list markup. |
|
@mjauvin I meant the above more as a brain dump of problems that I foresee with reordering in general, as I imagine this PR along with the Sortable Relations trait is all towards implementing sortable relations within the list widget? The reason I've added it here is because if we decide to pivot our implementation based on what we discuss here, it might be worth trying to catch it early and perhaps set it up within this PR. |
|
@bennothommo with regards to
I believe I've mentioned it in one of these issues but I'm not really concerned with that use case. There's some good articles out there that make the very valid point that if you are dealing with a large number of records you almost certainly do not want to be supporting people manually ordering them. Instead, more care should be taken with available options for how they can be sorted when displayed and perhaps considering a sort of enhanced prioritization sorting method like "pinned" or "flagged" records that get booted to the top. |
|
@mjauvin I'm fine with your responses, what else do you need from @bennothommo or myself? |
|
@LukeTowers I'll keep working on it then. |
|
This pull request will be closed and archived in 3 days, as there has been no activity in this pull request for the last 6 months. |
|
I won't be pursuing this, at least not this way. |
|
What way do you want to accomplish this @mjauvin? |
|
I don't know yet. |
|
@mjauvin I'm open to working on this, have a client project that will need it very soon. What did you end up doing for your projects for this functionality? |
|
@LukeTowers I built a custom behavior that I use in my controllers. I can share the code if you're interested. |
|
@mjauvin sure, that would be great! |
Currently working for SimpleTree and Sortable models. Won't work with NestedTree.