feat: pattern gallery as a preset editor; chase steps; sim split with the preset editor

- Pattern gallery shows the controller's presets, one at a time, with a dropdown, Save, Add preset, and
  the controller's field labels, delay limits and colour counts. Edits show in the preview; Save writes to
  the controller only.
- Presets are always timed in ms (beat_time is no longer sent to drivers); beats stay in sequences.
- Chase steps of 0 hold still; the marquee style is removed from the controller, the gallery and the
  driver (submodule commit 12a8e22).
- The rig's split pane opens the preset editor too (Rig / Presets switch and a Preset editor menu entry).
- Sequence editor, room layout and simulator controls from earlier work are included.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Haiku 5.5 committed 2026-11-17 07:16:51 +13:00
1 parent 8c783ab926
commit cb51a726bc
79 files changed
+5183 -934

No files matched your search

+9 -11
View File
@@ -15,16 +15,20 @@
<span class="brand-name">led-simulator</span>
</div>
<div class="chips">
<span class="chip" id="bridge-chip" title="The rig's bridge: frames from the controller come in as from this MAC">bridge</span>
<span class="chip" id="controller-chip">controller: –</span>
<button type="button" id="add-bridge" class="secondary" hidden
title="The controller sends its ESP-NOW frames only to the bridges in its settings">Add the browser bridge</button>
<span class="chip" id="strips-chip">strips: –</span>
</div>
<div class="room-bar">
<label class="field-inline">Room <select id="room-select" aria-label="Room"></select></label>
<button type="button" id="edit-toggle" class="secondary">Edit room</button>
<span class="zoom-tools" role="group" aria-label="Zoom">
<button type="button" id="zoom-out" class="secondary" aria-label="Zoom out" title="Zoom out (wheel)">−</button>
<button type="button" id="zoom-fit" class="secondary" title="Fit the room (0)">Fit</button>
<button type="button" id="zoom-in" class="secondary" aria-label="Zoom in" title="Zoom in (wheel)">+</button>
</span>
<span id="edit-tools" class="edit-tools" hidden>
<button type="button" id="add-strip">Add strip</button>
<button type="button" id="centre-strips" class="secondary" title="Move all the strips so they sit in the middle of the room">Centre strips</button>
<button type="button" id="room-settings" class="secondary">Size &amp; strip types…</button>
<button type="button" id="room-new" class="secondary">New room…</button>
<button type="button" id="room-delete" class="secondary">Delete room</button>
@@ -33,19 +37,15 @@
</div>
<div class="actions">
<a class="button secondary not-embedded" href="/">Controller</a>
<a class="button secondary" href="/sim/gallery" target="_blank" rel="noopener">Pattern gallery</a>
<button type="button" id="power-on-all">Power on all</button>
<button type="button" id="power-cycle-all">Power cycle all</button>
<button type="button" id="power-off-all" class="secondary">Power off all</button>
<label class="toggle" title="Boot every strip when this page opens">
<input type="checkbox" id="auto-power"> Power on when opened
<input type="checkbox" id="auto-power"> Auto-power
</label>
</div>
</header>
<div id="banner" class="banner" hidden></div>
<div class="edit-hint" id="edit-hint">
Click the floor to add a strip · drag a strip to move it (Alt: no snap) · drag its end circle to turn it (Shift: no snap) · Delete removes the selected strip
Add strip or click the floor to add one · drag the floor to select the strips in a box (Shift: add to the selection; zoomed in, a plain drag pans instead) ·Shift-click a strip to add or remove it · drag a selected strip to move them all (Alt: no snap) · drag its end circle to turn it (Shift: no snap) · Delete removes the selection · wheel or +/− zooms, right-drag, middle-drag or Space-drag pans
</div>
<main class="stage">
@@ -95,8 +95,6 @@
</aside>
</main>
<footer class="hint" id="hint">Loading…</footer>
<dialog id="room-dialog" aria-labelledby="r-title">
<h2 id="r-title">Room size and strip types</h2>
<div class="dialog-row">