Is there an existing issue for this?
Description
Right now, our community block flow is reusable UI blocks that get saved into the database. However, we want reusable components in general, not just reusable UI components.
The goal is to make a reusable form. This is just for POC. There will be a singular notebook dependency tied into the UI.
Relevant Feature or Code
Possible Implementation Strategy
Component Definition:
Dependency Resolution Workflow:
Possible Steps:
Saving Components -
- Dependency Traversal
- Scan all blocks' data attributes for {{variable}}
patterns
-Parse event listeners for notebook/cell references
Stop at direct dependencies ie (don't traverse notebook's dependencies)
- Conflict Prevention
- Prefix variables: comp_123_var_a instead of var_a
- Namespace notebooks: comp_123_notebook_1
Loading Components:
- Conflict Resolution
- Template Application
- Replace all {{var}} references in blocks using mapping table
- Update event listeners with new notebook/cell IDs
- Inject "Community Source" tag into notebook metadata
Requirements (what)
No response
Is there an existing issue for this?
Description
Right now, our community block flow is reusable UI blocks that get saved into the database. However, we want reusable components in general, not just reusable UI components.
The goal is to make a reusable form. This is just for POC. There will be a singular notebook dependency tied into the UI.
Relevant Feature or Code
Possible Implementation Strategy
Component Definition:
Dependency Resolution Workflow:
Possible Steps:
Saving Components -
patterns
-Parse event listeners for notebook/cell references
Stop at direct dependencies ie (don't traverse notebook's dependencies)
Loading Components:
Requirements (what)
No response