Repository navigation
Feature req: Upcoming sessions for a loop, laid out on the days you train #1549
luqueruben
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I train on fixed weekdays (Tue, Thu, Sat, Sun) but my programme has six sessions, so the loop rotates through the week and a given session lands on a different weekday each time. In rotation mode the app only ever names today's session (queueNext, so the calendar and the reminders don't paint future days). That is a sensible choice for a loop, but it means I can't see which session I'll do on Saturday, or plan around it.
Proposal (read-only, opt-in)
A setting for the days you train (S.trainDays, getDay() indices, same kind of field as weekStart and weekTarget). Unset means nothing changes for anyone.
An Upcoming list under the loop on Plan, showing each of those days with the session it will be, for example Thu · Day 1 · Thu 26 Nov.
It is only a forecast. Nothing about the sessions is stored, and the queue, reminders, calendar feed and the api/ copy of the queue rules are untouched.
The helper (lib/upcoming.js, pure) lays out the sessions left in the running pass on those days, then continues with the passes the app will write (refillAfter / advanceLoop, including rest days and repeats from #536). Pins in dayPlan, rest days and your own routine on a date are respected, a day that already has a workout is spent, and a planner's queue is not continued.
Tapping a row opens the existing day sheet, so a session can still be pinned to an exact date.
Checks so far
Unit tests include two that train the forecast sessions one by one, let refillAfter refill, and compare the passes the app writes with the forecast (simple loop, and a loop with a rest day and a repeated routine).
The full frontend suite and check-locales pass, and I tried the UI in a browser. I have not tried it on iPhone, Watch or Android.
The six new strings are in all 25 locale packs, translated by an AI assistant, so the less common languages would benefit from a native speaker's eye.
What I'd like your view on
Is a forecast beside the loop in line with how you want rotation to behave, given that the calendar deliberately doesn't show future sessions?
Would you rather have it on Plan, or as a section of the calendar?
Is the Settings row (and the trainDays name) fine, or would you prefer to reuse something like weekTarget?
The patch is ready (about 390 lines outside the locale files, with tests), and I'm happy to open it as a PR, split it, or rework it if you prefer another shape. This was written with the help of Claude; I reviewed and tested the change myself.
All reactions