From a8b65394762753e3f84cdd962e0c6b5d64b27c9c Mon Sep 17 00:00:00 2001 From: tigerenwork Date: Sun, 9 Aug 2026 20:35:21 +0800 Subject: [PATCH] fix: display connection names and select labels in pipeline form --- components/pipeline-form.tsx | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/components/pipeline-form.tsx b/components/pipeline-form.tsx index 3879257..769afe0 100644 --- a/components/pipeline-form.tsx +++ b/components/pipeline-form.tsx @@ -214,7 +214,12 @@ export function PipelineForm({ initial }: { initial?: Pipeline }) { }} > - + + {(v) => { + const c = connections.find((x) => String(x.id) === String(v)); + return c ? `${c.name}(${c.database})` : String(v ?? ""); + }} + {connections.map((c) => ( @@ -229,7 +234,12 @@ export function PipelineForm({ initial }: { initial?: Pipeline }) { setMode(String(v))}> - + + {(v) => MODES.find((m) => m.value === v)?.label ?? String(v ?? "")} + {MODES.map((m) => ( @@ -282,7 +294,9 @@ export function PipelineForm({ initial }: { initial?: Pipeline }) { disabled={!schemaSync} > - + + {(v) => (v === "all" ? "整个库" : "仅选中的表")} + 仅选中的表