feat(ui): Edit mode Menu on desktop, device groups and Identify

Sequences, Settings and Audio only show in Edit mode. On wide screens the Edit
mode actions and Run mode move into the Menu.

Edit device gets a Groups checklist. The Devices list and Edit device group
show names without addresses, and every device in Edit device group, in the
group or in the list to add from, gets an Identify button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Opus 5.5 committed 2026-11-04 20:47:00 +13:00
1 parent 24d3c1149d
commit a560a1a72b
8 files changed
+181 -91

No files matched your search

+18 -23
View File
@@ -38,13 +38,13 @@
<button class="btn btn-secondary edit-mode-only" id="devices-btn">Devices</button>
<button class="btn btn-secondary edit-mode-only" id="groups-btn">Groups</button>
<button class="btn btn-secondary edit-mode-only" id="outputs-btn">Outputs</button>
<button class="btn btn-secondary" id="sequences-btn">Sequences</button>
<button class="btn btn-secondary edit-mode-only" id="sequences-btn">Sequences</button>
<button class="btn btn-secondary edit-mode-only" id="zones-btn">Zones</button>
<button class="btn btn-secondary edit-mode-only" id="presets-btn">Presets</button>
<button class="btn btn-secondary edit-mode-only" id="patterns-btn">Patterns</button>
<button class="btn btn-secondary edit-mode-only" id="color-palette-btn">Colour Palette</button>
<button class="btn btn-secondary" id="audio-btn">Audio</button>
<button class="btn btn-secondary" id="settings-btn">Settings</button>
<button class="btn btn-secondary edit-mode-only" id="audio-btn">Audio</button>
<button class="btn btn-secondary edit-mode-only" id="settings-btn">Settings</button>
<button class="btn btn-secondary" id="help-btn">Help</button>
<button type="button" class="btn btn-secondary ui-mode-toggle" id="ui-mode-toggle" aria-pressed="false" title="Switch preset strip mode — label is the mode you will switch to">Edit mode</button>
</div>
@@ -67,13 +67,13 @@
<button type="button" class="edit-mode-only" data-target="devices-btn">Devices</button>
<button type="button" class="edit-mode-only" data-target="groups-btn">Groups</button>
<button type="button" class="edit-mode-only" data-target="outputs-btn">Outputs</button>
<button type="button" data-target="sequences-btn">Sequences</button>
<button type="button" class="edit-mode-only" data-target="sequences-btn">Sequences</button>
<button type="button" class="edit-mode-only" data-target="zones-btn">Zones</button>
<button type="button" class="edit-mode-only" data-target="presets-btn">Presets</button>
<button type="button" class="edit-mode-only" data-target="patterns-btn">Patterns</button>
<button type="button" class="edit-mode-only" data-target="color-palette-btn">Colour Palette</button>
<button type="button" data-target="audio-btn">Audio</button>
<button type="button" data-target="settings-btn">Settings</button>
<button type="button" class="edit-mode-only" data-target="audio-btn">Audio</button>
<button type="button" class="edit-mode-only" data-target="settings-btn">Settings</button>
<button type="button" data-target="help-btn">Help</button>
</div>
</div>
@@ -319,6 +319,8 @@
<input type="range" id="edit-device-output-brightness" min="0" max="255" value="255" style="flex:1;">
<span id="edit-device-output-brightness-value" class="muted-text" style="min-width:2.5rem;">255</span>
</div>
<label class="zone-devices-label" style="margin-top:0.75rem;display:block;">Groups</label>
<div id="edit-device-groups"></div>
</form>
</div>
</div>
@@ -632,11 +634,8 @@
<input type="range" min="0" max="255" value="200" tabindex="-1">
</div>
<button type="button" class="btn btn-secondary" tabindex="-1">Profiles</button>
<button type="button" class="btn btn-secondary" tabindex="-1">Devices</button>
<button type="button" class="btn btn-secondary" tabindex="-1">Zones</button>
<button type="button" class="btn btn-secondary" tabindex="-1">Presets</button>
<button type="button" class="btn btn-secondary" tabindex="-1">Audio</button>
<button type="button" class="btn btn-secondary ui-mode-toggle" tabindex="-1">Run mode</button>
<button type="button" class="btn btn-secondary" tabindex="-1">Help</button>
<button type="button" class="btn btn-secondary" tabindex="-1">Menu</button>
</div>
</div>
<div class="zones-container">
@@ -648,12 +647,12 @@
</div>
</div>
</div>
<p class="help-ui-preview-caption">Zone buttons on the left of the header; brightness and the other buttons on the right (Menu on narrow screens).</p>
<p class="help-ui-preview-caption">Zone buttons on the left of the header; brightness, Profiles and Help on the right. In Edit mode, <strong>Menu</strong> holds the setup actions and <strong>Run mode</strong>.</p>
<h3>Run mode and Edit mode</h3>
<ul>
<li><strong>Run mode</strong>: day-to-day control — choose a zone, tap presets, apply profiles. Management buttons are hidden.</li>
<li><strong>Edit mode</strong>: full setup — zones, presets, sequences, patterns, colour palette, and per-tile <strong>Edit</strong> on the strip.</li>
<li><strong>Switch modes</strong>: use the mode button in the header or mobile menu. The label shows the mode you will switch <em>to</em>.</li>
<li><strong>Run mode</strong>: day-to-day control — choose a zone, tap presets, apply profiles. The setup actions are hidden.</li>
<li><strong>Edit mode</strong>: full setup from the <strong>Menu</strong> — devices, groups, outputs, sequences, zones, presets, patterns, colour palette, audio and settings — plus per-tile <strong>Edit</strong> on the strip.</li>
<li><strong>Switch modes</strong>: <strong>Edit mode</strong> is in the header and <strong>Run mode</strong> is in the <strong>Menu</strong> (on narrow screens, both are in the Menu). The label shows the mode you will switch <em>to</em>.</li>
</ul>
<div class="help-ui-preview help-ui-preview--strip" aria-hidden="true">
<div class="zone-content">
@@ -708,7 +707,7 @@
<button type="button" tabindex="-1">Help</button>
</div>
</div>
<p class="help-ui-preview-caption">On narrow screens, <strong>Menu</strong> reaches the same actions as the desktop header.</p>
<p class="help-ui-preview-caption">On narrow screens, <strong>Menu</strong> also holds the header actions, so it is there in Run mode too.</p>
</div>
<div id="help-panel-profiles" class="help-tab-panel" data-help-panel="profiles" role="tabpanel" aria-labelledby="help-tab-profiles" hidden>
@@ -768,16 +767,12 @@
<div class="profiles-row">
<span class="device-status-dot device-status-dot--online" role="img"></span>
<span style="flex:1">lounge strip</span>
<code class="device-row-mac">AA:BB:CC:DD:EE:01</code>
<span class="muted-text" style="font-size:0.85em">led · espnow · —</span>
<button type="button" class="btn btn-secondary btn-small" tabindex="-1">Edit</button>
<button type="button" class="btn btn-secondary btn-small" tabindex="-1">Identify</button>
</div>
<div class="profiles-row">
<span class="device-status-dot device-status-dot--unknown" role="img"></span>
<span style="flex:1">ceiling</span>
<code class="device-row-mac">AA:BB:CC:DD:EE:02</code>
<span class="muted-text" style="font-size:0.85em">led · espnow · —</span>
<button type="button" class="btn btn-secondary btn-small" tabindex="-1">Edit</button>
<button type="button" class="btn btn-secondary btn-small" tabindex="-1">Identify</button>
</div>
@@ -793,7 +788,7 @@
<li>ESP-NOW devices appear automatically after <strong>ANNOUNCE</strong>; you can also add rows manually.</li>
<li><strong>Identify</strong>: short red blink (~2 s) so you can spot hardware.</li>
<li><strong>Update groups</strong>: pushes group membership from device groups to ESP-NOW drivers.</li>
<li>Edit a device for transport, IP, and per-driver settings; use <strong>Groups</strong> for shared Wi‑Fi defaults.</li>
<li>Edit a device for transport, IP, per-driver settings and the groups it is in; use <strong>Groups</strong> for shared Wi‑Fi defaults.</li>
</ul>
</div>
@@ -838,7 +833,7 @@
<li>Assign drivers to a <strong>group</strong>, set Wi‑Fi defaults once per group, then attach groups to a zone.</li>
<li>Standalone presets use the zone’s device groups. Sequence lanes each target their own group.</li>
<li>New groups are <strong>shared</strong> across profiles by default; tick <strong>this profile only</strong> to hide a group elsewhere.</li>
<li>In the group editor, search and pick devices from the list to add members; <strong>Identify devices in group</strong> blinks them together.</li>
<li>In the group editor, search and pick devices from the list to add members; <strong>Identify</strong> on a device, in the group or in the list, blinks just that one and <strong>Identify devices in group</strong> blinks them all together.</li>
</ul>
</div>
@@ -1051,7 +1046,7 @@
</div>
</div>
<ul>
<li><strong>Audio</strong>: beat detection from the controller's microphone. While it is running, its beats time sequences and go to the drivers; while it is stopped, a clock at the simulated BPM does.</li>
<li><strong>Audio</strong> (Edit mode): beat detection from the controller's microphone. While it is running, its beats time sequences and go to the drivers; while it is stopped, a clock at the simulated BPM does.</li>
<li>BPM and beat indicators appear in the header and Audio modal while detection is running.</li>
<li>The level meter shows the microphone's live input. <a href="/audio">/audio</a> has a full readout, a tap for beat 1 and a live listen.</li>
<li><strong>Start</strong> / <strong>Stop</strong> detection; <strong>Reset detector</strong> clears stuck BPM tracking.</li>