Itâs hard to imagine, but ⊠until now, Experience Builderâs (XB) live preview of the component tree (not to be confused with XBâs chrome-free preview mode) the content creator is assembling has been very imperfect. This week Dave âlongwaveâ Long, Ben âbnjmnmâ Mullins, Jesse Baker, Felix âf.mazeikisâ Mazeikis, Lauri âlauriiiâ Timmanee, BĂĄlint âbalintbrewsâ KlĂ©ri and I made it just slightly imperfect:
Until XB is updated to actually use the previewed routeâs controller, and until XB is used to render all fields in the content entity type+bundle, itâll remain imperfect.
Issue #3489302, image by Lauri.
Jesse, BĂĄlint, Gaurav âgauravvvâ, Chris âcosmicdreamsâ Weber and Kristen Pol made an (unintentionally) trippy experience in Experience Builder less dizzying. đ”âđ«đ From:
Issue #3476354, image by Lauri.
To:
Issue #3476354, image by Jesse.
As promised last week, this week the approach we landed on for the xb_page
content entity type (aka âlanding pagesâ) got properly documented in an Architecture Decision Record (ADR): see docs/page-entity-type.md
for all glorious details đ€ Kudos to Matt âmglamanâ Glaman, Ted âtedbowâ Bowman, Lauri, John âjohnwebdevâ, Pamela âpameeelaâ Barone, Alex âeffulgentsiaâ Bronstein, danielveza, BĂĄlint and Dave for making this happen!
Actual saving
Last week, we introduced the server-side support for saving your XB creations, this week Lauri, Jesse and Lee did the client-side part: a âPublishâ button that saves it. This is only going to be short-lived though: we expect to replace this with listing all auto-saved changes and allowing you to publish them all at once.
Storybook
XB adopted Storybook this week for its UI components, thanks to Atul âsoaratulâ Dubey, Tina Rey and BĂĄlint âbalintbrewsâ KlĂ©ri â which means that weâre starting to have a nice overview of all XBâs UI components (not to be confused with XB Components! đ€). XB has a whole range of UI components: borrowed & unmodified from Radix, borrowed & modified, and completely custom. Anything thatâs in either of the last two will should be available in Storybook.
Issue #3486888, image by Atul.
Grab bag
- Jesse, Dave and I updated the XB UI to always use the âofficialâ name of the component, and removed the (only partially implemented) ability to name each component instance. Less confusion, more consistency, less complexity.
- Ben, Harumi âhooroomooâ Jang and Jesse found (and fixed, of course) the root cause for why unexpected (and incorrectly!) loaded CSS assets were loaded into the XB UI â turns out that once again the #1945262: Replace custom weights with dependencies in library declarations; introduce âbeforeâ and âafterâ for conditional ordering Drupal core issue would have prevented this problem â and thatâs a core issue I first commented on 11.5 years ago đ đźâđš
- Jesse, Ted and BĂĄlint adapted our existing end-to-end test suite to account for the basic auto-saving we landed six weeks ago â until now, the (obviously automatic) auto-saving had been explicitly disabled for these tests, to keep the scope manageable. Now the end-to-end test suite is once again testing the actual XB experience đ
Week 29 was November 25âDecember 1, 2024.