feat(dashboard): replace home with approved minimal design
CI / ruff · pytest (pull_request) Successful in 2m1s

Refs #73
This commit is contained in:
Pavel Eliseev
2026-10-04 14:54:14 +03:00
parent a2b1b2e7a5
commit c01bfc90df
8 changed files with 337 additions and 131 deletions
+2 -2
View File
@@ -106,12 +106,12 @@ def adherence_view(adherence: float | None) -> View:
def status_view(color: str, top_level: str | None = None) -> View:
if color == "red":
return View("Кризис", "red", "острый сигнал — связаться сегодня")
return View("Срочно", "red", "Кризисное уведомление")
if color == "yellow":
return View("Внимание", "yellow", "врачу ≤ 24 ч или к визиту")
if color == "grey":
return View("Нет ответа", "grey", "молчание / только инфо-флаги")
return View("Стабильно", "green", "открытых сигналов нет")
return View("Без уведомлений", "green", "открытых сигналов нет")
def level_tone(level: str) -> str: