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
This commit is contained in:
@@ -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}`)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user