Fix voices-echoed card: emit bare object, not wrapped array #5

Merged
bl merged 1 commits from fix-pulse-jq-nested-array into main 2026-09-11 12:07:47 +00:00
+5 -3
View File
@@ -52,10 +52,12 @@ alternatives:
public: true
# /pulse (redoal ADR-0023) returns { voices_echoed: N }; shape
# it into one card — the number as the heading, the phrase
# beneath. The card renders unlinked when the relay is quiet.
# beneath. Emit a bare object, not a wrapped [ … ]: the portal
# collects the jq output stream into an array itself, so a
# wrapping [ ] nests it ([[{…}]]) and drops to a raw JSON dump.
jq: >
[{ "name": (.voices_echoed | tostring),
"description": "voices echoed so far" }]
{ "name": (.voices_echoed | tostring),
"description": "voices echoed so far" }
empty: The first voice hasn't echoed yet.
- name: A drawing is an address
description: >