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

Add drag-and-drop to List View #32403

Closed
jameskoster opened this issue Jun 2, 2021 · 2 comments
Closed

Add drag-and-drop to List View #32403

jameskoster opened this issue Jun 2, 2021 · 2 comments
Labels
[Feature] List View Menu item in the top toolbar to select blocks from a list of links. Needs Design Feedback Needs general design feedback.

Comments

@jameskoster
Copy link
Contributor

jameskoster commented Jun 2, 2021

Once collapsible container blocks (#32117) arrive, it might be nice to explore adding drag-and-drop capabilities to List View.

Arranging blocks this way on the canvas can feel quite uncomfortable due to the real estate that larger blocks occupy, and the amount of scrolling-while-dragging that can be required. Greater finesse can be exercised in List View since all blocks are the same size.

Another benefit is the precision in List View due to the document structure being clearly visible – this isn't always easy to determine on the canvas, especially when the nesting gets quite deep.

Here are the interactions we might concentrate on:

  • Arranging blocks at the same level
  • Dragging a block down a level in the tree (IE from the root level in to a group), accounting for when the target container is either open or closed
  • Dragging a block up a level, IE from a group to the root level of the doc.
  • Dragging a block to an incompatible area of the document, IE dragging a Column block to the root level
  • Any others that I'm missing? :D

For design we can most likely build on the excellent work @shaunandrews did last year (#24029 (comment)), coupled with the latest on-canvas drag and drop interactions.


Figma file for design exploration here.

@jameskoster jameskoster added Needs Design Needs design efforts. [Feature] List View Menu item in the top toolbar to select blocks from a list of links. labels Jun 2, 2021
@jameskoster
Copy link
Contributor Author

I think most of these are fairly straight-forward. I outlined the flows in Figma here.

The most complicated is when you drop a block from the root level into a closed container within another container. Here's a video detailing that interaction:

drag.and.drop.mp4

@jameskoster jameskoster added Needs Design Feedback Needs general design feedback. and removed Needs Design Needs design efforts. labels Jun 3, 2021
@jasmussen
Copy link
Contributor

jasmussen commented Jun 4, 2021

This is cool, but is it a duplicate of #29727?

We might want to consolidate just to have a central point of conversation, but I love your design here, we should move it over!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] List View Menu item in the top toolbar to select blocks from a list of links. Needs Design Feedback Needs general design feedback.
Projects
None yet
Development

No branches or pull requests

2 participants