Skip to content

Check profile saves only in the changed schedules and flag profiles outside the limits - #847

Open
bjorkert wants to merge 2 commits into
loopandlearn:devfrom
bjorkert:therapy-profiles-review-fixes
Open

bjorkert wants to merge 2 commits into
loopandlearn:devfrom
bjorkert:therapy-profiles-review-fixes

Conversation

@bjorkert

@bjorkert bjorkert commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

These problems came up in the review of the Loop version of therapy profiles (LoopKit/LoopKit#698), and LoopFollow has its part of them. A remote save of an existing profile was checked against the limits in every schedule, so a profile with one schedule outside the limits, after the max basal rate was lowered or the pump changed, could not be corrected from LoopFollow in any of its schedules. Nothing in LoopFollow showed that such a profile could no longer be activated until an activation was refused.

A remote save is checked against the shared limits only in the schedules it changes, as Loop and Trio check it, so a profile can be corrected one schedule at a time. Profiles that no longer fit the limits are marked Outside Limits in the list, the profile screen says why the app will not activate them, and the review notes when the schedules a save leaves alone stay outside the limits. Profiles are flagged only when the limits are usable, the profile was read completely and both are in the same units.

Matches LoopKit/LoopKit#698, LoopKit/LoopKit#707 and nightscout/Trio#1808, and follows up on #833.

…es outside the limits

A remote save of an existing profile is checked against the shared limits only in the schedules it changes, as Loop and Trio check it, so one schedule that no longer fits does not keep the others from being corrected. Profiles that no longer fit the limits are marked in the list, the profile screen says why the app will not activate them, and the activation confirmation says when the active profile can't be activated again.
…hedules stay outside them

Profiles are flagged only when the shared limits are usable, the profile was read completely and both are in the same units. A schedule grid of zero seconds gives no segments. The review notes when the schedules a save leaves alone stay outside the limits, the activation confirmation says when the target is outside them, and the wording follows whether the profile can be edited from LoopFollow.
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.

1 participant