Skip to content

Surface related patterns in the template inspector #44582

Closed

Description

@jameskoster

When editing a template or template part, it would be nice to find associated patterns in the Inspector.

For template parts that might look something like:

template

It could work the same for templates too, but we'd need a way for patterns to be associated with specific templates. For example it wouldn't be helpful to be suggested 404 patterns while editing the Archive template.

Activity

  1. added
    [Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced
    on Sep 29, 2022
  2. carolinan commented on Sep 30, 2022

    @carolinan
    Contributor

    love this!

  3. jasmussen commented on Sep 30, 2022

    @jasmussen
    Contributor

    Plus one. Love it! Let's make it happen. (Though maybe I'd have a separator between the inspector header and patterns, perhaps even a subheading for the patterns).

  4. added
    Needs DevReady for, and needs developer efforts
    and removed on Sep 30, 2022
  5. annezazu commented on Oct 3, 2022

    @annezazu
    Contributor

    Noting that this matches this prior feedback that came in: #39864 For consistency/to consolidate, I'm going to close mine out but wanted to be sure that the inability to do this has been noted as a pain point in the past.

  6. self-assigned this
    on Oct 19, 2022
  7. oandregal commented on Oct 19, 2022

    @oandregal
    Member

    I'm going to investigate this. I remember having seen a mention or a sketch for having the ability to switch whole sections in the zoom-out view as well (or was it the site editor?), though I can't find it now. I guess both things are related. Would anyone have a link/sketch handy?

  8. oandregal commented on Oct 19, 2022

    @oandregal
    Member

    I am reading through prior art and ran into this use case:

    • We allow patterns to declare which block types they support (blockType). These patterns will be surfaced in the block toolbar as any other transformation.
    • The same works for many selected blocks at once. Though, note the inspector in this case: it's empty.

    Captura de ecrã de 2022-10-19 16-18-23

    Letting this here as another potential place to surface patterns a set of blocks can be transformed into.

  9. jameskoster commented on Oct 19, 2022

    @jameskoster
    ContributorAuthor

    I remember having seen a mention or a sketch for having the ability to switch whole sections in the zoom-out view as well

    This is still a WIP, but yes I would say that both are related.

    There's also the shuffle concept for templateLock:contentOnly blocks which is similar. Indeed this could drive the transforms you mention. IE if you select a heading and a paragraph the transform menu could expose patterns that are made up of those content blocks specifically.

  10. oandregal commented on Oct 25, 2022

    @oandregal
    Member

    Raw prototype at #45285 It should be enough to clarify some questions.

  11. 38 remaining items

  12. richtabor commented on Oct 3, 2023

    @richtabor
    Member

    If we're concerned about performance, we could potentially add these to a panel, have it closed initially perhaps as well. At least until #54999 is explored further.

    Also, we could set a max number of rendered previews with a “View all” button to open the modal, similar to how the pattern explorer is set within the inserter.

  13. scruffian commented on Oct 5, 2023

    @scruffian
    Contributor

    I've made a start on this: #55091

  14. moved this from Needs Dev / Todo to In Progress in WordPress 6.4 Editor Taskson Oct 6, 2023
  15. moved this from In Progress to Punted to 6.5 in WordPress 6.4 Editor Taskson Oct 13, 2023
  16. moved this to 🏗️ In Progress in WordPress 6.5 Editor Taskson Nov 23, 2023
  17. annezazu commented on Feb 5, 2024

    @annezazu
    Contributor

    With just over a week until beta 1, punting this out of 6.5 as the associated PR hasn't yet been merged and this wasn't a strong focus for the release.

  18. moved this from 🏗️ In Progress to 🦵 Punted to 6.6 in WordPress 6.5 Editor Taskson Feb 5, 2024
  19. moved this from 💻 Needs development to ✅ Done in Gutenberg Phase 2: Customizationon Feb 20, 2024
  20. moved this from 🦵 Punted to 6.6 to ✅ Done in WordPress 6.5 Editor Taskson Feb 20, 2024
  21. moved this from Todo to Done in Patternson Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Blessed for major releaseCan be iterated during a WordPress beta periodNeeds DesignNeeds design efforts.[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions