fix(workouts): read the stored route sample shape for splits and the GPX export

Both ingests store each route point's sample as { t, speedMs?, hr? }, while
computeSplits parsed every sample as a bare instant and the GPX export
skipped anything that was not a string. Splits were therefore null for
every ingested track, and an exported track carried no times. One reader,
routeSampleInstant, takes either shape. The workout detail walk is
re-pinned: its ingested run now answers its first kilometre split.
This commit is contained in:
Marc-André Bombeck committed 2026-10-23 16:37:58 +02:00
1 parent 06d55afc46
commit 976b2ba0bc
9 files changed
+70 -9

No files matched your search

@@ -145,7 +145,13 @@
}
]
},
"splits": null,
"splits": [
{
"km": 1,
"durationSec": 530,
"paceSecPerKm": 530
}
],
"sportContext": {
"count": 1,
"avgDurationSec": 1800,
@@ -115,7 +115,13 @@
}
]
},
"splits": null,
"splits": [
{
"km": 1,
"durationSec": 530,
"paceSecPerKm": 530
}
],
"sportContext": {
"count": 1,
"avgDurationSec": 1800,