Companion Buttons 1.2.0: back to picking any buttons from any pages, without the header row

1.1.0 made each tile one page, so buttons picked on a second page never
showed, choosing ended on every settings change, and a tile could go blank
after a remount. This goes back to 1.0's model and keeps only the changes
asked for:

- Pick buttons from any pages; each gets a ring and its order number.
- No Page / Clear / Done row: Page is in the gear, the grid icon starts and
  ends choosing, a second click on a button takes it out.
- Choosing survives the remount a gear change causes, so switching Page
  carries straight on.
- A tile joining a stream its dashboard already has open (another tile with
  the same buttons, or itself after a settings change) asks GET /state for
  the snapshot instead of waiting blank.
- Gear: Captions and Page. The per-page + entries are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-15 12:09:31 -04:00
co-authored by Claude Opus 5.5
parent 0a6cec88aa
commit a3097481e7
8 changed files with 772 additions and 605 deletions
+6 -6
View File
@@ -1,9 +1,9 @@
{
"id": "companion-buttons",
"name": "Companion Buttons",
"version": "1.1.0",
"version": "1.2.0",
"proddash": ">=1.10.0",
"description": "Companion pages and buttons, live as Companion draws them — for status and what's happening",
"description": "Any Companion buttons from any pages, live as Companion draws them — for status and what's happening",
"permissions": [
{
"kind": "local-network",
@@ -14,7 +14,7 @@
"server": "server.js",
"style": "style.css",
"minSize": { "w": 1, "h": 1 },
"defaultSize": { "w": 6, "h": 4 },
"defaultSize": { "w": 4, "h": 4 },
"configSchema": {
"companion": {
"type": "endpoint",
@@ -24,10 +24,10 @@
}
},
"instanceSchema": {
"layout": {
"captions": {
"type": "switch",
"label": "Page layout",
"default": true
"label": "Captions",
"default": false
},
"page": {
"type": "select",