Admin: add Garmin sync status panel

New /api/admin/garmin-sync (GET) and /api/admin/garmin-sync/run (POST)
endpoints mirror the Strava equivalents, reading _garmin_sync_status.json
per user and exposing a run-now button. Admin page shows the Garmin table
below the Strava one, with auth_error/api_error/ok badges and live polling
while a sync is running.
This commit is contained in:
Davide Scaini
2026-05-16 20:31:02 +02:00
parent 2c69e75842
commit 2d9620c6d1
3 changed files with 176 additions and 0 deletions
+2
View File
@@ -43,6 +43,8 @@ sync_secret: str = ""
_db = None
_strava_sync_running = False
_strava_sync_lock = threading.Lock()
_garmin_sync_running = False
_garmin_sync_lock = threading.Lock()
# ── Constants ─────────────────────────────────────────────────────────────────