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

Align Carb and Bolus Guardrail Behavior #336

Merged
merged 2 commits into from
Dec 8, 2024
Merged

Conversation

bjorkert
Copy link
Contributor

@bjorkert bjorkert commented Dec 6, 2024

Before, the last valid value was used for the meal entry. Now the invalid value is cleared and the error message is displayed correctly.

@bjorkert bjorkert requested a review from marionbarker December 6, 2024 20:46
@bjorkert bjorkert changed the base branch from main to dev December 6, 2024 20:53
@marionbarker
Copy link
Collaborator

Status

LGTM

Test

The setting for max carbs (protein/fat) was set to 30 g.

Test before

Confirmed that a carb entry of 45 was automatically modified to 4 g and uploaded.

Test with PR

Confirmed that a carb entry of 45 caused an out-of-bound alert whether hitting the end entry or the send meal button.

Confirmed that when Protein/Fat was added to meal options, they also alerted properly.

@marionbarker marionbarker merged commit 0a6b12f into dev Dec 8, 2024
@marionbarker marionbarker deleted the guardrail-improvement branch December 13, 2024 21:13
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