Show the streaming dash on dashboard edges and without motion
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user