From 9dbf0bcbc9a736a268d6de0da5c40bdb187c1310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=27=C3=A9lectron=20rare?= <108685187+electron-rare@users.noreply.github.com> Date: Tue, 30 Jun 2026 14:08:23 +0200 Subject: [PATCH] feat(control): extended global action choices --- web_realart/public/control/js/matrix-state.js | 3 +++ web_realart/test/matrix-state.test.mjs | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/web_realart/public/control/js/matrix-state.js b/web_realart/public/control/js/matrix-state.js index 9cbe2b9..e666e74 100644 --- a/web_realart/public/control/js/matrix-state.js +++ b/web_realart/public/control/js/matrix-state.js @@ -66,6 +66,9 @@ export const GLOBAL_ACTION_CHOICES = [ { id: "none", label: "—" }, { id: "fill", label: "Fill" }, { id: "drop", label: "Drop" }, { id: "breakdown", label: "Breakdown" }, { id: "evolve", label: "Relance + evolve" }, + { id: "muteDrums", label: "Mute drums" }, { id: "muteMelo", label: "Mute mélo" }, + { id: "doubleTime", label: "Double-time" }, { id: "halfTime", label: "Half-time" }, + { id: "washReverb", label: "Wash reverb" }, { id: "next", label: "Suivant" }, ]; export const GLOBAL_SLOTS = [ { key: 0, label: "Main G ouverte" }, { key: 1, label: "Main G fermée" }, diff --git a/web_realart/test/matrix-state.test.mjs b/web_realart/test/matrix-state.test.mjs index c69b460..c5003bc 100644 --- a/web_realart/test/matrix-state.test.mjs +++ b/web_realart/test/matrix-state.test.mjs @@ -140,3 +140,9 @@ test("parseGlobalSettings decodes the OSC arg layout", () => { assert.equal(s.transientBars, 3); assert.deepEqual(s.breakdownKeep, ["kick", "snare"]); }); + +test("extended action choices include phase-2 actions", () => { + const ids = GLOBAL_ACTION_CHOICES.map((c) => c.id); + for (const id of ["muteDrums", "muteMelo", "doubleTime", "halfTime", "washReverb", "next"]) + assert.ok(ids.includes(id), `missing action ${id}`); +});