From a876dfe2622b0206c2cc2d788924424736d2c450 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Mon, 23 Mar 2026 22:14:30 +1300 Subject: [PATCH] feat: add "NBP Input" toggle to group context menu Allow marking groups as NBP inputs for workflow export. Adds isNbpInput flag to NodeGroup, a toggle row in the group context menu with checkmark indicator, and a dashed border on marked group backgrounds. Co-Authored-By: Claude Opus 4.6 --- src/components/GroupsOverlay.tsx | 18 +++++++++++++++++- src/types/workflow.ts | 1 + 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/components/GroupsOverlay.tsx b/src/components/GroupsOverlay.tsx index 65946afa..1374701c 100644 --- a/src/components/GroupsOverlay.tsx +++ b/src/components/GroupsOverlay.tsx @@ -46,7 +46,7 @@ function GroupBackground({ groupId }: GroupBackgroundProps) { width: group.size.width, height: group.size.height, backgroundColor: `${bgColor}60`, - border: `1px solid ${bgColor}`, + border: group.isNbpInput ? `2px dashed ${bgColor}` : `1px solid ${bgColor}`, pointerEvents: "none", }} /> @@ -439,6 +439,22 @@ function GroupControls({ groupId, zoom }: GroupControlsProps) { {group.locked ? "Unlock" : "Lock"} + {/* NBP Input toggle row */} + + {/* Delete row */}