mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
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:
1 parent
bf3830203f
commit
b53434daa0
8 files changed
+172
-40
No files matched your search
@@ -79488,10 +79488,16 @@ components:
|
||||
- google-health
|
||||
description: The integration that reads the same Fitbit and Pixel devices. Moving needs a fresh consent; the Fitbit
|
||||
grant cannot be carried over.
|
||||
offered:
|
||||
type: boolean
|
||||
description: "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."
|
||||
required:
|
||||
- endsOn
|
||||
- ended
|
||||
- successor
|
||||
- offered
|
||||
additionalProperties: false
|
||||
health:
|
||||
anyOf:
|
||||
|
||||
Reference in new issue
Block a user