#3506108: Editing code components as overrides, step 1
- Overrides are represented by
JavaScriptComponentconfig entities with ablock_overrideproperty storing the base ID of the block plugin to override. - A new accordion group in the left sidebar lists these reusing the previously written
CodeComponentListcomponent, and with the help ofuseGetCodeComponentsQuerywhich can now return overrides vs. non-overrides. - Three default config entities are shipped. Page title, which would have been the fourth one, had to be deleted, because we can't render the page title block in XB.
- Overrides can't be added to components, and they can't be renamed or deleted.
- Instead of allowing users to define props, we present example data.
- Preview inside the code editor is generated using the example data. New utility functions are introduced to help with that, and there is now unit test for the most complex one.