Progress projection counts missed sessions as ridden #101
Labels
No labels
accessibility
area:accounts
area:ai-evals
area:look
area:maps
area:platform
area:rides-progress
area:riding
area:today-plan-coach
area:ui-shell
bot:blocked
bot:failed
bot:pr
bot:waiting
bot:working
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
later
now
owner-check
parked
question
ready
session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/trainer#101
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(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'sloadAroundTodaycounts only today on; Progress could use the same rule.Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.
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
loadAroundTodaydoes. Small, and the projection then agrees with Today.check this one. if it's still an issue, let's fix it.
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, asloadAroundTodaydoes. You asked on 2026-11-10 to fix it if still an issue, so it's ready to pick up.