feat: sequences can step on time; searchable group pickers

- Sequences: advance_mode "time" makes each step last its `seconds`
  (0.1–3600) instead of beats; editor gets a "Steps last" selector.
- UI: search box in the groups modal; searchable add pickers for zone
  groups and presets.
- Preset "try" sends only to the current zone's groups, never broadcast.
- led-driver: max_brightness ceiling from device config; follow a
  controller that restarted its beat counter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Opus 5.5 committed 2026-11-10 12:05:31 +13:00
1 parent 38162d4b89
commit d664026ee5
10 files changed
+229 -92

No files matched your search

+18 -1
View File
@@ -1769,8 +1769,25 @@ document.addEventListener('DOMContentLoaded', () => {
// Send current editor values to zone devices (if any); never persist on device.
const presetId = currentEditId || payload.name;
const deviceNames = await deviceNamesForPresetOnCurrentZone(presetId);
// Only the current zone's groups; never broadcast to every driver.
const section = document.querySelector('.presets-section[data-zone-id]');
let groupIds = [];
if (section && section.dataset.zoneId) {
try {
const zr = await fetch(`/zones/${section.dataset.zoneId}`, {
headers: { Accept: 'application/json' },
});
if (zr.ok) groupIds = zoneGroupIdsFromTabData(await zr.json());
} catch (_) {
groupIds = [];
}
}
if (!groupIds.length) {
alert('The current zone has no groups to try this preset on.');
return;
}
// Auto: load + immediate select. Manual: load only; first advance on the next audio beat.
await sendPresetViaEspNow(presetId, payload, deviceNames, false, false, '2');
await sendPresetViaEspNow(presetId, payload, deviceNames, false, false, '2', { groupIds });
});
}