nightscout / Trio

Trio - an automated insulin delivery system for iOS based on the OpenAPS algorithm with adaptations.
https://docs.diy-trio.org/en/latest/
MIT License
80 stars 414 forks source link

Allow Editing of Existing Profile Overrides #234

Closed aug0211 closed 4 months ago

aug0211 commented 4 months ago

Is your feature request related to a problem? Please describe. I'm always frustrated when I need to make a modification to an existing profile override, but not enough to justify creating an all new override. It is toilsome to need to delete the existing override and re-create a new override from scratch that matches it in all aspects except for the minor tweak I'd like to make.

For example, I have an override to tamp down sizes of SMBs in the early morning hours, from roughly 3 AM to 7 AM. As we navigate life, I sometimes need to make tweaks such as (1) how many minutes the overrides lasts for by default or (2) how many minutes of basal I want to allow to be applied via SMB or perhaps (3) try a modified target for this time period or even (4) adjust the % slider during this period.

To do this today, I must delete the existing profile override and create a new one, with everything the same except for the one thing I'd like to tweak and save as part of the profile override going forward.

This is especially toilsome when working with Shortcut Automations, as I often find that I need to enter the Automation and re-select the Profile Override from the automation to make sure it triggers (even if re-created with an identical name).

Of course, this all applies to Temp Targets as well, but I would prioritize this for Profile Overrides ahead of temp targets.

Describe the solution you'd like An "Edit" option for existing Profile Overrides. This would allow us to change any settings in the Profile Override, and click save to persist the changes.

Describe alternatives you've considered The best alternative I've discovered so far is to completely delete the existing Profile Override and re-create a new one from scratch, matching the old Profile Override in all ways except for whichever small tweak I'd like to make. I then go into any Shortcut Automations referencing the Profile Override and re-select the same Profile Override from the Shortcut Automation dropdown list to be sure it works.

For Temp Targets, the workaround I've identified is to edit the config through settings, where we can get access to the JSON. This is not ideal for most users but is fine for me. I don't think this is an option for Profile Overrides due to the storage mechanism.

One other alternative which would be the best could be that this is already doable today, and I just don't know how to do it :)