Show the streaming dash on dashboard edges and without motion

This commit is contained in:
2026-08-20 13:28:40 +02:00
parent 3a417cdf5d
commit d5830a5d1e
3 changed files with 15 additions and 5 deletions
+6 -2
View File
@@ -51,7 +51,10 @@ export function deriveEndpoints(
// Which node consumes or produces each message, so a label can sit beside it.
const consumers = new Map<string, { node: string; port: string }[]>()
const producers = new Map<string, { node: string; port: string }[]>()
const producers = new Map<
string,
{ node: string; port: string; stream?: boolean }[]
>()
for (const node of definitions) {
for (const spec of node.requires ?? []) {
const message = qualify(flow, spec.name ?? "")
@@ -66,7 +69,7 @@ export function deriveEndpoints(
if (!message) continue
producers.set(message, [
...(producers.get(message) ?? []),
{ node: node.id, port: portOf(spec) },
{ node: node.id, port: portOf(spec), stream: spec.stream },
])
}
}
@@ -127,6 +130,7 @@ export function deriveEndpoints(
message,
flow,
producerId: `${flow}.${producer.node}`,
stream: producer.stream,
} satisfies FlowEdgeData,
})
}