-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 Loop Block: Use BlockPatternsList component for Query block patterns modal #47366
Conversation
Size Change: +47 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
Flaky tests detected in 6279764. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4027278885
|
I think this one is in a good spot now and ready for reviews 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Big +1 to aligning these flows then refining holistically later.
This is working as advertised so I'm approving from the design side.
@ntsekouras How's this one looking now? I'd love to get this merged before the freeze. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tested well for me:
✅ Replace button showed dialog with search option
✅ Selecting pattern from dialog replaced query block in editor
✅ Unit tests passed
a7a901c
to
6279764
Compare
I've fixed up the e2e tests for the query block pattern insertion to match the new list view. It's now passing. Waiting on this fix to globally broken Gutenberg mobile tests, and will merge after assuming no further feedback. |
Can you wait just a bit until Monday to test/review it? We need to make sure that the previous functionality with previews is preserved. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @apeatling for your work and waiting me to review!
This looks good! I left only a minor comment and the only thing missing here is to style the search
input to remain sticky, as we do in the Template Part relevant flows.
Thanks @ntsekouras, all fixed up, the search bar is now sticky and visually matches the template part block selection. 👍 |
…Switch the modal to use the BlockPaternsList component to match other pattern selection UI across the editor.
… in query block view.
60b5293
to
d8098f8
Compare
Going to merge this since it has approval and everything has been fixed up. 👍 |
Fixes #33202
What?
Replace the
BlockPatternSetup
component withBlockPatternsList
component to match the experience of selecting patterns in different locations across the editor.Why?
Lots of feedback on the linked issue above. In a nutshell the current carousel style pattern selection feels broken and confusing to users because it is different from anything else.
By moving to
BlockPatternsList
we start the process of consolidating around that component and moving closer to a consistent experience for pattern selection.How?
This PR separates out the pattern selection modal functionality and replaces it to use the
BlockPatternsList
component. It also moves the search functionality for filtering pattern data out of the template-part block and into the utils directory where it can be reused.Testing Instructions
Screenshots or screencast
before.mp4
after.mp4