WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.52k stars 4.21k forks source link

Tracking: Style Book iterative tasks #64707

Open vcanales opened 3 months ago

vcanales commented 3 months ago

Part of:

Several pieces comprise the work required to iterate over the discussion in #53431, so I'm starting this tracking issue to compile the efforts:

TODO

In Progress

Misc bugs and enhancements

Not planned

ramonjd commented 1 month ago

Come up with a way for the UI to display lots of categories.

Was playing around with something like this. Rough, but you get the idea:

https://github.com/user-attachments/assets/b3f52816-615a-4efe-9283-2e8f797fbea1

ramonjd commented 1 month ago

Look at how themes can define their own examples for the "Overview" category.

The MVP would be to create a static, curated list of Core blocks to display on the landing page. See: https://github.com/WordPress/gutenberg/issues/53431#issuecomment-2260240806

The style book landing page would, however, provide a convenient space to feature a theme's custom blocks or (one day) patterns.

That means that Gutenberg would need to define a, or piggyback off an existing, API to allow themes et. al to register blocks/patterns that should feature on the landing page. Ideally, the order in which they appear should be configurable.

Some random thoughts/options:

ramonjd commented 4 weeks ago

Come up with a way for the UI to display lots of categories.

The tabs component is used to display the categories. The tab can display with horizontal scrolling —https://wordpress.github.io/gutenberg/?path=/story/components-tabs--size-and-overflow-playground — but it'd be good to be able scroll to the active tab.