Endpoint labels sweep instead of pulse: left to right on a label publishing into the flow, right to left on one reading out of it, one pulse long, off under reduced motion; snapshot values are marked prior so catching up sweeps nothing

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
2026-10-15 00:23:01 +02:00
co-authored by Claude Opus 5.5
parent 98416dc516
commit 278a480a5c
3 changed files with 117 additions and 5 deletions
+6 -1
View File
@@ -22,6 +22,11 @@ export type LiveValue = {
value: unknown
ts: number | null
source?: ValueSource
/**
* Caught up from a snapshot rather than seen arriving. It happened, but not
* while anyone was watching — the same distinction as `priorEmits`.
*/
prior?: boolean
}
export type LiveStatus = {
status: "active" | "error" | "queued" | "running" | "success"
@@ -127,7 +132,7 @@ export const liveStore = {
},
setValues(entries: Record<string, LiveValue>) {
for (const [name, value] of Object.entries(entries)) {
values.set(name, value)
values.set(name, { ...value, prior: true })
notify(`value:${name}`)
}
},