Account created on 17 April 2008, about 17 years ago
#

Merge Requests

More

Recent comments

🇫🇷France mogtofu33

Message fixed.

I have a problem from a clean install, all caches ON, no dev only verbose error logging:

  • Layout builder is NOT enabled
  • Go to ui modules list and enable display_builder_entity_view
  • Accept other modules including layout builder
  • Submit, error appear:

Drupal\Core\Entity\Exception\NoCorrespondingEntityClassException: The Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay class does not correspond to an entity type. in Drupal\Core\Entity\EntityTypeRepository->getEntityTypeFromClass() (line 111 of core/lib/Drupal/Core/Entity/EntityTypeRepository.php).

This makes the display_builder config to not be installed properly (missing config default) and add some failing on the display of entity.

Do we have a way to ensure layout_builder is enabled before? perhaps with a dependencies?

🇫🇷France mogtofu33

Looking good, thanks!
Added a message when both are enabled, because of layout destruction on deletion it make sense to allow both to avoid loosing the layout.
Had an error on enabled but seems from my env, will double check and merge if ok.

🇫🇷France mogtofu33

Thanks for the hard work, let's go with that!

🇫🇷France mogtofu33

The demo bootstrap fixture is unstable because of missing dependencies, the icons are loaded from some specific icons packs. That's why you have the block 'icon' without the icon loaded.
To work properly it needs from https://gitlab.com/ui-icons/ui-icons-example: ui_icons_drupal, ui_icons_fontawesome (with lib, see readme), ui_icons_heroicons (with lib).

🇫🇷France mogtofu33

Fixed on MR28 (alpha bug fixes).
Unless there is an MR, this kind of small bug fixes can be added to 🐛 Alpha bug fixes Active for now.

🇫🇷France mogtofu33

Still have the issue, as soon as UI Styles island is enabled, I have multiple warning.

🇫🇷France mogtofu33

Perhaps UI patterns side, this to be done after 📌 [1.0.0-beta1] Remove Island's specific Form classes Active and [1.0.0-alpha1] Make Island plugins configurable Active , as configurable islands will impact a lot.

🇫🇷France mogtofu33

DB config, one global permission 'administer display builders' to create / edit Delete
For each DB config, one usage permission (as filter module):
Use the %name Display builder config

🇫🇷France mogtofu33

An other alternative is to do this on js as we have on the click element the html attributes of title and even index.
As the drawer title is a property set on the load of the component in the display_builder component it would avoir more php.

🇫🇷France mogtofu33

Playwright initiated, we'll see for more tests and to put them in the ci on a follow up.

🇫🇷France mogtofu33

Merged, thanks for the MR.

🇫🇷France mogtofu33

All fixtures current files have been moved to display_builder_devel.

🇫🇷France mogtofu33

My bad it's working better. The switch between the 2 branches made a false positive.
But I have an other problem that I thought was related but not, when loading a fixture like bootstrap demo it has warning when rendering for each element:

Warning: Uninitialized string offset 0 in Drupal\Core\Render\Element::property() (line 29 of /var/www/html/web/core/lib/Drupal/Core/Render/Element.php)

But this code do not touch the rendering, so I guess there is a change somewhere in the data of the builder saved, will investigate.

Moving for now to alpha2 to have time to finalize.

🇫🇷France mogtofu33

I could finally reproduce in a case: when the slot in the builder has been replace, for example add token, add a styles, close the drawer, then click fail.

🇫🇷France mogtofu33

Still have the issue.
In current BlockStylesForm::buildForm, the $data['styles'] contains the selected value as:

[
  "styles" => [
    "selected" => [
      "typography" => "display-1"
    ]
  ]
]

On this branch, the code is now in UiStylesPanel::buildForm as $this->data['styles']. Problem is it's nested in:

  "_third_party_settings" => [
    "ui_styles" => [
      "styles" => [
        "selected" =>  [
          "typography" => "display-1"
        ]
      ]
    ]
  ]
]

So it does not apply.

🇫🇷France mogtofu33

I like the second option, keep in front.
First option involve reading the variable value in drawer.js (--drupal-displace-offset-left) and add it to the margin left and with set by js. Which seems too much.

🇫🇷France mogtofu33

I know there is some issues with the drawer but cannot reproduce this one on last 1.0.x.
Could you check console and network activity? An xhr call is made to fill the content as you see in my video db_3531718_open_drawer.mp4.

🇫🇷France mogtofu33

Currently it seems the form lost it's state, at least for UI Styles and UI Tokens.

From an empty display builder with ui suite bootstrap:

  • Add a button
  • Add a token inside, fill a text
  • Apply a style and a token to the button and the token (font h2, border color and background color for example)
  • They are applied properly, but not kept in the instance form
  • Refresh the page
  • They are applied properly, but not kept in the instance form

Expected is to have the style and token selected in the instance form with a message (current behavior on 1.0.x).

🇫🇷France mogtofu33

Simply removing makes no sense! we need a solution to keep it and be able to use it. Created 📌 Fixtures Active

🇫🇷France mogtofu33

Reset is a devel (display_builder_devel) feature, so not a priority for now, moved to beta phase.
For now to fix, simply delete and re-create the instance.

🇫🇷France mogtofu33

mogtofu33 made their first commit to this issue’s fork.

🇫🇷France mogtofu33

Thanks for the work.
I think it should be on GraphQL Compose as we implement core integration only in our sub modules, exception of UI Patterns but it will move too. And looking at GraphQL Compose they already implement directly these plugins for contrib.
@pdureau wdyt?

🇫🇷France mogtofu33

doesn't render properly in a custom theme.

Could you be more specific? Then the issue could be a conflict on the css with the custom theme?

🇫🇷France mogtofu33

It's working well when navigation is collapsed but when opened there is a displacement problem, probably to see for the size handling in assets/js/drawer.js

🇫🇷France mogtofu33

What @yannickoo is pointing is that the menu can not be inspected (right click).
The type="checkbox" is used to make the click event work and propagate as seen in the shoelace menu.
I don't think we can remove this type, and I am not sure of the level of the issue here. Is there an accessibility problem?

🇫🇷France mogtofu33

Thanks for the work, but the style is not good, would be great to make it pass.

Production build 0.71.5 2024