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

Query Block: ensure focus is on Query Block after insertion #31252

Closed
annezazu opened this issue Apr 27, 2021 · 4 comments · Fixed by #32737
Closed

Query Block: ensure focus is on Query Block after insertion #31252

annezazu opened this issue Apr 27, 2021 · 4 comments · Fixed by #32737
Assignees
Labels
[Block] Query Loop Affects the Query Loop Block [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.

Comments

@annezazu
Copy link
Contributor

What problem does this address?

This came up during the fifth call for testing for the FSE Outreach Program:

I tried inserting one of the block’s patterns called Large title and upon insertion, the editor focused the Group block and not the Query block. This was very disconcerting. I inserted a Query Block so I didn’t expect to see a Group block. I guess the group is used to wrap the pattern but we need to make sure we’re focusing on the block the user chose to insert and not the wrapper of the pattern

Screen.Capture.on.2021-04-22.at.08-54-51.mp4

What is your proposed solution?

Ensure the focus is put on the Query Block rather than the Group Block as it immediately adds a hurtle to customizing the Query Block. Of note, @kjellr this seems to mainly be related to the new patterns added in with this PR as it does not happen with 10.4.1 but does when I use this PR: #30763

@annezazu annezazu added [Type] Enhancement A suggestion for improvement. [Block] Query Loop Affects the Query Loop Block labels Apr 27, 2021
@ntsekouras
Copy link
Contributor

Hey 👋 - this is not related to Query specifically but to the Pattern suggesting in placeholder functionality.

This new functionality allows the usage of more complex patterns that don't necessarily include only the blocks from which are shown. While there could be a way to fine tune this for Query, it would also create confusion when patterns contain more than one Query blocks like the Offset bundled pattern in GB.

@annezazu
Copy link
Contributor Author

Thanks for the wider context! I wonder what the best solution is here or if this is a "won't fix".

@kjellr
Copy link
Contributor

kjellr commented Apr 30, 2021

Yeah, I'm not sure. I bet we could technically shift focus to the first Query block in the pattern when it's inserted? Might be worth a PR to see if it feels natural.

@ntsekouras
Copy link
Contributor

I'm not sure either, although I lean to a won't fix a bit more :). On the other hand most Query patterns will probably include one Query block so it doesn't hurt to make a PR for exploring this.

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 [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
Projects
None yet
3 participants