- Issue created by @wim leers
- First commit to issue fork.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
… and AFAICT this will allow us to delete the very existence of the
#is_xb
render array property — because this MR will make it possible to simply always use thexb_stark
theme for certain routes.And with
#is_xb
obsolete, we'll be able to delete ALL infrastructure around it (that sets it when appropriate):\Drupal\experience_builder\RenderArrayXB::markXB()
\Drupal\experience_builder\RenderArrayXB::findAndMarkXB()
\Drupal\experience_builder\EventSubscriber\XbMainContentViewSubscriber
experience_builder_preprocess_form_element()
experience_builder_form_component_props_form_alter()
… and
experience_builder_theme_suggestions_alter()
will be able to remove its firstif
-statement.Am I missing something, or can you confirm this, @bnjmnm? 😄
- First commit to issue fork.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
This MR looks great! (And once the commented out lines in the
.module
file are deleted, it'll passphpcs
too).Just one small remark, really.
And … we of course need to get the tests passing! :D
- 🇺🇸United States bnjmnm Ann Arbor, MI
A nice bonus is that the Media Library widget is also rendered with xb_stark
Although XB stark defaults to using Semi Coupled and rendering with React, the MR includes Twig templates that ensure Media Library is still rendered with Twig. This was added to address an issue where
core/drupal.dialog.ajax
needs the completed HTML earlier than Semi coupled can (currently) provide it. If we really want to render the Media Library widget in React I'm sure this can be done, but it might be worth keeping as is since it's the format the Media Library UI is known to work well with, and there's no need for it to communicate with redux.This may open options up to more easily address 📌 Media Library dialog styling Active if we want XB specific styles instead of using the admin theme.
- First commit to issue fork.
- 🇳🇱Netherlands balintbrews Amsterdam, NL
Changes were introduced upstream by 📌 [PP-1] Make "page data" tab in right sidebar work Postponed that needed to be adjusted to this MR. Needs work:
- The page data form is broken after the merge for some reason;
- A form alter needs to be added back to hide the submit buttons on the page data form;
\Drupal\Tests\experience_builder\Functional\EntityFormControllerTest::assertFormResponse
needs to be updated.
- 🇳🇱Netherlands balintbrews Amsterdam, NL
I fixed the problems I mentioned in #15, then reviewed all code changes, and approved the MR.
I have three questions/asks.
- I left one small suggestion for rewording things in
xb_stark.info.yml
. - @bnjmnm, can you please see if you're happy with how I did the form alter in
0332d920
? There might be a nicer way to do it. - On a call last week @jessebaker had the suggestion to use
include
and refer to the original Twig templates that way in ourprocess_as_regular_twig
template overrides. Would we like to do that as part of this issue, or in a follow-up?
- I left one small suggestion for rewording things in
- 🇺🇸United States bnjmnm Ann Arbor, MI
-
I left one small suggestion for rewording things in xb_stark.info.yml
. Good call, done!
-
@bnjmnm, can you please see if you're happy with how I did the form alter in 0332d920? There might be a nicer way to do it.
It's good.
-
On a call last week @jessebaker had the suggestion to use include and refer to the original Twig templates that way in our process_as_regular_twig template overrides. Would we like to do that as part of this issue, or in a follow-up?
Thanks for the reminder! With that change this is an MR that reduces the total LOC by 139!
Just need a few additional codeowner signoffs.
-
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
#12: Nice! 👏
#17:
Thanks for the reminder! With that change this is an MR that reduces the total LOC by 139!
😮
This looks great, but there's some loose ends on the docs side. I'd like to see those resolved before this lands, because otherwise the burden of fully documenting how this works would shift to 🐛 Experiments in rendering Twig as React Active .
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
-
wim leers →
committed c5b5d93d on 0.x authored by
deepakkm →
Issue #3478287 by bnjmnm, deepakkm, balintbrews, wim leers: Introduce...
-
wim leers →
committed c5b5d93d on 0.x authored by
deepakkm →
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
This:
Automatically closed - issue fixed for 2 weeks with no activity.
- Issue was unassigned.
- Status changed to Fixed
about 1 month ago 10:50am 17 February 2025 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
While blogging about this, retro-actively crediting @larowlan for raising #3467499 and @effulgentsia for the fundamental idea implemented here, which he described in #3467499-13: Use a custom serialization format instead of theming to render the edit form to the intermediary representation that XB's React code consumes → ! 👏