fix(fitbit): show the retired card only to an account that had Fitbit

After the Web API turndown every account still saw a Fitbit card that
can no longer connect. The status entry now publishes
retirement.offered: false once the API is gone for an account with no
Fitbit connection, no Fitbit app of its own and no Fitbit data, and the
connections panel leaves the card out. Accounts that had Fitbit keep it
with the retirement notice.
This commit is contained in:
Marc-André Bombeck committed 2026-10-21 15:06:40 +02:00
1 parent bf3830203f
commit b53434daa0
8 files changed
+172 -40

No files matched your search

+5
View File
@@ -1167,6 +1167,11 @@ const integrationEnvelopeEntry = z
.describe(
"The integration that reads the same Fitbit and Pixel devices. Moving needs a fresh consent; the Fitbit grant cannot be carried over.",
),
offered: z
.boolean()
.describe(
"Whether the Fitbit card is shown. False once `ended` for an account that never connected Fitbit, has no Fitbit app of its own and holds no Fitbit data: there is nothing to explain the move for. True before the turndown and for every account that had Fitbit.",
),
})
.optional()
.describe("Fitbit only. The end of the legacy Fitbit Web API."),