Repository navigation
Conversation
…scheduled switches The patches are built from the profiles pull request to Loop. Profiles saved as files by the earlier customization are moved into the settings on first launch. The earlier patches are moved to archive.
…eases without profile editing
…ut profile editing
TestQuick test with an alternative version of next-dev. Worked as expected. |
…d let each setting be fixed on its own
… safety limit above every correction range, and name the profile files left out of the move
…when the glucose safety limit is above the correction range guardrail
…le/NotMoved and delete only the files of moved profiles
… other values already has, and name it in the alert
Personal PreferenceI dislike taking up the real estate on the main screen for the current profile name. It did a nice job of converting the old-style profiles and reported the ones that could not be transferred, why and where they are located on the phone. I tested this against what will soon be next-dev after the current PR 595 is merged, branch bump-watch-plugin-loading, commit 94ba909. I have this customization on my personal phone. |
|
Hi @bjorkert Jonas, I've now successfully built and installed next-dev with this PR and started testing it in real-world use with my Medtrum Nano pump. So far, I'm really impressed! All my previously saved profiles were migrated automatically without any issues. I've also successfully saved my previous therapy settings as a new profile and adjusted my Default profile. Really great work! Thank you for implementing this. 😊 I have two small UI suggestions:
These two changes would make the profile indicator both more space-efficient and more useful. I'll continue testing and share any further feedback. |
TestI did some more testing. Round Trip wipes out old-style profiles
When would this matterIf someone converted to the new profile customization and then installed an old TestFlight build with the old customization - all their profiles would be wiped out. |
|
Test Update – Real-world use with Medtrum Nano I've continued testing the new Profiles customization over the past few days and can confirm that the following functions have worked successfully:
All of these functions have worked flawlessly so far, without any errors or unexpected behavior. I'm really happy with the new Profiles implementation. Great work, Jonas! 👍 I'll continue testing in real-world use and report any issues I encounter. |
|
Thanks for testing @jenneman, appreciate it! |
…ach file once, and read them again with an alert after a build without profiles stored the settings
|
Thanks Marion, the round trip is fixed. A Loop build without the new profiles code (the old customization or plain Loop) saves a settings record without profiles every time it starts, which is why they disappeared. The new version now leaves the old profile files and the old active profile name in place, so going back to an older build shows the old profiles as before. Each file is copied once, so profiles you edit or delete in the new version stay that way. If an older build has run in between, the new version reads the files again and shows a Profiles Restored alert. Profiles created or changed only in the new version and scheduled switches are not restored in that case, and the alert says so. Tested on a phone with your round trip on dev (with the real old customization) and next-dev, plus the usual profile and remote scenarios on both. |
…hat opens Profiles when tapped
…lt minimum cell height
|
Updated the status screen row after the feedback that it took too much room (02903bd, da3e2c8). The row is now 24 pt and shows only the profile name, in a smaller font with more contrast, and tapping it opens Profiles. It is shown only when a profile other than the active one exists, so with only Default there is no row. A pause icon shows when a scheduled start is paused, and VoiceOver still reads the full text with the next scheduled start. The schedule itself is on the Profiles screen. Tested in the simulator on both branches: tapping the row, activating a profile from there, and deleting down to Default, which removes the row. next-dev (iOS 27):
dev (iOS 26.5):
|
TestPart 2 - demonstrate that old-style profiles are not lost in case the user does a round trip: new build then load an old build ConfigurationUse interim branch: release/v3.14.14 (LoopWorkspace PR 600), commit Start with an SE 2nd gen test phone with has 4 new-style but no old-style profiles. I use an alias, resetAll, to restore the branch to nominal configuration including all submodules:
Commands to build with old profile versionCommands to build with new profile versionTest DetailsOld Style Profiles CustomizationBuild the old-style profile customization onto the test phone: New Style Profiles CustomizationBuild the new-style profile customization onto the test phone:
The new-style profiles screen only shows Default |
…gs history after a build without profiles has run
|
Thanks Marion, you read it right: that version restored only the profiles in the earlier customization's files, so profiles created in the new version were lost. That is fixed in 9715fdc. Loop keeps 90 days of settings history, and when the new version starts after a build without profiles has run, it restores the profiles and scheduled switches it stored last and shows a Profiles Restored alert. What is supported:
What is not supported:
The README section on going back to an earlier build says the same. Tested on a phone with a simulated pump and CGM: your round trip on dev with the earlier customization (first video), the same with the therapy settings changed in the earlier customization (second video), the round trip on next-dev with Loop without customizations, and the earlier migration scenarios on dev. Round trip, new - old - new: round-trip-dev.mp4Therapy settings changed in the earlier customization: settings-changed-dev.mp4 |
TestThis test, 2026-11-30, was performed with commit
Test with next-dev branch and new profile customization
Test DetailsUse same commands to build with old profile version and build with new profile version when applied to release/v3.14.14 branch as in this comment. Starting configurationThis is the configuration on the test phone Test phone:
Build with new-style profiles customizationOnly Default profile exists Create a total of 4 profiles including Default
Build with old-style profiles customizationNo profile exists. Modify the Therapy setting - same as new Default except change Correction Range to be 105 to 115. Create a total of 22 profiles, keep them all the same, call them Old 01, Old 02 up through Old 22. Build with new-style profiles customization✅ Expect the 4 New profiles to be preserved and some of the Old profiles to be converted. ✅ Because the active profile while in the old-style build differs from Default in the new-style build, the old Default (with target correction of 100-120) is saved as Saved Default. Now delete a few profiles in this version - they should remain deleted with a round-trip. Delete New Style Profiles:
Delete Old Style Profiles that were converted:
Build with old-style profiles customization✅ Expect all Old style profiles to be available. Build with new-style profiles customization✅ Expect the Old-style profiles that were deleted in New-style build to remain deleted Try to add more New profiles: Activate New 4 as profile (differs from Old 22) Build with old-style profiles customization✅ User is notified that the profile (Old 22) marked as active differs from current Therapy Setting. I choose save current settings and now Old 22 matches New 4. Build with new-style onto a next-dev buildReturn to the branch for LoopWorkspace PR 595 (next update for next-dev), bump-watch-plugin-loading, commit Left Screenshot: Profiles not moved: Old 22 Screenshots: New Profiles with next-dev built over Old Profiles with main
|
marionbarker
left a comment
There was a problem hiding this comment.
Approve by test.
Prepare updates to loopandlearn documentation, discuss with mentors who will provide help to users and then merge when ready.
…er than Default is active, keep a pending restore until it has run, and read each settings history record once
|
The status screen profile row is now shown only while a profile other than Default is active (b1166c8). With Default active the status screen looks as it does without profiles, so someone who tried profiles and went back to Default has no row left to wonder about. Otherwise the row is unchanged: the profile name, a pause icon when a scheduled start is paused, and a tap opens Profiles. The same row is now in the Loop PR (LoopKit/Loop#2680). The commit also brings two restore fixes from the last review into the patches: a pending restore is kept until it has run, even if a build without profiles runs again before that, and paging through the settings history reads each record once. Tested in the simulator on dev and next-dev: the row shows for Weekend, gets the pause icon, disappears when Default is activated and comes back with Weekend. The combination test with the other customizations gives the same result as before. From left: Weekend active, Weekend with a paused scheduled start, Default active (dev, iOS 26.5).
|
…ts and require a fingerprint for remote updates








This replaces the file-based Profiles customization with one built from the profiles pull request to Loop (LoopKit/LoopWorkspace#583). Profiles are stored in Loop's own settings in the same format as the pull request, and Loop uploads them to Nightscout in the same way. LoopFollow can switch, create, edit, rename and delete profiles and change scheduled switches, with the one-time password and a fingerprint check on every change. Profiles can also switch automatically on a weekly schedule.
It includes the fixes from the review of LoopKit/LoopKit#698. A profile that the delivery limits, the glucose safety limit or the pump's basal rates rule out is marked as one that cannot be activated, with the reason, and Loop alerts after a pump change with the profiles that fail. Saving a profile checks only the settings that changed, so a profile can be fixed one setting at a time. On next-dev the editors and the validator offer the same values. On dev the validator also accepts 0 U/h, as dev's basal editor does.
On first launch, profiles saved as files by the earlier customization are copied into the settings. The files and the earlier customization's active profile name are left unchanged, and each file is copied once, so a profile that is later edited, renamed or deleted stays that way. A profile that is not copied, because it is over the profile limit, has a name that can't be used or has the name of a stored profile with other values, is named in an alert. Names that the new rules do not allow are changed: spaces at the start or end are removed, "." becomes ",", a leading "$" is removed, a profile named Default becomes "Saved Default", and a number is added if two names end up the same. The profile that was loaded last stays active only if its values equal the settings Loop doses with.
A Loop build without this version, such as an older TestFlight build with the earlier customization, saves the settings without profiles every time it starts. The earlier customization still finds its files. When this version runs again it reads the files again and shows a Profiles Restored alert. Profiles created or changed only in this version and scheduled switches are not restored.
There is one patch for dev and main (3.14.x) and one for next-dev. The earlier patches are moved to archive so the selector reports an update for workspaces that have them. NightscoutKit is pinned through Swift Package Manager, so the profile document fields, the Profile Switch treatment and the import of a Nightscout profile are written and read as JSON in NightscoutService. Remote profile commands are handled apart from the shared remote command code, so this applies cleanly together with remote_carb_edit and remote_window.
profile-switchis also listed in the device status, where LoopFollow releases without profile editing, such as 8.0.0, look for it, so they can still switch profiles. As with the earlier customization, they do not offer a profile named Default.Tests: