Closed (fixed)
Project:
Display Builder
Version:
1.0.x-dev
Component:
UI/UX/Islands
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Jun 2025 at 07:44 UTC
Updated:
22 Jul 2025 at 09:14 UTC
Jump to comment: Most recent
Comments
Comment #2
goz commentedComment #4
pdureau commentedThanks you goz. That looks exciting. Also, that's great you are commenting your own MR: https://git.drupalcode.org/project/display_builder/-/merge_requests/13
However:
IslandPluginFormTraitto ResetButton?$current_island_idononUpdate()method, is there an other way of passing the data? Ideally, this MR will only alter the 4 island plugins with forms.Comment #5
goz commentedYou are right, i miss this one.
It's a plugin, i should add plugin form logic here to.
Unfortunatelly not, or may be using another static service...
Comment #6
goz commentedEverything is green except css lint. Yipee !
I take a look on ResetButton and we are good
Comment #7
goz commentedMR can be reviewed
Comment #8
goz commentedComment #9
pdureau commentedThe warning in the pipeline is not about this work. So ok for review.
Comment #10
mogtofu33 commentedComment #11
goz commentedComment #12
goz commentedComment #13
mogtofu33 commentedCurrently 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:
Expected is to have the style and token selected in the instance form with a message (current behavior on 1.0.x).
Comment #14
goz commentedComment #15
mogtofu33 commentedStill have the issue.
In current
BlockStylesForm::buildForm, the$data['styles']contains the selected value as:On this branch, the code is now in
UiStylesPanel::buildFormas$this->data['styles']. Problem is it's nested in:So it does not apply.
Comment #16
goz commentedIt's strange, in the last commit, i take care of taking value from _third_party_settings.
In IslandPluginBase::build() :
Comment #17
goz commentedI was reproducing #13, i don't reproduce it anymore.
Are you sure you are up to date with the MR ?
Or may be you make another test than #13 which fails ?
Comment #18
mogtofu33 commentedMy 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:
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.
Comment #19
goz commentedI don't reproduce, in an instance without this MR, nor in instance with this MR.
I hadn't loading fixtures before, may be you were on an existed fixture ?
Comment #20
pdureau commentedComment #21
pdureau commentedI will also have a look
Comment #22
pdureau commentedFrom a fresh install, on commit
d6a3f04d46a21c15e66a8b62fe25b8a9e3c98ebe (HEAD -> 3529103-1.0.0-beta1-remove-islands, display_builder-3529103/3529103-1.0.0-beta1-remove-islands):ui_suite_bootstrapfrom /admin/appearance[display_builder_devel] Ui suite bootstrap demoWarning: Uninitialized string offset 0 in Drupal\Core\Render\Element::property() (line 26 of core/lib/Drupal/Core/Render/Element.php).Comment #23
goz commentedMy bad, digging for the error, it seems i previously met this, but certainly fix it in ui_patterns or elsewhere which is not in display_buider... and forgot about it.
The following error
comes from a radio element with an option with empty key :
Strangely, i have this issue only for this MR, not from 1.0.x and in 1.0.x, this radios element is not loaded (so no error). BUT the radios element is not displayed, so i guess the MR process something which should not
Comment #24
goz commentedDifference between 2 versions :
In 1.0.x, UiStylesPanel build form is called only when island is panel island is displayed when clicking on the icon.
In MR, UiStylesPanel build form is called when page is loaded
So MR change more things that expected
Comment #25
goz commentedI rebased my branch to not get other commits.
This issue was very hard, hope there will be no more errors.
Fingers crossed.
Comment #26
pdureau commentedComment #27
mogtofu33 commentedStill have the issue, as soon as UI Styles island is enabled, I have multiple warning.
Comment #28
goz commentedI have no warnings :/
Can you give me more informations to reproduce ?
Which theme do you use, do you start from a fixture, on which component ?
May be a screencast will help
Thanks
Comment #29
pdureau commentedI will review too. Team work :)
Comment #30
pdureau commentedFrom a fresh install, on commit
c2d2277ce764be85497a01810aa6e991996f3a00:ui_suite_bootstrapfrom /admin/appearance[display_builder_devel] Ui suite bootstrap demoWarning: Uninitialized string offset 0 in Drupal\Core\Render\Element::property() (line 26 of core/lib/Drupal/Core/Render/Element.php).just by loading the builderIf I disable UI Styles panel in
/admin/structure/display-builder/default, no more warning when I load the builder.I i enable back UI Styles panel in
/admin/structure/display-builder/default, warnings are back.Comment #31
goz commentedSorry for the false positive, i forgot to remove some tests in core which make my instance not relevant.
I spend a big part of my weekend on it... and burn too much neurons.
Finally, took less time this afternoon to fix it once i reproduce again.
Comment #32
pdureau commentedComment #34
mogtofu33 commentedThanks for the hard work, let's go with that!