XB week 11: live updates
This week started with undoing the horrors that y’all were subjected to last week: TwoTerribleTextAreasWidget
featured prominently. The follow-up that I mentioned landed (Ben “bnjmnm” Mullins and I collaborated on it), which with a +110,-245
diff resulted in something that still is nowhere near a final UX, but is starting to look reasonable.
(Next up on that front: #3462310: Component props form: make form elements match design.)
That right sidebar is overlaid on top of the canvas, which also saw a big leap forward this week — thanks to Jesse “jessebaker” Baker, Harumi “hooroomoo” Jang, Ben “bnjmnm” Mullins and Lauri “lauriii” Timmanee — a true team effort:
The images you saw last week showed actual component previews … but we cheated by using inline style
s :P.
This week, Ben rectified that: CSS/JS assets are now loaded inside the preview <iframe>
s.
But I saved the best for last: the last MR to land this week was Ben’s Redux integration issue, which brought live updates of the edited component’s preview:
This currently always requires a round trip to the server, but in many cases we’d actually be able to update the preview without a round trip (better for UX obviously!). See #3453690: [META] Real-time preview: supporting back-end infrastructure, where Lee “larowlan” Rowlands intends to work on parsing a Single-Directory Component’s Twig template into an abstract syntax tree (AST), which would allow eliminating that round trip in typical cases.1
There’s one more issue that landed deserving of a mention: Ted “tedbow” Bowman and Ben landed CI: use a snapshot of core’s phpcs rules as changes in Drupal core will break MRs with limited benefit to module development, which was a very welcome addition: recently, Drupal 11 development has picked up steam … and hence several coding standards were added to Drupal core. Result: XBs phpcs
CI job started failing overnight, with zero changes on our end. Doing the right thing can be painful! So, Ted and Ben changed that so we’d be notified instead: far less disruptive.
In progress/where to contribute
- Experience Builder has some needs that Single-Directory Components has not had to fulfill. Lauri asked me to start developing a comprehensive plan for integrating XB with SDC: what are all the mismatches, the feature gaps, et cetera?
- Ted discovered that XB currently does not support propless SDCs — oops! This is a great first issue to contribute to XB!
- Lauri created #3463300: Implement the concept of sections within the client
- Lauri also created #3463307: Implement simplified zoom interface, which Gauravvvv quickly picked up!
- Ben created #3463610: VH units fix only works for inline styles, which seems another great first issue to contribute to XB, but this time on the front end.
- Finally, I created #3463957: “Publish” and “Share” buttons should convey they do not yet work, which was quickly picked up by fazilitehreem :)
P.S.: issues that were picked up by somebody do not exclude you from contributing too — as you can see above, almost every issue is a multi-person effort!
Week 11 was July 22–28, 2024.
-
If the SDC prop value is rendered as-is, with no transformations applied, then no round trip is necessary. Otherwise, that might be needed. ↩︎