feat(client/renderer): create notebook variables tie to community block#1433
feat(client/renderer): create notebook variables tie to community block#1433
Conversation
…cks FE implementation
|
@CodiumAI-Agent /describe |
Titlefeat(client/renderer): create notebook variables tie to community block User description…cks FE implementation DescriptionChanges MadeHow to Test
NotesPR TypeEnhancement Description
Changes diagramflowchart LR
A["Select community block"] -- "prepare dependencies" --> B["dispatchDependencyQueries"]
B -- "ADD_BLOCK with rewritten JSON" --> C["state.dispatch ADD_BLOCK"]
C -- "dispatchDependencyVariables" --> D["state.dispatch ADD_VARIABLE"]
Changes walkthrough 📝
|
|
@CodiumAI-Agent /review |
|
@CodiumAI-Agent /improve |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to f6bf753
Previous suggestionsSuggestions up to commit 6175425
|
…drop of community block
…reate-Notebook-Community-Block-Tie
…reate-Notebook-Community-Block-Tie
…reate-Notebook-Community-Block-Tie
…thub.com/SEMOSS/semoss-ui into 1340-Create-Notebook-Community-Block-Tie
…reate-Notebook-Community-Block-Tie
…thub.com/SEMOSS/semoss-ui into 1340-Create-Notebook-Community-Block-Tie
…reate-Notebook-Community-Block-Tie
…reate-Notebook-Community-Block-Tie
…thub.com/SEMOSS/semoss-ui into 1340-Create-Notebook-Community-Block-Tie
…reate-Notebook-Community-Block-Tie
|
@KirthikaKumar-K can we merge your community block design changes into this branch |
sure @johbaxter |
But @johbaxter her ticket has only FE changes with incomplete features associated with incomplete BE pieces. If we merge it, 1340 ticket can be closed only after the whole implementation. Is it ok? |
|
Okay yeah lets hold off merging then @KirthikaKumar-K. We can handle your changes independently. Do you mind linking your branch in a comment in this thread @KirthikaKumar-K |
Sure @johbaxter , |
…reate-Notebook-Community-Block-Tie
…thub.com/SEMOSS/semoss-ui into 1340-Create-Notebook-Community-Block-Tie
…reate-Notebook-Community-Block-Tie
…reate-Notebook-Community-Block-Tie
…thub.com/SEMOSS/semoss-ui into 1340-Create-Notebook-Community-Block-Tie
…reate-Notebook-Community-Block-Tie
|
@johbaxter
Yes, the issue is the way we save the json, it has missed some variables. I have tested using community along with Template apps with existing vars. Variables and Queries are getting assigned properly. |
|
We will address a refactor with migration functions at a later point. Will push this for the purpose of demo. I have thoughts on the
|
| data: {}, | ||
| listeners: {}, | ||
| slots: {}, | ||
| communityBlockMapping: {}, |
| type: "after"; | ||
| sibling: string; | ||
| }; | ||
| isCommunity?: boolean; // Optional flag to indicate if the block is community-based |
There was a problem hiding this comment.
Will look at later point but is this needed.
| const { json, position, isCommunity } = action.payload; | ||
|
|
||
| return this.addBlock(json, position); | ||
| return this.addBlock(json, position, isCommunity); |
There was a problem hiding this comment.
Wondering if we need isCommunity will explore in a refactor
There was a problem hiding this comment.
Need some flag to differentiate in triggering addBlock dispatch for normal block vs community block
|
@CodiumAI-Agent /update_changelog |
|
Changelog updates: 🔄 2025-07-31 *Added
|


…cks FE implementation
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.
On this implementation, the dependency variables and notebook/query will brought in along with the community blocks drops.
Changes Made
How to Test
SEMOSS.2.webm
Notes