Skip to content

Gym mode: add optional sticky set values - #1290

Open
BrianHotopp wants to merge 1 commit into
wger-project:masterfrom
BrianHotopp:gym-mode-carry-over-logged-values
Open

Gym mode: add optional sticky set values#1290
BrianHotopp wants to merge 1 commit into
wger-project:masterfrom
BrianHotopp:gym-mode-carry-over-logged-values

Conversation

@BrianHotopp

@BrianHotopp BrianHotopp commented Jul 28, 2026

Copy link
Copy Markdown

Proposed Changes

New "sticky set values" gym-mode setting (default off): the next set of an exercise pre-fills from the values you last logged — weight, reps, RiR, units — instead of the planned ones.

Use case: dialing in the weight over the first sets of an exercise. Today every set re-fills from the plan, so the adjustment has to be re-entered each time.

  • Only values are copied: id, session, slot entry and targets stay a fresh template, so saving still creates a correct new log row.
  • Per exercise, cleared at workout end. No behavior change unless enabled.
  • 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 244/244 (+6 tests).

When dialing in the weight over the first sets of an exercise, the log
form of every following set is pre-filled with the planned values
again, so any adjustment has to be re-entered for every set.

When the new "sticky set values" setting is enabled, the values
(weight, repetitions, RiR, units) logged for a set are remembered and
the next set of the same exercise is pre-filled with them instead of
the planned ones. This intentionally only copies the values: the id,
session, slot entry and targets stay those of a fresh template, so
saving still creates a new log row for the correct slot.

The setting is disabled by default and can be toggled in the gym mode
options; it is persisted like the other gym mode settings. The
remembered values are cleared when the workout ends.
@BrianHotopp
BrianHotopp force-pushed the gym-mode-carry-over-logged-values branch from 59c4414 to 0f335bb Compare August 1, 2026 01:23
@BrianHotopp

Copy link
Copy Markdown
Author

Should this be default true?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant