Find a flow's declared inputs and outputs in the global search

/search lists each input and batch output under its qualified message,
and picking one opens the flow on the label's id, which the editor now
treats like a click on the label: it opens the flow's settings.
This commit is contained in:
2026-10-05 18:15:35 +02:00
parent 901e85f3fb
commit a677409079
9 changed files with 110 additions and 21 deletions
@@ -8,9 +8,9 @@ type Search = { node?: string }
export const Route = createFileRoute("/_canvas/flows/$flowName")({
component: FlowRoute,
// Which node to arrive on. A search param rather than a hash so the brain
// graph's click-through — and any link out of an alert — is a whole address
// someone can send.
// Which node, or input or output label, to arrive on. A search param rather
// than a hash so the brain graph's click-through — and any link out of an
// alert — is a whole address someone can send.
validateSearch: (search: Record<string, unknown>): Search => ({
node: typeof search.node === "string" ? search.node : undefined,
}),