-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Patterns: Add a preference to disable the loading the of the choose pattern modal #56307
Conversation
@WordPress/gutenberg-design what are your thoughts on adding this preference? |
Size Change: -33 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
…es` something is a little odd
Flaky tests detected in 065ec2e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6923723591
|
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 for working on this @glendaviesnz 👍
It might be worth noting in the test instructions the pattern selection on new pages is not available in the site editor.
It looks like @talldan has a PR adding this pattern selection to the site editor though (#55117). That will need updating to use this new preference as well.
When testing with TT3, this appeared to only work one time for me. Now, regardless of what my preference setting is I can't get the pattern selection modal back.
Screen.Recording.2023-11-20.at.11.11.27.am.mp4
After switching to TT4, the pattern selection did appear although it takes a long time to show on first load. Toggling the preference back on results in the pattern selection suddenly appearing over the top of the preferences modal. That felt very unexpected to me.
Screen.Recording.2023-11-20.at.11.28.03.am.mp4
'Enables the choose pattern modal when adding a new page.' | ||
) } | ||
label={ __( 'Enable choose pattern modal' ) } | ||
/> |
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.
I think the copy could be tweaked as a lot of users won't know what a modal is.
Something like "Show starter patterns" / "Shows starter patterns when creating a new page.".
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.
+1
My instinct: we should not add this preference yet. The flow for creating new pages is still in flux, with the add new page modal in the site editor, some ideas on a pattern assembler discussed across various comments here, not yet having materialized. In that vein, adding this preference now is going to optimize for an interface that's going to already improve. If after having refined those other flows such a preference is still desired, we can definitely add it. |
Closing for now based on this comment. |
@jasmussen do you mind clarifying a bit? Are there existing issues/PRs in progress that overlap with this? This came up today in a discussion amongst a few internal developers as being an annoyance, and I feel like it might be worth exploring a bit more. Just curious, thanks! |
I should've been clearer and referred to an issue, which is this one: #50739 — "assembler" may be a vernacular that has emerged in varous GH comments across the repo, but it refers to the same. The idea that there is a receded view, or a zoomed-out view, where you build out a page using only patterns. In this context, you cannot edit the content of any blocks, you can only insert and rearrange the patterns, and are literally viewing a scaled down version of the page. Also related to #48456, it's a UI that can potentially unify with the "add new page" template modal as discussed here. The big UI challenge is figuring out how you enter and exit this context from within the editor, or the site view. |
What?
Adds a preference to disable the loading of the
Choose a pattern
modal when adding new pagesWhy?
If experienced users are always wanting to start with a blank page it is a frustrating extra step in their workflow to dismiss this modal each time.
Fixes: #56181
How?
Adds a preference to disable this modal to the editor preferences
Testing Instructions
Choose a pattern
modal loadsChoose a pattern
modal loads againScreenshots or screencast
choose-pattern-2.mp4