Plan to allow editing props and slots for exposed code components

Created on 26 February 2025, 11 days ago

Overview

Code components, once they're added to components, i.e. become exposed, lock props and slots. This was implemented in ✨ Editing components sourced as code components Active .

On a related issue, πŸ› Code component status is not reflected in the code editor Needs work , @lauriii raised the following:

the updated status is not reflected in the code editor when the component's code is edited, which is supposed to lock props and slots

This seems like a pretty drastic consequence. I think we need follow-up issue to find a better way for managing this because it's fairly normal that especially during the initial development of a site that props might change.

Comment by @balintbrews:

[...] it was an easy consensus within the team that we need to ensure that once a component is exposed, which means it can be used for content, we need to ensure data integrity. Props can be updated by moving the component back to internal, where the prerequisite is that it's not used on the page. Maybe we can forego locking props and slots when that prerequisite is met. Happy to discuss in a follow-up.

Comment by @Wim Leers:

Agreed with [comment by @balintbrews]. That requires us knowing whether there's any instances of the code component, as described by @tedbow at #3500043-3: Publishing code components β†’

Proposed resolution

Let's discuss and plan how we could improve this.

User interface changes

TBD

🌱 Plan
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

Comments & Activities

Production build 0.71.5 2024