Loading and auto-saving an edited code component

Created on 13 February 2025, 2 months ago

Overview

Introduce data loading and saving while editing code components.

โœจ Editing code components Active landed an editorial UI for working with code components, and with โœจ Preview for code components Active and โœจ Defining props for code components Active , the UI is ready to load and save data. We now have an API endpoint to do that thanks to โœจ Auto-save code components Active .

Proposed resolution

  1. Load the JavaScriptComponent config entity when the editor is opened. See if there's an auto-saved version, fall back to the canonical config entity (use โœจ HTTP API for code component config entities Active ) if not.
  2. Store the loaded data in codeEditorSlice.
  3. When there are changes in codeEditorSlice, use the auto-save endpoint with a PATCH request.
โœจ Feature request
Status

Active

Version

0.0

Component

Page builder

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands balintbrews Amsterdam, NL

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