diff --git a/crypto_spot_bot/dashboard.py b/crypto_spot_bot/dashboard.py index 64e7f5b..a25bd60 100644 --- a/crypto_spot_bot/dashboard.py +++ b/crypto_spot_bot/dashboard.py @@ -399,166 +399,449 @@ HTML = r""" - TradeBot Control + TradeBot - русская панель @@ -566,534 +849,1015 @@ HTML = r"""
-

TradeBot

-
Загрузка
+

TradeBot: торговая панель

+
Загружаю состояние бота, рынки и прогнозы Torch...
- health - - - + Проверка + + +
+
diff --git a/tests/test_dashboard.py b/tests/test_dashboard.py index 22891c1..1473add 100644 --- a/tests/test_dashboard.py +++ b/tests/test_dashboard.py @@ -4,6 +4,7 @@ import json from crypto_spot_bot.dashboard import _apply_fast_trading from crypto_spot_bot.dashboard import _safe_config +from crypto_spot_bot.dashboard import HTML from crypto_spot_bot.storage import Storage @@ -55,3 +56,11 @@ def test_safe_config_summarizes_torch_forecast_artifact(make_settings, tmp_path) "target_horizon": 0, "direct_horizon": False, } + + +def test_dashboard_html_is_russian_torch_workspace() -> None: + assert "Рынки и Torch" in HTML + assert "Что видит нейросеть перед прогнозом" in HTML + assert "Свечи" in HTML + assert "class=\"pill" not in HTML + assert ".pill" not in HTML