Skip to content

Sync Google Health before saving a weight entry, not after#4

Merged
isAdamBailey merged 1 commit into
mainfrom
claude/weight-google-sync-flow-p2bx6b
Jul 10, 2026
Merged

Sync Google Health before saving a weight entry, not after#4
isAdamBailey merged 1 commit into
mainfrom
claude/weight-google-sync-flow-p2bx6b

Conversation

@isAdamBailey

Copy link
Copy Markdown
Owner

Previously the weight entry was saved first and Google sync (which
pulls active energy data) ran afterward, so an expired/revoked Google
connection was only discovered after the entry had already been
committed. Now WeightEntryForm syncs first and blocks logging with a
reconnect prompt if Google needs reauthentication, and the "Saving…"
spinner stays active for the whole sync+save sequence instead of just
the save.

Previously the weight entry was saved first and Google sync (which
pulls active energy data) ran afterward, so an expired/revoked Google
connection was only discovered after the entry had already been
committed. Now WeightEntryForm syncs first and blocks logging with a
reconnect prompt if Google needs reauthentication, and the "Saving…"
spinner stays active for the whole sync+save sequence instead of just
the save.
@isAdamBailey
isAdamBailey merged commit 5e1b27f into main Jul 10, 2026
1 check passed
@isAdamBailey
isAdamBailey deleted the claude/weight-google-sync-flow-p2bx6b branch July 10, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants