-
Notifications
You must be signed in to change notification settings - Fork 623
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
resolve incorrect bolus amount due to uitextfield issue #362
resolve incorrect bolus amount due to uitextfield issue #362
Conversation
#352 does include a removal of the groupingseparator for #356 issues are not addressed in the PR. Files changed would have no conflict. |
No, #352 has fixes to the Note textfield which THIS PR does not address so that is a separate fix and assuming test and works, should be merged. #352 ALSO has a few lines in its code that this PR also has very similar code for the thousand separator symbol. What I can do is merge #352's thousand separator code into this PR so that it is exactly the same and hence there would be no conflicts. Then you can merge this PR and afterwards merge #352. Would that work? OR alternatively, #352 author could remove the thousand separator code fix since it is unrelated to the Note field. Then both of these PRs can be merged w/out conflict. |
Okay. This has now been removed from my PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from code review and testing in a simulator. I tested in both 🇺🇸 (1.05) and 🇩🇪 (1,05) regions.
SummaryThere are places where you cannot type #.0# and get anything other than ##. Configuration
my CLI:
Testing:Work my way through adding information to a fresh build - remark if there are issues. Could not enter #.0# for these fieldsNotifications;
Statistics
Preferences
Pump Settings
Meal Settings
These use picker wheels: basal profile, ISF, CR, Target Glucose Log Insulin
Log Glucose (mmol/L)
Carb Entry
Enact Temp Target
Enact Bolus
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the one issue, #362, so I'm adding an approval.
As one of the comments, I went through all the data entry fields for others to review.
Thanks, Marion, as always, for your thorough testing. I actually only tested with For the
I suspect the other fields that you tested have similar issues, esp anything whose View formatters have |
Please see above comment! I think this PR would apply to all NumberFormat textfields but maybe we need to clarify data entry requirements for each field. Eg., should maxFractionDigits be 1, 2, 3, etc., should decimal entry be allowed. I added code specifically to support the View formatters but the View formatters (for each field) need to be defined appropriately for the field. I did not change any of the formatters which are defined on each field in various files. |
…0 or more maxFractionDigits
I removed the code which addresses your other comments in your review. You should now be able to enter decimal for the Integer fields in Meals Settings but upon returning to the screen, due to allowFloats=false, the number will revert to an Integer. |
SummarySuccess - thank you
Configuration
TestsRepeated the testing from this comment.
One minor nit - when using "." as a decimal separator, when I have ##.# and hit back space, I am presented with ## with no decimal separator. Most people hitting backspace to modify a number will notice, but seems like the decimal separator should not be removed until hitting the keyboard symbol or hitting backspace. This will not prevent me from approving this. |
Thank you, again, for your thorough testing!! Yes, I agree with this comment. Hwr, it does behave the same as in Loop - Add Carb Entry.
AFAIK, only the Meal Settings (top 3 under Conversion Settings displaying # of Hours or Minutes) contain what appear to be Integers (allowFloats=false). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving based on code review. LGTM.
Merging based on rigoros testing by Marion and Mike and 2 approvals (formerly 3, but changes since Mike tested). |
…t-entered-textfield resolve incorrect bolus amount due to uitextfield issue
Resolves Incorrect bolus amount entered due to data entry problem #358