feat: enhance color handling in templates and dashboard with hex support

This commit is contained in:
2026-05-10 12:55:39 +02:00
parent 8f8c3655db
commit 565c4078bb
5 changed files with 39 additions and 8 deletions
+2
View File
@@ -72,6 +72,8 @@ def test_admin_get_renders_template_form(monkeypatch):
assert "Admin: templates" in body
assert "name='420__text'" in body
assert "name='420__color'" in body
assert "name='420__color_picker'" in body
assert "type='color'" in body
assert "name='420__image_url'" in body
+3
View File
@@ -20,6 +20,9 @@ def test_save_and_load_templates_roundtrip(tmp_path):
}
save_templates(path, data)
raw = path.read_text(encoding="utf-8")
assert '"color": "#00007B"' in raw
loaded = load_templates(path)
assert loaded["420"]["text"] == "Custom"
assert loaded["420"]["color"] == 123