Skip to content
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

Feature request: Drag/Drop/Sortable items #9

Open
magicspon opened this issue Dec 20, 2023 · 3 comments
Open

Feature request: Drag/Drop/Sortable items #9

magicspon opened this issue Dec 20, 2023 · 3 comments

Comments

@magicspon
Copy link

Something like this would be absolutely belting!
PixelSnap 2023-12-20 at 15 28 37

I wouldn't mind having a go at this myself. Any thoughts?

https://master--5fc05e08a4a65d0021ae0bf2.chromatic.com/?path=/story/examples-tree-sortable--collapsible

@Jamiewarb
Copy link

Love it

@djohalo2
Copy link
Member

djohalo2 commented May 11, 2024

Hi @magicspon. Sorry for the late reply. Thanks for the feature request! On the one hand I doubt if this should be part of the scope of this package because the plugin reflects a page tree structure where order might not be so relevant, but on the other hand I can imagine this would help content editors to organize it further.

I'm not sure how we would implement this without creating drafts all the time, because I would think we need to persist the order on the document in the data store. Did you have any ideas how to achieve this?

@magicspon
Copy link
Author

magicspon commented Aug 1, 2024

How about a button to apply the new order/hierarchy

So you drag and drop the elements, then hit a button to apply the changes in one go rather than creating drafts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants