Skip to content

Create Notebook / Community Block Tie #1340

@ehynd

Description

@ehynd

Is there an existing issue for this?

  • I confirm that I have not found an existing or similar issue.

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:

Image

Dependency Resolution Workflow:

Image

Possible Steps:
Saving Components -

  1. 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)
  1. Conflict Prevention
  • Prefix variables: comp_123_var_a instead of var_a
  • Namespace notebooks: comp_123_notebook_1

Loading Components:

  1. Conflict Resolution
Image
  1. 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

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions