mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 15:42:24 +00:00
feat(fitbit): add the Google Health settings card with connection test and resume
Give the Google Health (Fitbit & Pixel) integration the same settings-card
parity WHOOP and Withings already have. It is a BYO-key provider — the user
pastes their own Google OAuth client id/secret, then connects — so the card
mirrors the WHOOP flow rather than the server-brokered Withings one.
- New POST /api/integrations/fitbit/test does a live, rate-limited
(5/60s per user) probe against the Google Health profile endpoint via
the refreshed token from getValidToken, returning { ok, latencyMs,
lastSyncedAt } and the same error-code union WHOOP uses. The Bearer
token and upstream host are scrubbed before any annotation.
- New POST /api/integrations/fitbit/resume clears a parked integration
via resumeIntegrationFromPark, rate-limited to match the test route.
- FitbitCard renders the credentials form, OAuth connect, sync now /
sync all data / test connection / disconnect action row, the parked
resume banner, and a backfill-in-progress line. Status reads from the
existing /api/fitbit/status; the pill/error/parked state comes off the
cross-integration envelope, which now carries a fitbit entry.
- Card strings added under settings.fitbit* across all six locales.
This commit is contained in:
1 parent
14469a6de9
commit
f44dccb828
12 files changed
+1078
-40
No files matched your search
@@ -3505,6 +3505,31 @@
|
||||
"whoopConnect": "Mit WHOOP verbinden",
|
||||
"whoopNoCredentials": "Bitte gib oben deine API-Zugangsdaten ein, um WHOOP zu verbinden.",
|
||||
"whoopBackfillInProgress": "Dein WHOOP-Verlauf wird im Hintergrund importiert…",
|
||||
"fitbit": "Google Health",
|
||||
"fitbitTag": "Fitbit & Pixel",
|
||||
"fitbitDescription": "Verbinde Google Health, um deine Fitbit- und Pixel-Watch-Werte zu synchronisieren — Gewicht, Körperfett, Ruhepuls, Sauerstoffsättigung, Herzfrequenzvariabilität und mehr.",
|
||||
"fitbitOverlapNote": "Wenn Google Health und eine andere Quelle denselben Vitalwert liefern — Ruhepuls, Sauerstoffsättigung, Körpertemperatur oder Atemfrequenz —, siehst du möglicherweise beide Werte, bis sich ein künftiges Update auf eine bevorzugte Quelle festlegt.",
|
||||
"fitbitCredentials": "API-Zugangsdaten",
|
||||
"fitbitCredentialsHelp": "Registriere deinen eigenen Google-Cloud-OAuth-Client für die Google-Health-API und füge hier dessen Client-ID und Client-Secret ein.",
|
||||
"fitbitClientId": "Client-ID",
|
||||
"fitbitClientSecret": "Client-Secret",
|
||||
"fitbitCredentialsSaved": "Zugangsdaten gespeichert",
|
||||
"fitbitCredentialsSavedPlaceholder": "Gespeichert — neu eingeben zum Ersetzen",
|
||||
"fitbitCredentialsSavedPlaceholderSecret": "Gespeichert — neu eingeben zum Ersetzen",
|
||||
"fitbitSaveCredentials": "Zugangsdaten speichern",
|
||||
"fitbitSync": "Jetzt synchronisieren",
|
||||
"fitbitFullSync": "Alle Daten synchronisieren",
|
||||
"fitbitFullSyncTitle": "Vollständige Synchronisierung?",
|
||||
"fitbitFullSyncDescription": "Der gesamte verfügbare Google-Health-Verlauf wird vollständig synchronisiert. Das kann je nach Umfang deines Verlaufs einige Zeit dauern.",
|
||||
"fitbitSyncResult": "{count} Messungen synchronisiert",
|
||||
"fitbitSyncFailed": "Synchronisierung fehlgeschlagen",
|
||||
"fitbitSynchronize": "Synchronisieren",
|
||||
"fitbitDisconnect": "Trennen",
|
||||
"fitbitDisconnectTitle": "Google Health trennen?",
|
||||
"fitbitDisconnectDescription": "Die Verbindung zu Google Health wird getrennt. Zuvor synchronisierte Daten bleiben erhalten.",
|
||||
"fitbitConnect": "Mit Google Health verbinden",
|
||||
"fitbitNoCredentials": "Bitte gib oben deine API-Zugangsdaten ein, um Google Health zu verbinden.",
|
||||
"fitbitBackfillInProgress": "Dein Google-Health-Verlauf wird im Hintergrund importiert…",
|
||||
"integrations": {
|
||||
"withings": {
|
||||
"reconnect": {
|
||||
|
||||
@@ -3505,6 +3505,31 @@
|
||||
"whoopConnect": "Connect with WHOOP",
|
||||
"whoopNoCredentials": "Please enter your API credentials above to connect WHOOP.",
|
||||
"whoopBackfillInProgress": "Importing your WHOOP history in the background…",
|
||||
"fitbit": "Google Health",
|
||||
"fitbitTag": "Fitbit & Pixel",
|
||||
"fitbitDescription": "Connect Google Health to sync your Fitbit and Pixel Watch metrics — weight, body fat, resting heart rate, blood oxygen, heart-rate variability and more.",
|
||||
"fitbitOverlapNote": "If Google Health and another source both supply a vital — resting heart rate, blood oxygen, body temperature or respiratory rate — you may see both values until a future update settles on a single preferred source.",
|
||||
"fitbitCredentials": "API Credentials",
|
||||
"fitbitCredentialsHelp": "Register your own Google Cloud OAuth client for the Google Health API and paste its Client ID and Client Secret here.",
|
||||
"fitbitClientId": "Client ID",
|
||||
"fitbitClientSecret": "Client Secret",
|
||||
"fitbitCredentialsSaved": "Credentials saved",
|
||||
"fitbitCredentialsSavedPlaceholder": "Saved — enter new to replace",
|
||||
"fitbitCredentialsSavedPlaceholderSecret": "Saved — enter new to replace",
|
||||
"fitbitSaveCredentials": "Save credentials",
|
||||
"fitbitSync": "Sync now",
|
||||
"fitbitFullSync": "Sync all data",
|
||||
"fitbitFullSyncTitle": "Full synchronization?",
|
||||
"fitbitFullSyncDescription": "All available Google Health history will be fully synchronized. This may take some time depending on your history.",
|
||||
"fitbitSyncResult": "{count} measurements synchronized",
|
||||
"fitbitSyncFailed": "Sync failed",
|
||||
"fitbitSynchronize": "Synchronize",
|
||||
"fitbitDisconnect": "Disconnect",
|
||||
"fitbitDisconnectTitle": "Disconnect Google Health?",
|
||||
"fitbitDisconnectDescription": "The connection to Google Health will be disconnected. Previously synced data will be preserved.",
|
||||
"fitbitConnect": "Connect with Google Health",
|
||||
"fitbitNoCredentials": "Please enter your API credentials above to connect Google Health.",
|
||||
"fitbitBackfillInProgress": "Importing your Google Health history in the background…",
|
||||
"integrations": {
|
||||
"withings": {
|
||||
"reconnect": {
|
||||
|
||||
@@ -3505,6 +3505,31 @@
|
||||
"whoopConnect": "Conectar con WHOOP",
|
||||
"whoopNoCredentials": "Introduce tus credenciales de API arriba para conectar WHOOP.",
|
||||
"whoopBackfillInProgress": "Importando tu historial de WHOOP en segundo plano…",
|
||||
"fitbit": "Google Health",
|
||||
"fitbitTag": "Fitbit y Pixel",
|
||||
"fitbitDescription": "Conecta Google Health para sincronizar tus métricas de Fitbit y Pixel Watch: peso, grasa corporal, frecuencia cardíaca en reposo, saturación de oxígeno, variabilidad de la frecuencia cardíaca y más.",
|
||||
"fitbitOverlapNote": "Si Google Health y otra fuente proporcionan la misma constante vital —frecuencia cardíaca en reposo, saturación de oxígeno, temperatura corporal o frecuencia respiratoria—, es posible que veas ambos valores hasta que una actualización futura defina una única fuente preferida.",
|
||||
"fitbitCredentials": "Credenciales de API",
|
||||
"fitbitCredentialsHelp": "Registra tu propio cliente OAuth de Google Cloud para la API de Google Health y pega aquí su Client ID y Client Secret.",
|
||||
"fitbitClientId": "Client ID",
|
||||
"fitbitClientSecret": "Client Secret",
|
||||
"fitbitCredentialsSaved": "Credenciales guardadas",
|
||||
"fitbitCredentialsSavedPlaceholder": "Guardado: introduce nuevas para reemplazar",
|
||||
"fitbitCredentialsSavedPlaceholderSecret": "Guardado: introduce nuevas para reemplazar",
|
||||
"fitbitSaveCredentials": "Guardar credenciales",
|
||||
"fitbitSync": "Sincronizar ahora",
|
||||
"fitbitFullSync": "Sincronizar todos los datos",
|
||||
"fitbitFullSyncTitle": "¿Sincronización completa?",
|
||||
"fitbitFullSyncDescription": "Se sincronizará por completo todo el historial disponible de Google Health. Esto puede tardar un tiempo según tu historial.",
|
||||
"fitbitSyncResult": "{count} mediciones sincronizadas",
|
||||
"fitbitSyncFailed": "Error de sincronización",
|
||||
"fitbitSynchronize": "Sincronizar",
|
||||
"fitbitDisconnect": "Desconectar",
|
||||
"fitbitDisconnectTitle": "¿Desconectar Google Health?",
|
||||
"fitbitDisconnectDescription": "Se desconectará la conexión con Google Health. Los datos sincronizados previamente se conservarán.",
|
||||
"fitbitConnect": "Conectar con Google Health",
|
||||
"fitbitNoCredentials": "Introduce tus credenciales de API arriba para conectar Google Health.",
|
||||
"fitbitBackfillInProgress": "Importando tu historial de Google Health en segundo plano…",
|
||||
"integrations": {
|
||||
"withings": {
|
||||
"reconnect": {
|
||||
|
||||
@@ -3505,6 +3505,31 @@
|
||||
"whoopConnect": "Se connecter avec WHOOP",
|
||||
"whoopNoCredentials": "Veuillez saisir vos identifiants API ci-dessus pour connecter WHOOP.",
|
||||
"whoopBackfillInProgress": "Importation de votre historique WHOOP en arrière-plan…",
|
||||
"fitbit": "Google Health",
|
||||
"fitbitTag": "Fitbit et Pixel",
|
||||
"fitbitDescription": "Connectez Google Health pour synchroniser vos données Fitbit et Pixel Watch : poids, masse grasse, fréquence cardiaque au repos, saturation en oxygène, variabilité de la fréquence cardiaque et plus encore.",
|
||||
"fitbitOverlapNote": "Si Google Health et une autre source fournissent la même constante vitale — fréquence cardiaque au repos, saturation en oxygène, température corporelle ou fréquence respiratoire —, vous pourriez voir les deux valeurs jusqu'à ce qu'une future mise à jour retienne une seule source préférée.",
|
||||
"fitbitCredentials": "Identifiants d'API",
|
||||
"fitbitCredentialsHelp": "Enregistrez votre propre client OAuth Google Cloud pour l'API Google Health et collez ici son Client ID et son Client Secret.",
|
||||
"fitbitClientId": "Client ID",
|
||||
"fitbitClientSecret": "Client Secret",
|
||||
"fitbitCredentialsSaved": "Identifiants enregistrés",
|
||||
"fitbitCredentialsSavedPlaceholder": "Enregistré — saisissez-en de nouveaux pour remplacer",
|
||||
"fitbitCredentialsSavedPlaceholderSecret": "Enregistré — saisissez-en de nouveaux pour remplacer",
|
||||
"fitbitSaveCredentials": "Enregistrer les identifiants",
|
||||
"fitbitSync": "Synchroniser maintenant",
|
||||
"fitbitFullSync": "Tout synchroniser",
|
||||
"fitbitFullSyncTitle": "Synchronisation complète ?",
|
||||
"fitbitFullSyncDescription": "Tout l'historique Google Health disponible sera entièrement synchronisé. Cela peut prendre un certain temps selon votre historique.",
|
||||
"fitbitSyncResult": "{count} mesures synchronisées",
|
||||
"fitbitSyncFailed": "Échec de la synchronisation",
|
||||
"fitbitSynchronize": "Synchroniser",
|
||||
"fitbitDisconnect": "Déconnecter",
|
||||
"fitbitDisconnectTitle": "Déconnecter Google Health ?",
|
||||
"fitbitDisconnectDescription": "La connexion à Google Health sera déconnectée. Les données déjà synchronisées seront conservées.",
|
||||
"fitbitConnect": "Se connecter à Google Health",
|
||||
"fitbitNoCredentials": "Veuillez saisir vos identifiants d'API ci-dessus pour connecter Google Health.",
|
||||
"fitbitBackfillInProgress": "Importation de votre historique Google Health en arrière-plan…",
|
||||
"integrations": {
|
||||
"withings": {
|
||||
"reconnect": {
|
||||
|
||||
@@ -3505,6 +3505,31 @@
|
||||
"whoopConnect": "Connetti con WHOOP",
|
||||
"whoopNoCredentials": "Inserisci le tue credenziali API qui sopra per connettere WHOOP.",
|
||||
"whoopBackfillInProgress": "Importazione dello storico WHOOP in background…",
|
||||
"fitbit": "Google Health",
|
||||
"fitbitTag": "Fitbit e Pixel",
|
||||
"fitbitDescription": "Collega Google Health per sincronizzare i dati di Fitbit e Pixel Watch: peso, massa grassa, frequenza cardiaca a riposo, saturazione di ossigeno, variabilità della frequenza cardiaca e altro.",
|
||||
"fitbitOverlapNote": "Se Google Health e un'altra fonte forniscono lo stesso parametro vitale — frequenza cardiaca a riposo, saturazione di ossigeno, temperatura corporea o frequenza respiratoria —, potresti vedere entrambi i valori finché un futuro aggiornamento non sceglierà un'unica fonte preferita.",
|
||||
"fitbitCredentials": "Credenziali API",
|
||||
"fitbitCredentialsHelp": "Registra il tuo client OAuth di Google Cloud per l'API Google Health e incolla qui il suo Client ID e Client Secret.",
|
||||
"fitbitClientId": "Client ID",
|
||||
"fitbitClientSecret": "Client Secret",
|
||||
"fitbitCredentialsSaved": "Credenziali salvate",
|
||||
"fitbitCredentialsSavedPlaceholder": "Salvato — inserisci nuove per sostituire",
|
||||
"fitbitCredentialsSavedPlaceholderSecret": "Salvato — inserisci nuove per sostituire",
|
||||
"fitbitSaveCredentials": "Salva credenziali",
|
||||
"fitbitSync": "Sincronizza ora",
|
||||
"fitbitFullSync": "Sincronizza tutti i dati",
|
||||
"fitbitFullSyncTitle": "Sincronizzazione completa?",
|
||||
"fitbitFullSyncDescription": "Tutto lo storico disponibile di Google Health verrà sincronizzato completamente. L'operazione può richiedere del tempo a seconda del tuo storico.",
|
||||
"fitbitSyncResult": "{count} misurazioni sincronizzate",
|
||||
"fitbitSyncFailed": "Sincronizzazione non riuscita",
|
||||
"fitbitSynchronize": "Sincronizza",
|
||||
"fitbitDisconnect": "Disconnetti",
|
||||
"fitbitDisconnectTitle": "Disconnettere Google Health?",
|
||||
"fitbitDisconnectDescription": "La connessione a Google Health verrà disconnessa. I dati già sincronizzati saranno conservati.",
|
||||
"fitbitConnect": "Connetti con Google Health",
|
||||
"fitbitNoCredentials": "Inserisci le tue credenziali API qui sopra per connettere Google Health.",
|
||||
"fitbitBackfillInProgress": "Importazione dello storico Google Health in background…",
|
||||
"integrations": {
|
||||
"withings": {
|
||||
"reconnect": {
|
||||
|
||||
@@ -3505,6 +3505,31 @@
|
||||
"whoopConnect": "Połącz z WHOOP",
|
||||
"whoopNoCredentials": "Wprowadź powyżej swoje dane API, aby połączyć WHOOP.",
|
||||
"whoopBackfillInProgress": "Importowanie historii WHOOP w tle…",
|
||||
"fitbit": "Google Health",
|
||||
"fitbitTag": "Fitbit i Pixel",
|
||||
"fitbitDescription": "Połącz Google Health, aby synchronizować dane z Fitbita i Pixel Watch — wagę, tkankę tłuszczową, tętno spoczynkowe, saturację, zmienność rytmu serca i więcej.",
|
||||
"fitbitOverlapNote": "Jeśli Google Health i inne źródło dostarczają ten sam parametr życiowy — tętno spoczynkowe, saturację, temperaturę ciała lub częstość oddechów — możesz widzieć obie wartości, dopóki przyszła aktualizacja nie wybierze jednego preferowanego źródła.",
|
||||
"fitbitCredentials": "Dane uwierzytelniające API",
|
||||
"fitbitCredentialsHelp": "Zarejestruj własny klient OAuth Google Cloud dla interfejsu Google Health API i wklej tutaj jego Client ID oraz Client Secret.",
|
||||
"fitbitClientId": "Client ID",
|
||||
"fitbitClientSecret": "Client Secret",
|
||||
"fitbitCredentialsSaved": "Dane uwierzytelniające zapisane",
|
||||
"fitbitCredentialsSavedPlaceholder": "Zapisano — wpisz nowe, aby zastąpić",
|
||||
"fitbitCredentialsSavedPlaceholderSecret": "Zapisano — wpisz nowe, aby zastąpić",
|
||||
"fitbitSaveCredentials": "Zapisz dane uwierzytelniające",
|
||||
"fitbitSync": "Synchronizuj teraz",
|
||||
"fitbitFullSync": "Synchronizuj wszystkie dane",
|
||||
"fitbitFullSyncTitle": "Pełna synchronizacja?",
|
||||
"fitbitFullSyncDescription": "Cała dostępna historia Google Health zostanie w pełni zsynchronizowana. W zależności od historii może to chwilę potrwać.",
|
||||
"fitbitSyncResult": "Zsynchronizowano {count} pomiarów",
|
||||
"fitbitSyncFailed": "Synchronizacja nie powiodła się",
|
||||
"fitbitSynchronize": "Synchronizuj",
|
||||
"fitbitDisconnect": "Rozłącz",
|
||||
"fitbitDisconnectTitle": "Rozłączyć Google Health?",
|
||||
"fitbitDisconnectDescription": "Połączenie z Google Health zostanie rozłączone. Wcześniej zsynchronizowane dane zostaną zachowane.",
|
||||
"fitbitConnect": "Połącz z Google Health",
|
||||
"fitbitNoCredentials": "Wprowadź powyżej swoje dane uwierzytelniające API, aby połączyć Google Health.",
|
||||
"fitbitBackfillInProgress": "Importowanie historii Google Health w tle…",
|
||||
"integrations": {
|
||||
"withings": {
|
||||
"reconnect": {
|
||||
|
||||
Reference in new issue
Block a user