From a99a59951efbcadaa83f3b6052360f317d0e4717 Mon Sep 17 00:00:00 2001 From: DDD1542 Date: Thu, 12 Mar 2026 03:35:23 +0900 Subject: [PATCH] [agent-pipeline] pipe-20260311182531-f443 round-2 --- .../V2ApprovalStepConfigPanel.tsx | 22 +++++++++++++++++-- .../V2DividerLineConfigPanel.tsx | 2 +- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/frontend/components/v2/config-panels/V2ApprovalStepConfigPanel.tsx b/frontend/components/v2/config-panels/V2ApprovalStepConfigPanel.tsx index 5645629c..dbc22a6d 100644 --- a/frontend/components/v2/config-panels/V2ApprovalStepConfigPanel.tsx +++ b/frontend/components/v2/config-panels/V2ApprovalStepConfigPanel.tsx @@ -43,6 +43,14 @@ export const V2ApprovalStepConfigPanel: React.FC const handleChange = (key: keyof ApprovalStepConfig, value: any) => { onChange({ [key]: value }); + + if (typeof window !== "undefined") { + window.dispatchEvent( + new CustomEvent("componentConfigChanged", { + detail: { config: { ...config, [key]: value } }, + }) + ); + } }; useEffect(() => { @@ -102,9 +110,17 @@ export const V2ApprovalStepConfigPanel: React.FC const handleTableChange = (newTableName: string) => { if (newTableName === targetTableName) return; - handleChange("targetTable", newTableName); - handleChange("targetRecordIdField", ""); + const patch = { targetTable: newTableName, targetRecordIdField: "" }; + onChange(patch); setTableOpen(false); + + if (typeof window !== "undefined") { + window.dispatchEvent( + new CustomEvent("componentConfigChanged", { + detail: { config: { ...config, ...patch } }, + }) + ); + } }; return ( @@ -376,4 +392,6 @@ export const V2ApprovalStepConfigPanel: React.FC ); }; +V2ApprovalStepConfigPanel.displayName = "V2ApprovalStepConfigPanel"; + export default V2ApprovalStepConfigPanel; diff --git a/frontend/components/v2/config-panels/V2DividerLineConfigPanel.tsx b/frontend/components/v2/config-panels/V2DividerLineConfigPanel.tsx index f346fcb7..f00a31f6 100644 --- a/frontend/components/v2/config-panels/V2DividerLineConfigPanel.tsx +++ b/frontend/components/v2/config-panels/V2DividerLineConfigPanel.tsx @@ -13,7 +13,7 @@ import { CollapsibleContent, CollapsibleTrigger, } from "@/components/ui/collapsible"; -import { Settings, ChevronDown, Minus, MoreHorizontal, Equal } from "lucide-react"; +import { Settings, ChevronDown } from "lucide-react"; import { cn } from "@/lib/utils"; const THICKNESS_CARDS = [