Skip to content

Update TrainerRoad calendar sync for new API#120

Open
Litwilly wants to merge 2 commits into
freekode:mainfrom
Litwilly:main
Open

Update TrainerRoad calendar sync for new API#120
Litwilly wants to merge 2 commits into
freekode:mainfrom
Litwilly:main

Conversation

@Litwilly

Copy link
Copy Markdown

Summary

  • Switch TrainerRoad calendar sync to the new react-calendar timeline/activity endpoints
  • Use member ID instead of username for calendar requests
  • Parse camel-case TrainerRoad workout payloads, including startTarget power arrays
  • Preserve planned workouts with no interval data as unstructured workouts instead of failing sync
  • Add a dedicated member ID cache to avoid cache value type mismatches

Verification

  • Confirmed TrainerRoad to TrainingPeaks sync imports workouts with non-zero power targets
  • Confirmed sync no longer fails on planned workouts with no interval steps
  • Ran compileKotlin compileTestKotlin
  • Built updated Windows installer

Litwilly added 2 commits May 23, 2026 13:31
- Use TrainerRoad react-calendar timeline/activity endpoints with member ID
- Parse camel-case workout details and startTarget power arrays
- Preserve unstructured planned workouts instead of failing sync
- Add separate member ID cache to avoid type mismatch errors
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