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

Allow hiding TUT and RPE UI elements #58

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

senier
Copy link
Contributor

@senier senier commented Sep 10, 2024

This PR introduces settings to hide the UI elements for TUT and RPE. I use neither of those during training and regularly find myself entering the values for reps and load in the wrong fields. The change is only in the UI - the data remains untouched. Settings default to showing those UI elements so that, by default, the UI looks as before.

I ended up using buttons to control the respective settings. I also played around with check boxes, but those don't look great and I had trouble getting them to work in seed. Let me know what you think.

Closes senier#5

Copy link
Owner

@treiher treiher left a comment

Choose a reason for hiding this comment

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

While hiding all RPE-related elements is fine, hiding all TUT-related fields could lead to unwanted effects in some cases. The "time" field can also be used to track the time of isometric exercises (like Planks), which wouldn't be possible anymore if TUT is set to hidden. This issue should be solvable by introducing exercise types, which is planned for the future (#19). The current implemention is still useful for people that just use repetition-based exercises. Overall, the changes look good to me. I just have a comment about the design.

frontend/src/main.rs Outdated Show resolved Hide resolved
frontend/src/main.rs Outdated Show resolved Hide resolved
@treiher treiher merged commit 6721b5f into treiher:main Sep 14, 2024
26 checks passed
@senier senier deleted the disable_features branch September 14, 2024 14:09
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.

Allow disabling of features in the UI
2 participants