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

Tracking: Style Book iterative tasks #64707

Open
4 of 19 tasks
vcanales opened this issue Aug 22, 2024 · 4 comments
Open
4 of 19 tasks

Tracking: Style Book iterative tasks #64707

vcanales opened this issue Aug 22, 2024 · 4 comments
Labels
[Feature] Style Book Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Tracking Issue Tactical breakdown of efforts across the codebase and/or tied to Overview issues.

Comments

@vcanales
Copy link
Member

vcanales commented Aug 22, 2024

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
Copy link
Member

ramonjd commented Sep 23, 2024

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:

2024-09-23.17.05.18.mp4

@ramonjd
Copy link
Member

ramonjd commented Oct 1, 2024

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: #53431 (comment)

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:

  • Create a new core category/taxonomy for the style book landing page - one that blocks and patterns could share. Patterns can have one or more categories. Block cannot. It might be useful for blocks to also support category lists, or subcategories so that they can "live" in two categories at once, for example, "text" and "featured/style-book/whatever"
  • Build up on existing Block/Patterns API to support a flag during block registration, e.g., $config['featured'] = true.
  • Create an interface/function/hook to add blocks/patterns to the style book landing page that would, behind the scenes, add a custom, but "hidden" category/taxonomy to the block/pattern. E.g., add_filter( 'add_to_style_book', $block_or_pattern_name, $order ).
  • ??

@ramonjd ramonjd changed the title Tracking: Style Book Iteration Tracking: Style Book Iterative tasks Oct 15, 2024
@ramonjd ramonjd changed the title Tracking: Style Book Iterative tasks Tracking: Style Book iterative tasks Oct 15, 2024
@ramonjd
Copy link
Member

ramonjd commented Oct 23, 2024

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.

@yogeshbhutkar
Copy link
Contributor

yogeshbhutkar commented Dec 30, 2024

Refactor Blocks for Translatable Text in block.json's example attribute

Refactor the following blocks to implement translatable text in contrast to static text in the block.json example. Ensure that the text strings are properly marked for translation, and all necessary fields in block.json's example attribute are updated accordingly to support internationalization (i18n).

Tracker

  • comments-pagination-next
  • comments-pagination-previous
  • post-navigation-link
  • query-no-results
  • table-of-contents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Style Book Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Tracking Issue Tactical breakdown of efforts across the codebase and/or tied to Overview issues.
Projects
None yet
Development

No branches or pull requests

6 participants