refactor(color-strip): rename static -> single + frontend follow-through

The "static" source kind always rendered a SINGLE color and the name
confused new code paths. Rename the module + kind to "single". Storage
keeps backward-compatible serialisation. Frontend color-strip cards /
gradient / index / test modules and the affected tests follow the new
name.
This commit is contained in:
2026-05-23 00:49:00 +03:00
parent 737fd72b73
commit 826e680f37
10 changed files with 74 additions and 67 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ def store(tmp_db):
def _create_static(store: ColorStripStore, name: str) -> str:
"""Create a static color strip source, return its ID."""
source = store.create_source(name=name, source_type="static", colors=[[255, 0, 0]])
"""Create a single-color strip source, return its ID."""
source = store.create_source(name=name, source_type="single_color", colors=[[255, 0, 0]])
return source.id