feat: redesign Telegram Mini App in keenetichome style

- Sectioned card layout: СЕРВЕРЫ, ДЕЙСТВИЯ, УВЕДОМЛЕНИЯ, СИСТЕМА
- Expandable server cards with metrics detail + reboot/delete
- Mute/unmute alerts (2h, 8h) with API support
- Green/red pulsing status dots, colored badges
- Toast notifications, loading spinner
- Overview API endpoint for Mini App data
- Mute integration with alerter system

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Андрей Бобырев
2026-05-20 12:32:59 +03:00
parent 4846742c60
commit dbe2faf7dc
3 changed files with 551 additions and 184 deletions

View File

@@ -13,6 +13,11 @@ previous_states: Dict[str, bool] = {}
async def check_alerts():
"""Check metrics against thresholds and send alerts."""
from server.services.telegram_bot import send_alert
from server.api.auth_routes import mute_until
# Check mute
if mute_until and datetime.now() < mute_until:
return
settings = load_settings()
servers = load_servers()