feat(ui): pattern modes, bundles, and zone content kind
Add profile/preset/sequence JSON import and export; map preset mode to wire n6 with a mode dropdown for multi-mode patterns; zone edit shows presets or sequences only with content_kind on save; update catalogue and tests for merged pattern names. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -29,6 +29,21 @@ def test_pack_parse_v2_brightness_only():
|
||||
assert data == {"v": "1", "b": 128}
|
||||
|
||||
|
||||
def test_pack_parse_v2_mode_maps_to_n6():
|
||||
raw = pack_binary_envelope_v2(
|
||||
presets={
|
||||
"m": {
|
||||
"p": "meteor",
|
||||
"c": ["#aabbcc"],
|
||||
"mode": 2,
|
||||
"n6": 0,
|
||||
}
|
||||
},
|
||||
)
|
||||
data = parse_binary_envelope_v2(raw)
|
||||
assert data["presets"]["m"]["n6"] == 2
|
||||
|
||||
|
||||
def test_pack_parse_v2_full():
|
||||
raw = pack_binary_envelope_v2(
|
||||
presets={
|
||||
|
||||
Reference in New Issue
Block a user