Skip to content

Feature custom bar weight#1137

Open
Noyarac wants to merge 2 commits intowger-project:masterfrom
Noyarac:feature-customBarWeight
Open

Feature custom bar weight#1137
Noyarac wants to merge 2 commits intowger-project:masterfrom
Noyarac:feature-customBarWeight

Conversation

@Noyarac
Copy link
Copy Markdown

@Noyarac Noyarac commented Mar 4, 2026

Proposed Changes

  • True custom bar weight setting (a text field allowing custom values, instead of a dropdown list with predefined limited values).
  • Improved Log Page, with the weight increments of the quick add and remove buttons now using a pair of the lightest weight plate available. Also, the plates suggested on top of the page now refresh when using the quick add and remove buttons (not only when the text field is updated).

This PR also includes a lot of automatic quick fixes proposed by VSCode when first opening the project. Looks mostly like lint stuff. You can probably discard the commit "automatic fixes" and only keep the other commit if you wish.

Related Issue(s)

Please check that the PR fulfills these requirements

  • I tried to run the tests to prevent from regression, but a lot of tests seem already broken or outdated.

Noyarac added 2 commits March 4, 2026 10:57
…edefined dropdown list with fixed values).

In the Log Page, increasing the weight with the quick add and remove buttons now use the minimum weight plate available.
Comment on lines +64 to +68
// Calculate weightRounding as 2 times the smallest available plate weight
final plateProvider = ref.read(plateCalculatorProvider.notifier);
final selectedPlates = plateProvider.state.selectedPlates;
final minPlate = selectedPlates.isNotEmpty ? selectedPlates.reduce((a, b) => a < b ? a : b) : 1.25;
final calculatedWeightRounding = 2 * minPlate;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could just move all this to within the plate provider and just expose a minWeightRounding

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.

2 participants