From 376234539ee6dc7502d5e547e2881494d01caf8f Mon Sep 17 00:00:00 2001 From: Lucio Lelii Date: Mon, 9 Mar 2026 14:39:58 +0100 Subject: [PATCH] Add block example caching and structural refresh UX --- src/app/models/flow.ts | 2 + .../main/editor-sidebar/editor-sidebar.html | 8 +- src/app/services/blocks/blocks-call.ts | 39 ++++- src/app/services/blocks/blocks.ts | 139 ++++++------------ .../flows-list/flow-item/flow-item.html | 6 +- src/app/shared/group-holder/group-holder.html | 8 +- .../nodes/generic-node/generic-node.css | 41 ++++++ .../nodes/generic-node/generic-node.html | 20 +++ .../shared/nodes/generic-node/generic-node.ts | 22 ++- src/app/shared/rete-editor/rete-editor.css | 53 +++++++ src/app/shared/rete-editor/rete-editor.html | 13 +- src/app/shared/rete-editor/rete-editor.ts | 7 + .../shared/title-toolbar/title-toolbar.css | 4 + .../shared/title-toolbar/title-toolbar.html | 18 +-- 14 files changed, 262 insertions(+), 118 deletions(-) diff --git a/src/app/models/flow.ts b/src/app/models/flow.ts index 1f5e3bd..e2994c5 100644 --- a/src/app/models/flow.ts +++ b/src/app/models/flow.ts @@ -28,6 +28,8 @@ export type BlockType = { type: BlockTypeName; description: string; userInteractive: boolean; + hasExampleBlock?: boolean; + exampleBlockEndpoint?: string | null; configurationType: string | null; configurationClass: string | null; schema: BlockTypeSchema; diff --git a/src/app/pages/main/editor-sidebar/editor-sidebar.html b/src/app/pages/main/editor-sidebar/editor-sidebar.html index 97a5450..e16fafb 100644 --- a/src/app/pages/main/editor-sidebar/editor-sidebar.html +++ b/src/app/pages/main/editor-sidebar/editor-sidebar.html @@ -3,8 +3,8 @@ [class.w-14]="collapsed()" [class.w-72]="!collapsed()" > -