feat: TUI als Browser-App via textual serve

TUI von direkten Service-Importen auf httpx API-Calls umgestellt.
Neue tui/api_client.py als schlanker async HTTP-Client. Background-
Worker pollt API alle 5s für Echtzeit-Updates. Neuer tui_standalone.py
Entry-Point für 'textual serve --port 8001 tui_standalone.py'.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 20:45:55 +01:00
parent 7a8c8149c9
commit 6742242fe0
7 changed files with 254 additions and 94 deletions

View File

@@ -26,6 +26,9 @@ class Settings(BaseSettings):
# Datenbank
database_url: str = "sqlite:///./mcm.db"
# TUI Web-Modus
web_port: int = 8001
@property
def telegram_enabled(self) -> bool:
return bool(self.telegram_token)