feat: sequence window, finer timeline, zone brightness to Wi-Fi drivers

- A sequence's length is a fixed window (window_beats / window_seconds), not its presets.
  The timeline is exactly the window long; clips past it are cut on save.
- The ruler adds finer ticks when zoomed in; Snap has Auto (follows the zoom), 0.25 s and 0.05 s.
  Steps and the window go down to 50 ms.
- Ctrl+wheel zooms around the pointer; the zoom buttons zoom around the last pointer position.
- Sequence start and the zone brightness slider reach Wi-Fi drivers (matched by hostname or MAC).
- A preset select with brightness also sends the brightness to Wi-Fi drivers, as ESP-NOW does.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Haiku 5.5 committed 2026-11-16 21:22:17 +13:00
1 parent 581b751904
commit a1c8ce853b
21 files changed
+419 -318

No files matched your search

+11
View File
@@ -345,3 +345,14 @@ def test_preset_takes_over_from_sequence(c, zone, clock):
st = c.get("/sequences/status").json()
assert st["active"] is False, "a looping preset replaces the zone's looping sequence"
assert st["overlay"]["active"] is True, "the one-shot carries on, then comes back to the preset"
def test_window_is_kept(c, profile):
"""The window is the sequence's length: saved as it is, whatever the presets run for."""
sid = new_id(c.post("/sequences", json={"name": unique("pytest-seq"), "steps": [{"preset_id": "1", "group_ids": []}]}))
resp = c.put(f"/sequences/{sid}", json={"window_beats": 8, "window_seconds": 2.4})
assert resp.status_code == 200
rec = c.get(f"/sequences/{sid}").json()
assert rec["window_beats"] == 8
assert rec["window_seconds"] == 2.4
assert c.delete(f"/sequences/{sid}").status_code == 200