Repository navigation
Pusher sources gain composite and multi-field support, and every source path is
checked before it is pushed, so a bad sample can no longer produce a board the
backend refuses.
Added
- Composite sources. A source now writes its block's own field by default,
and the list-valued fields (items,data,rows,values,series,
lines,xLabels) take a whole JSON list — so one endpoint fills astats
tile set, abarand akvin a single call. sources— several fields from one block. A field → source map drives more
than one field at once (a callout'stextand itstone), each keeping its
own last good value.- A live tab indicator.
tab.indicatoraccepts asourceof its own, so a
tab's mini-bar tracks a real ratio instead of a hardcoded number. - A portable composite example:
examples/composite_sources.json
with its single-JSON-object probeexamples/composite_probe.py.
Fixed
- A pusher source can no longer emit a board the backend refuses. A rejected
board is lost whole, so a field name the block type does not allow, a
config-only key leaking into the block, a malformed entry inside a composite
list (a null, a nested list, a boolean, a wrong shape, an overlong string), a
boolean or non-finite value where a number is required, an integer beyond
2**53, and a composite list over 256 KiB serialised are each a named source
error instead of a lost board. - A source-driven
logblock keeps its lines. The guard meant to leave such
a block alone tested the wrong value, so the poller's own lines silently
replaced the ones the source supplied. - Tab-indicator errors are visible in the same tick, and an indicator whose
source dies without a numeric fallback is dropped rather than pushed in an
invalid shape.
Changed
examples/pusher.py's resolution path is pinned by an expanded suite
(backend/tests/pusher_test.py), which now runs every board it builds through
the backend's own validator.
Full changelog: CHANGELOG.md