XB week 29: adieu, dizzying drag and drop

Published on 10 March, 2025

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:

XB’s live preview now shows “global regions” (theme regions) and their contents 
 with some caveats: the “main content” is still inaccurate! It shows the XB component tree for the current content entity, nothing else.
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:

XB’s “trippy drop” rather than “drag and drop” đŸ™ˆđŸ€Ł
Issue #3476354, image by Lauri.

To:

Dragging and dropping is no longer dizzying, plus now has clear affordances for dropping into the root.
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.

Components powering XB’s UI can now be browsed using Storybook.
Issue #3486888, image by Atul.

Grab bag

Week 29 was November 25–December 1, 2024.