Include the preview HTML in the layout controller payload

Created on 5 December 2024, 4 months ago

Overview

In πŸ› Some components cannot be used in XB because UI prevents SDC props being named `name` Active we introduce a PreviewEnvelope controller result.
Returning this allows combining a preview render array with a JSON data object and still invoking the preview renderer to combine the render array and the rest of the page elements into a HTML property in a JSON response.

It also adds a slice to hold the current preview HTML

With that in place, we no longer need to call postPreview when the application boots to get the preview. We can instead bundle it with the original layout controller payload and use a pessimistic update in an onQueryStarted method on the layoutApi slice to dispatch a reducer to set the preview value in the slice.

Proposed resolution

User interface changes

πŸ“Œ Task
Status

Active

Version

0.0

Component

Page builder

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024