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

Persistent List View: Show the entire content of Query blocks #29784

Closed
Copons opened this issue Mar 11, 2021 · 5 comments
Closed

Persistent List View: Show the entire content of Query blocks #29784

Copons opened this issue Mar 11, 2021 · 5 comments
Labels
[Block] Query Loop Affects the Query Loop Block [Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Type] Enhancement A suggestion for improvement.

Comments

@Copons
Copy link
Contributor

Copons commented Mar 11, 2021

This issue is about the Persistent List View experiment (#28637), currently only available in the Site Editor.

The Persistent List View is supposed to display all the blocks of the current content.
This doesn't happen for the Query block, which only shows the last item of the loop (e.g. the most recent post).

If we select a block contained in one of the "other" items of the loop, the Query branch in the list view will update, and the content of the selected loop item will replace the most recent's one.

We might want to show the content of the entire Query loop, instead of just one item (either the selected one, or the most recent).

@Copons Copons added [Type] Enhancement A suggestion for improvement. [Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Block] Query Loop Affects the Query Loop Block labels Mar 11, 2021
@ntsekouras
Copy link
Contributor

Query works in a way where only one item is editable by selecting it (defaults to first item) and the others are just previews which aims to a more understandable UI. Every item in the loop contains the same blocks with each other and are identical in terms of content(blocks - not referring to dynamic blocks which result to different content).

I can see this creating a lot of confusion (and unnecessary complexity IMO) especially when movers are implemented, as the order of the items depends on the actual query which comes from context. Another thing could be when we have set the Query number of posts to something big which will overwhelm the list view.

Of course it has more technical challenges, but would like to hear what do you think would be the value of showing all the posts somehow?

@Copons
Copy link
Contributor Author

Copons commented Mar 24, 2021

Query works in a way where only one item is editable by selecting it (defaults to first item) and the others are just previews which aims to a more understandable UI. Every item in the loop contains the same blocks with each other and are identical in terms of content(blocks - not referring to dynamic blocks which result to different content).

I can see this creating a lot of confusion (and unnecessary complexity IMO) especially when movers are implemented, as the order of the items depends on the actual query which comes from context. Another thing could be when we have set the Query number of posts to something big which will overwhelm the list view.

Of course it has more technical challenges, but would like to hear what do you think would be the value of showing all the posts somehow?

@ntsekouras 🤔 AFAICS items in the loop are not identical though: (at least?) the Post Content block is always different!
(Unless you were talking about Post Content, when you mentioned dynamic blocks 😄 )

I'm not familiar at all with how the Query block works, so I won't presume to know a solution or even an idea for this issue.
My concern is only relevant for the Persistent List View which, supposedly, should outline the exact same blocks contained in the canvas.

On the other hand, the issue with movers would make total sense, thanks for pointing it out.
I guess this might need some design thought, because it's really a super tricky one — althought I'd consider it minor at this point, so IMHO there's no rush.

@ntsekouras
Copy link
Contributor

@ntsekouras 🤔 AFAICS items in the loop are not identical though: (at least?) the Post Content block is always different!
(Unless you were talking about Post Content, when you mentioned dynamic blocks 😄 )

Exactly. I'm talking about the blocks used and Post Content is one them but is dynamic.

althought I'd consider it minor at this point, so IMHO there's no rush.

Agreed :)

@jameskoster
Copy link
Contributor

My concern is only relevant for the Persistent List View which, supposedly, should outline the exact same blocks contained in the canvas.

If we instead say that list view should outline the exact same blocks contained in the document then it is ok to only display the Post Content block without its children, since those children belong to a different document.

With regards to showing each post as a dedicated item in list view, something like:

Screenshot 2021-06-04 at 15 16 58

I agree with Nik that this could lead to some very confusing interactions. Since each post is based on a template, what would it look like if I try to drag the Featured Image block? Do they all move in tandem?

Also – if I move the Post Title block in one post, and see it move for all the other posts, I don't think I would understand why that is happening since everything appears to be separate.

I suspect there are probably solutions to all of these wrinkles, but when you put them all together I wonder if the UX becomes overwhelming. The better solution (at least in the short term) may be improving the names and descriptions for Query / Query Loop (#32283).

@priethor
Copy link
Contributor

As stated above, this could be quite confusing, especially as we are heading in a different direction trying to ease interactions with Query block and its variations in the List View, like the one proposed in #32268

Let's close this for now and revisit this kind of interaction further down the line 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Loop Affects the Query Loop Block [Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants