trails/packages
Ullrich Schäfer 0325d01bca
activity-stats: shared StatRow + canonical metrics across surfaces
Implements the activity-stats change (specs/activity-stats):

- gpx: `movingTime(tracks)` — moving seconds from trackpoint timestamps,
  excluding stationary spans + long gaps; null when no timestamps.
- stats.ts: pure formatters (distance/elevation/duration/speed/pace),
  sport-aware `deriveRate` (pace for foot sports, speed otherwise, speed
  default), and `activityStatItems` encoding the canonical order
  (distance · time · [moving] · pace/speed · ascent · descent; compact subset).
- StatRow: one shared presentational component (size sm/lg), adopted on the
  activity detail (full set; loader derives moving time), route detail
  (distance/ascent/descent), feed card + profile list (compact).
- i18n: journal.stats.* in en + de.

Tests: movingTime (stationary/gap exclusion, moving ≤ elapsed), deriveRate,
formatters, activityStatItems ordering + compact, StatRow render (jsdom).
typecheck + lint + unit (gpx 63, journal 311) green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 14:48:36 +02:00
..
api activity-sport-type: schema, contract, write/read paths, federation 2026-06-12 14:11:41 +02:00
db activity-sport-type: schema, contract, write/read paths, federation 2026-06-12 14:11:41 +02:00
fit chore(deps): bump the production group across 1 directory with 30 updates 2026-06-07 09:48:14 +00:00
gpx activity-stats: shared StatRow + canonical metrics across surfaces 2026-06-12 14:48:36 +02:00
i18n activity-stats: shared StatRow + canonical metrics across surfaces 2026-06-12 14:48:36 +02:00
jobs build(deps): Bump the production group across 1 directory with 21 updates 2026-06-11 19:22:35 +00:00
map-core Add tests to all packages, remove passWithNoTests 2026-04-13 00:48:27 +02:00
sentry-config Fix sentry-config typecheck: explicit types: [node] in tsconfig 2026-04-18 00:43:48 +02:00
types one source of truth for Route/Activity shapes; enforce api contracts 2026-06-10 07:39:50 +02:00