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

UI for flexible routines #975

Open
wants to merge 175 commits into
base: master
Choose a base branch
from
Open

Conversation

rolandgeider
Copy link
Member

No description provided.

This is only used to show the current workout day, and is not edited in
any way
This is only used when submitting exercises, and we will probably need a new one
that simply handles known exercises throughout the application
# Conflicts:
#	src/services/workoutLogs.test.ts
@rolandgeider rolandgeider marked this pull request as ready for review January 10, 2025 20:48
This is what the user is more probably going to do anyway
This allows to compare the planned values vs what was actually logged
If there are planned min and max values, the logged value is green as long as
it is between those. Also move the logic to an external function so that this
can be more easily tested
This makes it easier to work with them, such as during comparisons
Note that this is still not a perfect solution, since javascript helpfully
parses "42ggg" to "42" and doesn't throw an error.
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