Layout Builder Browser Library

Created on 7 August 2023, 11 months ago
Updated 17 August 2023, 11 months ago

Problem/Motivation

Hi,

In the goal to improve the contributor experience when using Layout Builder. at my company, we would like to develop a "Block library" like the Patterns library from https://www.drupal.org/project/ui_patterns β†’ or the Styles library from https://www.drupal.org/project/ui_styles β†’ .

This library would be the blocks from Layout Builder Browser, so not limited to custom block types.

I create this issue to know if maintainers think they would be interested that it would be in the module, or if I should keep it custom.

Proposed resolution

I plan to:
- add a description to blocks
- add a "library" image to blocks, for a bigger image, rather than an icon
- add a controller and links (menu, task) to access the library
-

✨ Feature request
Status

Needs review

Version

1.0

Component

User interface

Created by

πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Grimreaper
  • Assigned to Grimreaper
  • πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·
  • @grimreaper opened merge request.
  • Status changed to Needs work 11 months ago
  • πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·

    I pushed a first draft.

    Here is what it looks like:

    I will try to do the "in Layout Builder when hovering a block, display this more detailed image" or maybe replace it with a link.

    Also maybe there are some update path to do to init values.

  • Issue was unassigned.
  • Status changed to Needs review 11 months ago
  • πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·

    About "in Layout Builder when hovering a block, display this more detailed image", as the block link in Layout Builder Browser already wraps the image, it is no possible to make the image a link that points to the library image.

    Also an on hover behavior, I guess would mean needing an external JS library and I don't want to introduce dependencies.

    So putting the status in "Needs review" and waiting for maintainers feedback.

  • πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·

    Attaching patch from MR for easier Composer usage.

  • Assigned to Grimreaper
  • πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·

    Converting unordered list into unstyled list.

  • πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·
  • Issue was unassigned.
  • πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·
Production build 0.69.0 2024