LoopKit / Loop

An automated insulin delivery app for iOS, built on LoopKit
https://loopdocs.org
Other
1.5k stars 1.3k forks source link

Custom Presets - Manual input field for Target Range is unconstrained and allows 0mg/dL or 400mg/dL to be set #2126

Open kellyisworking opened 8 months ago

kellyisworking commented 8 months ago

Describe the bug During Custom Preset configuration, for both Saved and Custom (single use) Presets, the Target Range uses manual input for setting the low and high value. Low value can be entered as low as 0 mg/dL and high value can be raised as high as 400mg (at least).

Given the low value is unconstrained, it is unclear if the dose will still be constrained by Glucose Safety Limit. Note: this should be investigated.

Additionally the UI should introduce picker interactions rather than manual inputs consistent to Correction Range in Therapy Settings to mitigate against use error. See below.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Custom Presets'
  2. Click on '+' to create a new saved preset or 'Custom' to create a temporary preset
  3. Scroll down to 'Target Range'
  4. Tap into input fields, enter 0 or 400 into lower and upper bound.

Expected behavior The UI should introduce picker interactions rather than manual inputs consistent to Correction Range in Therapy Settings to mitigate against use error.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">


Minimum | Low Warning | High Warning | Maximum -- | -- | -- | -- 87 or Glucose Safety Limit |   |   | 250 mg/dL.

Additionally, two recommendations to increase consistency:

  1. Change Target Range to Correction Range across the Preset interface
  2. Display warning message as user’s selection approaches high and low limits

    • Trigger a low range value warning and verify the following copy:
“A value you have entered is lower than what is typically recommended for most people.”
    • Trigger a high range value warning and verify the following copy:
“A value you have entered is higher than what is typically recommended for most people.”
    • Trigger a high and low range value warning and verify the following copy
“Some of the values you have entered are outside of what is typically recommended for most people.”

Screenshots

IMG_7661

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 30 days with no activity.

marionbarker commented 7 months ago

Bump

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 30 days with no activity.

marionbarker commented 6 months ago

Bump

marionbarker commented 1 month ago

I confirmed that the glucose target guardrails are not respected when override values exceed the guardrail. Actually - I don't think this is a problem on the higher end. Next test will be low glucose end. Using a test phone:

marionbarker commented 1 month ago

The glucose safety limit is respected. So I think this is a cosmetic issue for the min target, but should be resolved. The upper limit of the target is used as entered. Not sure if we want to enforce guardrails on that value.

Using a test phone