Partial preview updates: update preview of modified component only, not entire component tree

Created on 18 July 2024, about 2 months ago
Updated 26 July 2024, about 1 month ago

Overview

When changes are being made to component properties on the right sidebar form, those changes should be reflected in the preview in real time. Contextual form values need to be integrated with Redux Active implemented that.

The updates to the preview should be as seamless as possible, meaning that we should avoid any loading animations that block users from interacting with the page, as well as flickering.

Proposed resolution

To minimize flickering and minimize latency, do not re-render the entire preview, but only the affected component.

IOW, the UI must:

  1. extract the subtree of layout + model that represents only the component the Content Creator just modified
  2. send that to /api/preview aka \Drupal\experience_builder\Controller\SdcController::preview() (which is agnostic to this — no code changes needed on the server side 👍)
  3. apply the response to the current preview: update the relevant DOM subtrees in all preview <iframe>s

User interface changes

Feature request
Status

Active

Component

Page builder

Created by

🇫🇮Finland lauriii Finland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024