feat(ui): refresh preset data flow and bump driver pointer

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-06 20:28:56 +12:00
parent 7ccab6fbc4
commit 78a4ce009c
10 changed files with 58 additions and 17 deletions

View File

@@ -367,6 +367,7 @@ async def create_driver_pattern(request):
Body JSON:
name, code (required),
min_delay, max_delay, max_colors (optional numbers),
has_background (optional bool),
n1..n8 (optional string labels),
overwrite (optional, default true).
"""
@@ -409,6 +410,9 @@ async def create_driver_pattern(request):
"Content-Type": "application/json"
}
if "has_background" in data:
meta["has_background"] = bool(data.get("has_background"))
for i in range(1, 9):
nk = "n%d" % i
if nk not in data: