fix(google-health): surface the connection status and add the resume and test routes

Wire the settings card to the live connection so it reflects reality
after a connect.

- Emit a google-health entry on the consolidated integration-status
  envelope (configured, connected, last sync, backfill, and the
  needs-reconnect flag). Without it the card read an undefined status and
  showed a permanently disconnected connection even after a successful
  OAuth grant, hiding the sync, disconnect, and reconnect controls.
- Add the resume and test-connection routes the card calls, mirroring the
  classic Fitbit ones.
- Use the shared refresh icon on the reconnect action.
- Drop the experimental-scope opt-in from the runbook and describe ECG
  and irregular-rhythm as a planned addition rather than a current toggle.
This commit is contained in:
Marc-André Bombeck committed 2026-07-03 14:41:53 +02:00
1 parent 422a6a7df0
commit 0d3067837e
6 files changed
+241 -14

No files matched your search

@@ -17,15 +17,7 @@
import { useState } from "react";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import {
Link2,
Loader2,
RefreshCw,
RotateCw,
Save,
Unlink,
Watch,
} from "lucide-react";
import { Link2, Loader2, RefreshCw, Save, Unlink, Watch } from "lucide-react";
import {
AlertDialog,
@@ -263,7 +255,7 @@ export function GoogleHealthCard({
data-testid="google-health-reconnect-button"
className="min-h-11"
>
<RotateCw className="h-3.5 w-3.5" />
<RefreshCw className="h-3.5 w-3.5" />
{t("settings.googleHealthReconnect")}
</Button>
</div>