Progress projection counts missed sessions as ridden #101

Closed
opened 2026-11-08 18:12:13 +00:00 by chris-kreidl · 3 comments
chris-kreidl commented 2026-11-08 18:12:13 +00:00 (Migrated from github.com)

(Today dashboard) Progress's projection (projectActivePlan) starts the day after the last stored load and counts every planned session from there, so after a few quiet days it counts missed sessions as ridden. Today's loadAroundToday counts only today on; Progress could use the same rule.

Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.

(Today dashboard) Progress's projection (`projectActivePlan`) starts the day after the last stored load and counts every planned session from there, so after a few quiet days it counts missed sessions as ridden. Today's `loadAroundToday` counts only today on; Progress could use the same rule. _Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08._
chris-kreidl commented 2026-11-08 20:05:23 +00:00 (Migrated from github.com)

What this is about. Progress → Fitness shows a dashed projection of fitness, fatigue and form through the rest of the plan. projectActivePlan (src/server/progress-store.ts) starts the day after the last stored load day and adds every planned session from there. If you haven't ridden for a few days, those days' planned sessions sit after the last stored day, so the projection counts them as ridden even though they were missed. Today's own projection (loadAroundToday) only counts sessions from today on, which is right.

Status (checked 2026-11-08): unchanged. The query still takes every planned session after startAfter.

Fix: count planned sessions from today only (days between the last load and today add zero TSS), as loadAroundToday does. Small, and the projection then agrees with Today.

**What this is about.** Progress → Fitness shows a dashed projection of fitness, fatigue and form through the rest of the plan. `projectActivePlan` (`src/server/progress-store.ts`) starts the day after the last stored load day and adds every planned session from there. If you haven't ridden for a few days, those days' planned sessions sit after the last stored day, so the projection counts them as ridden even though they were missed. Today's own projection (`loadAroundToday`) only counts sessions from today on, which is right. **Status (checked 2026-11-08):** unchanged. The query still takes every planned session after `startAfter`. **Fix:** count planned sessions from today only (days between the last load and today add zero TSS), as `loadAroundToday` does. Small, and the projection then agrees with Today.
chris-kreidl commented 2026-11-10 22:27:43 +00:00 (Migrated from github.com)

check this one. if it's still an issue, let's fix it.

check this one. if it's still an issue, let's fix it.
chris-kreidl commented 2026-11-19 03:21:24 +00:00 (Migrated from github.com)

Status (checked 2026-11-18): still a bug. projectActivePlan (src/server/progress-store.ts:230) still starts the day after the last stored load and counts every planned session from there. The fix is unchanged: count planned sessions from today on, as loadAroundToday does. You asked on 2026-11-10 to fix it if still an issue, so it's ready to pick up.

**Status (checked 2026-11-18):** still a bug. `projectActivePlan` (`src/server/progress-store.ts:230`) still starts the day after the last stored load and counts every planned session from there. The fix is unchanged: count planned sessions from today on, as `loadAroundToday` does. You asked on 2026-11-10 to fix it if still an issue, so it's ready to pick up.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/trainer#101
No description provided.