LiveEdge pulse gaps: reset timer survives other producers, snapshots do not flash, flow: endpoints pulse as their node

This commit is contained in:
2026-10-15 16:26:20 +02:00
parent 08adc9ef1d
commit 5bd504ba9d
3 changed files with 29 additions and 6 deletions
@@ -4,7 +4,7 @@ import { memo, useEffect, useMemo, useRef, useState } from "react"
import { useIsMobile } from "@/hooks/useMobile"
import { cn } from "@/lib/utils"
import type { EndpointNodeData } from "./endpoints"
import { type EndpointNodeData, publisherOf } from "./endpoints"
import { handleOffset, nodeHeight } from "./layout"
import { useLiveValues } from "./liveStore"
@@ -57,7 +57,10 @@ function EndpointNodeComponent({ id, data, selected }: NodeProps) {
seen.current.set(name, live.ts)
if (first || live.prior) continue
// Published by this label, by the rule its own edges pulse on (LiveEdge).
if (provides.includes(name) && (!live.source || live.source.id === id)) {
if (
provides.includes(name) &&
(!live.source || live.source.id === publisherOf(id))
) {
dir = "in"
} else if (requires.includes(name)) {
dir ??= "out"