From e1c9b2f9740e13cff4eb7d77898062ac26c91333 Mon Sep 17 00:00:00 2001 From: christian Date: Tue, 20 Oct 2026 16:37:10 -0400 Subject: [PATCH] Auto-setup knows Vista on a Mac (Woonsocket's Lights Mac mini) Co-Authored-By: Claude Opus 5.5 --- settings/autoconf.py | 1 + tests/test_campus.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/settings/autoconf.py b/settings/autoconf.py index d109602..0af14c7 100644 --- a/settings/autoconf.py +++ b/settings/autoconf.py @@ -62,6 +62,7 @@ MAC_APPS = [ {"app": "obs", "process": "obs", "label": "OBS", "open": "/Applications/OBS.app", "restart": True}, {"app": "translate", "process": "Church Translate", "label": "TRANSLATE", "open": "/Applications/Church Translate.app", "restart": True}, {"app": "protools", "process": "Pro Tools", "label": "PRO TOOLS", "open": "/Applications/Pro Tools.app", "restart": True}, + {"app": "vista", "process": "Vista", "label": "VISTA", "open": "/Applications/Vista*.app", "restart": True}, {"app": "superrack", "process": "SuperRack SoundGrid", "label": "SUPERRACK", "open": "/Applications/*SuperRack*.app", "restart": True, "group": "AUDIO"}, {"app": "x32edit", "process": "X32-Edit", "label": "X32 EDIT", "open": "/Applications/X32-Edit.app", "restart": False, "group": "AUDIO"}, ] diff --git a/tests/test_campus.py b/tests/test_campus.py index b5b6f67..ab2cfe9 100644 --- a/tests/test_campus.py +++ b/tests/test_campus.py @@ -111,6 +111,11 @@ class TestBuild(unittest.TestCase): self.assertEqual(sr["checks"][0]["cmd"], "pgrep -xq 'SuperRack SoundGrid'") self.assertIn("/Applications/Waves/SuperRack SoundGrid/SuperRack SoundGrid.app", cfg["fixes"][sr["checks"][0]["fix"]]["run"]) self.assertIn("X32 EDIT", [t["label"] for t in cfg["tiles"]]) + inv["computers"]["lights"] = {"name": "WS Lights", "os": "mac", "user": "wslighting", "ip": "10.4.2.2", "ips": ["10.4.2.2"], "reachable": True, + "procs": ["Vista", "VistaPlaybackNode"], "apps": ["/Applications/Vista.app"], "paths": {"Vista": "/Applications/Vista.app"}} + cfg, _ = ac.build(BASE, inv, {"id": "ws", "name": "Woonsocket"}, "1234") + vista = [t for t in cfg["tiles"] if t["label"] == "VISTA" and t["checks"][0].get("host") == "lights"] + self.assertEqual(vista[0]["checks"][0]["cmd"], "pgrep -xq Vista") # Vista on a Mac, too self.assertIn("SUPERRACK", [k["label"] for k in cfg["restart_page"]["keys"]]) def test_a_big_campus_gets_group_keys_and_the_receivers_fold_first(self):