Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

166152322 Add support for drop sets #27

Merged
merged 1 commit into from
Jun 20, 2019

Conversation

misocho
Copy link
Contributor

@misocho misocho commented Jun 19, 2019

Title

Add support for drop sets

Description

Drop sets are essentially a technique where you perform an exercise and then drop (reduce) the weight and continue for more reps until you reach failure.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

  • New feature (non-breaking change which adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

  • This change requires a documentation update

How Has This Been Tested?

When creating a workout session:

  • Check the drop set checkbox
  • Fill in the neccessary fileds
  • Click on the calculate dropsets button

Screenshot 2019-06-19 at 10 28 42

Acceptance Criteria:

Checklist:

  • Add drop set template view
  • Implement repetition drop set
  • Implement weight drop set
  • Calculate drop set

PT stories

#166152322

wger/manager/static/js/dropset.js Outdated Show resolved Hide resolved
wger/manager/static/js/dropset.js Outdated Show resolved Hide resolved
wger/manager/static/js/dropset.js Outdated Show resolved Hide resolved
wger/manager/static/js/dropset.js Outdated Show resolved Hide resolved
wger/manager/static/js/dropset.js Outdated Show resolved Hide resolved
wger/core/static/js/wger-core.js Outdated Show resolved Hide resolved
@misocho misocho added the 🚧 Work in Progress When a PR is not yet ready to be reviewed label Jun 19, 2019
@misocho misocho force-pushed the story/166152322-drop-sets branch 2 times, most recently from 7464cbf to ae57e1d Compare June 19, 2019 08:03
@misocho misocho added 👍 ready Ready for review and removed 🚧 Work in Progress When a PR is not yet ready to be reviewed labels Jun 19, 2019
Copy link
Contributor

@martinMutuma martinMutuma left a comment

Choose a reason for hiding this comment

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

Awesome work. Drop set feature works as expected
It would be better to pick up the absolute weights of percentages to ensure we stick to the defination of dropset

Copy link
Contributor

@justMuriithi justMuriithi left a comment

Choose a reason for hiding this comment

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

Superb job implementing drop sets. The ease with which I am getting my weight values is great. It would, however, be awesome if I as a user would be directed to know that changing repetitions in dropsets is optional.

@misocho
Copy link
Contributor Author

misocho commented Jun 19, 2019

@justMuriithi, Thanks for the d=feedback. I've implemented it

Copy link
Contributor

@Tevinthuku Tevinthuku left a comment

Choose a reason for hiding this comment

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

Awesome work, this works as expected and also marking the reps fields as optional as requested by @justMuriithi.
It's convenient how I can just specify a percentage and an initial weight and have it calculate the exact weight I need to drop to in the next repetition

Copy link
Contributor

@justMuriithi justMuriithi left a comment

Choose a reason for hiding this comment

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

Great job implementing the feedback.

Copy link
Contributor

@Kimaiyo077 Kimaiyo077 left a comment

Choose a reason for hiding this comment

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

Excellent work @misocho. The feature works as expected and thumbs up for implementing the feedback given.

- Add dropset template view
- Implement repetition dropset
- Implement weight dropset
- Calculate dropset
- Add page reload

[Delivers #166152322]
Copy link
Contributor

@bencyn bencyn left a comment

Choose a reason for hiding this comment

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

Great job. The drop sets feature works as expected. Indeed I've confirmed the page reloads
after adding a drop set.

Copy link
Contributor

@michael-basweti michael-basweti left a comment

Choose a reason for hiding this comment

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

Works as required

@michael-basweti michael-basweti merged commit 954576d into develop Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👍 ready Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants