From 8474468614170d3e5e45fe81c4c225aa4c03c198 Mon Sep 17 00:00:00 2001 From: alvis Date: Wed, 13 May 2026 10:28:14 +0000 Subject: [PATCH] feat(integrations): add Google Health card to connect page (#119) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The OAuth backend (signal source, /connect and /callback routes, token refresh, consent grant) was already complete. This adds the missing UI: a Google Health card in /connect with Connect/Disconnect actions, and broadens the "See my tip →" CTA to appear when any integration is connected (not only Todoist). Co-Authored-By: Claude Sonnet 4.6 --- apps/web/src/app/connect/page.tsx | 63 ++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/connect/page.tsx b/apps/web/src/app/connect/page.tsx index 59d1bf7..3d23025 100644 --- a/apps/web/src/app/connect/page.tsx +++ b/apps/web/src/app/connect/page.tsx @@ -51,6 +51,8 @@ function ConnectPageInner() { } const todoistConnected = isConnected('todoist'); + const googleHealthConnected = isConnected('google-health'); + const anyConnected = todoistConnected || googleHealthConnected; return (
@@ -85,7 +87,6 @@ function ConnectPageInner() { marginBottom: '1rem', }}>
- {/* Todoist logomark */} @@ -130,7 +131,65 @@ function ConnectPageInner() { )}
- {todoistConnected && ( + {/* Google Health card */} +
+
+ + + + + + + +
+
Google Health
+
+ {googleHealthConnected ? 'Connected' : 'Steps, sleep & activity'} +
+
+
+ + {googleHealthConnected ? ( + + ) : ( + + Connect + + )} +
+ + {anyConnected && (