Skip to content

Gym mode: show upcoming set on timer pages, fix editing logged sets, persist rest timers - #1289

Open
BrianHotopp wants to merge 2 commits into
wger-project:masterfrom
BrianHotopp:gym-mode-timer-up-next-and-edit-logs
Open

Gym mode: show upcoming set on timer pages, fix editing logged sets, persist rest timers#1289
BrianHotopp wants to merge 2 commits into
wger-project:masterfrom
BrianHotopp:gym-mode-timer-up-next-and-edit-logs

Conversation

@BrianHotopp

@BrianHotopp BrianHotopp commented Jul 28, 2026

Copy link
Copy Markdown

Proposed Changes

Two gym mode fixes, one commit each:

1. Show the upcoming set on timer pages

Timer pages showed only the countdown. They now show the next set below the time: exercise name, reps × weight, set counter. This is always the next log page — the next set of the same exercise (weight progressions) or the first set of the next exercise. Hidden after the last set of the day.

2. Fix editing logged sets + keep rest timers running across navigation

  • Re-visiting an already logged page re-seeded the form from the plan and saving inserted a duplicate row. The form is now seeded from the saved log and saving updates it (updateEntry) — e.g. adding a forgotten RiR.
  • Rest timers kept their start time in the widget; leaving the page disposed it and restarted the countdown. The start time now lives in gym state, so the countdown continues while going back to correct a set. Revisiting an expired timer no longer re-triggers the end alert.

Client-side only, no backend changes.

Related Issue(s)

Please check that the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Set a 100-character limit to avoid white space diffs (run dart format .)

flutter analyze clean; flutter test test/features/routines 250/250 (+10 tests).

@BrianHotopp BrianHotopp changed the title Gym mode: show upcoming set on timer pages, allow correcting logged sets, persist rest timers Gym mode: show upcoming set on timer pages, fix editing logged sets, persist rest timers Jul 28, 2026
The timer pages only showed the countdown, wasting the whole rest
period: to prepare for the next set (e.g. walk over and preload the
plates) the user had to swipe forward to see what comes next, which
also restarted the timer.

The timers now show the upcoming set below the time: exercise name,
set configuration (reps, weight, etc.) and set counter. This is always
the next log page, which can be the next set of the same exercise
(e.g. when progressing weights within an exercise) or the first set
of the next exercise. After the last set of the day nothing is shown.
Two related fixes for navigating back during gym mode:

* Re-visiting an already logged page showed the set-config template
  again and saving inserted a second, duplicate log row. The saved log
  is now kept on the slot page and the form is seeded from it, so the
  previously entered values are shown and saving updates the existing
  row instead of duplicating it (e.g. adding a forgotten RiR).

* The rest timers kept their start time in the widget, so leaving the
  page disposed it and restarted the countdown on return. The start
  time now lives in the gym state and both timers derive the elapsed
  or remaining time from it, so the countdown continues while the
  user e.g. goes back to correct a set. Revisiting an already expired
  countdown also no longer triggers the end-of-countdown alert again.
@BrianHotopp
BrianHotopp force-pushed the gym-mode-timer-up-next-and-edit-logs branch from 309f955 to c2a76e7 Compare August 1, 2026 01:22
@github-project-automation github-project-automation Bot moved this to Backlog in Release 2.8 Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants