Closed dsnallfot closed 7 months ago
Some screenshots from a testing branch (work in progress and sorry for some Swedish text).
Yes, this is working right now (but the bolus amount is not yet connected to any CR or other calculations. Just maxBolus guardrai)l. And FaceID gets enabled as a second confirmation step if any bolus amount larger than 0 is entered and send button is clicked (otherwise, when only sending carbs, only one confirmation yes/cancel is shown)
Dark mode | Light mode | Max Bolus exceeded | Max Carbs exceeded |
---|---|---|---|
Confirmation without bolus | Confirmation with bolus step 1 | Confirmation with bolus step 2 | Textstring generated |
---|---|---|---|
Send button when no Bolus is entered | Send button when bolus is entered |
---|---|
Swedish "Skicka Måltid och Bolus" = "Send Meal and Bolus"
Remote view Bolus visible | Bolus hidden | Meal view bolus visible | Bolus hidden | Hide setting |
---|---|---|---|---|
Need to figure out a way to show/hide bolus button in Remote Main View without force closing/restarting the app (to reload and read the latest on/off setting to memory).
Slightly unrelated, but I will also make the custom action button possible to show/hide in settings in the same manner
Hide custom actions switch added.
Below are all possible combinations of buttons on the remote main screen. Bolus and custom actions ("Förval" in this Swedish version) shows/hides with switches in settings
All buttons | Hide custom | Hide bolus | Hide custom & bolus |
---|---|---|---|
Settings
Hide custom | Hide bolus | Hide custom & bolus |
---|---|---|
Love these - my intuition would be to "flip" these show/hide toggles for the advanced functions. The reasoning here is I would think of the advanced features being "off" or "disabled" by default. I'd have the switches match that, to show "off" as the default state, and require the user to enable them by flipping them "on" or "enabled".
This would mean renaming the switches to something like "Show Bolus Actions" and "Show Custom Actions" and having them set to off by default.
Curious for your thoughts on this.
I totally agree on the intuition logic. The only reason "hide" is on is that I did not want to reverse all code since it's used in several places. But that is something we should do. agree
Love these - my intuition would be to "flip" these show/hide toggles for the advanced functions. The reasoning here is I would think of the advanced features being "off" or "disabled" by default. I'd have the switches match that, to show "off" as the default state, and require the user to enable them by flipping them "on" or "enabled".
This would mean renaming the switches to something like "Show Bolus Actions" and "Show Custom Actions" and having them set to off by default.
Curious for your thoughts on this.
Buttons fixed in PR #41 now. 😊
CLosing this since bolus now is implemented in meal view.
Create new issue for the Bolus Calculator stuff (could be a big undertaking and maybe not in scope in the near future)
Idea to enable an even smoother workflow when registering remote meals:
Edit: Added checkboxes for what I’ve testing so far in mealbolus branch
Basic functionality
[x] Add possibility to send meal+bolus together from Meal view
[x] Add maxBolus (and maxCarbs)guardrails
[x] Add faceID/TouchID/Passcode for additional confirmation/security before sending meal+bolus
[x] Add "Bolus_x.x" to Meal text string (to use in if-statement in sms triggered automation shortcut on receiving phone)
Bolus calculator/recommendations
[ ] Use enacted device status data to fetch CR (to use for "naive" bolus calculation of a suggested bolus amount)
[ ] Use lowest BG prediction value (and/or insulinreq) from enacted and suggest 0 bolus if prediction is lower than threshold
[ ] Use enacted device status data to show latest IOB, COB, Eventual BG (as additional info for an informed bolus decision) This could maybe be displayed in the navigation bar?
Other
[x] Make bolus functionality optional with toggle show/hide in settings (default hide)
[x] Change text on send button to “send meal+bolus” when bolus entry is made, or just “send meal” when bolus is 0 or “”
[x] Guardrail alerts: Show maxbolus alert (stop sending) if maxbolus is exceeded, otherwise continue, then check that maxcarbs is not exceeded, if exceeded, show maxcarbs alert and stop sending, otherwise continue sending