feat(macos): add connections settings

# Conflicts:
#	apps/macos/Sources/Clawdis/SettingsRootView.swift
This commit is contained in:
Peter Steinberger
2025-12-20 23:41:37 +01:00
parent ce4b68d5fb
commit 43ba1671f1
6 changed files with 780 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ How to see whether the WhatsApp Web/Baileys bridge is healthy from the menu bar
## Settings
- General tab gains a Health card showing: linked auth age, session-store path/count, last check time, last error/status code, and buttons for Run Health Check / Reveal Logs.
- Uses a cached snapshot so the UI loads instantly and falls back gracefully when offline.
- **Connections tab** surfaces provider status + controls for WhatsApp/Telegram (login QR, logout, probe, last disconnect/error).
## How the probe works
- App runs `clawdis health --json` via `ShellExecutor` every ~60s and on demand. The probe loads creds, attempts a short Baileys connect, and reports status without sending messages.