Skip to content

feat(igpsport): sync athlete weight from intervals.icu#47

Merged
jorge-huxley merged 2 commits into
masterfrom
feat/igpsport-weight-sync
Jul 17, 2026
Merged

feat(igpsport): sync athlete weight from intervals.icu#47
jorge-huxley merged 2 commits into
masterfrom
feat/igpsport-weight-sync

Conversation

@jorge-huxley

@jorge-huxley jorge-huxley commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Sync athlete weight (rounded whole kg) from intervals.icu into the iGPSPORT profile alongside FTP/zones, via CLI sync-zones, Settings, and the launch prompt
  • Write weight through User/UpdatePersonalUserInfo with the app’s 6-field personal payload (areaId/gender) so location (cityId) is preserved
  • Skip the weight POST when whole-kg weight is already in sync

Test plan

  • uv run pytest tests/test_profile_sync.py tests/test_intervals_icu.py
  • uv run intervalssync sync-zones --env-file .env --json with weight differing by ≥1 kg
  • Confirm iGPSPORT app shows updated weight and Country/City still set
  • Re-run sync-zones with weight unchanged and confirm no unnecessary weight write / location intact

jorge-huxley and others added 2 commits July 17, 2026 22:09
Push rounded whole-kg weight via User/UpdateUserInfo (zones stay on
UpdatePersonalIntervalInfo). Skip weight POSTs when unchanged to avoid
clearing profile location on every sync until a proper location-restore
API is known.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use the app profile editor endpoint and 6-field personal payload (areaId/gender) so weight sync no longer clears cityId.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 17, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@jorge-huxley
jorge-huxley merged commit 8e6fdac into master Jul 17, 2026
1 check passed
@jorge-huxley
jorge-huxley deleted the feat/igpsport-weight-sync branch July 17, 2026 22:06
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.

1 participant