Keystone: Re-sort items in Admin UI List by dragging and dropping

Created on 26 Jan 2020  路  6Comments  路  Source: keystonejs/keystone

Feature request

Provide the ability to re-sort items in the admin UI by dragging and dropping them.

Sometimes I want to be able to re-sort/re-order list items directly in the list view. It would be easier to just to drag-and-drop items in the right order then to edit each item separately. It seems this functionality was available in Keystone v4, but is missing from v5. So I would imagine it could work very similar to how the v4 version worked, but maybe it should be rewritten as a plugin?

I could not find any hints in the code that would indicate it's already there, and also no issues indicating this has been addressed earlier or it's being worked on. But I could very well be wrong or missed something. I hope this is a feature that will be considered for the future.

feature request needs-review

Most helpful comment

While not a perfect replacement, we made this list plugin as a stop-gap measure: https://www.npmjs.com/package/@globobeet/keystone-sortable-list-plugin

It adds a numeric field that automatically shifts surrounding documents when needed. It may help!

All 6 comments

Hi @thomasjonas, this is a feature which we don't currently have in Keystone 5, but we are planning on introducing in the future. At the moment lists have a natural ordering which happens to be an artefact of how they are stored and retrieved from the database. The new feature will most likely be called OrderedList and we'll explicitly control and enforce the order in the database and provide mutations which allow the user to manipulate this order.

Thanks for your answer and your work on Keystone. Looking forward to feature releases!

It looks like there hasn't been any activity here in over 6 months. Sorry about that! We've flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. :)

+1 for this, the lack of this feature has kept me stuck in v4 as this feature is almost always required by my clients. I hope this can be implemented soon and thanks for everyones hard work on this project!

While not a perfect replacement, we made this list plugin as a stop-gap measure: https://www.npmjs.com/package/@globobeet/keystone-sortable-list-plugin

It adds a numeric field that automatically shifts surrounding documents when needed. It may help!

It looks like there hasn't been any activity here in over 6 months. Sorry about that! We've flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

molomby picture molomby  路  11Comments

molomby picture molomby  路  11Comments

arnaud-zg picture arnaud-zg  路  18Comments

bothwellw picture bothwellw  路  18Comments

thekevinbrown picture thekevinbrown  路  31Comments