Skip to content

Add support for DanaKit and MedtrumKit to Loop#402

Draft
marionbarker wants to merge 69 commits intodevfrom
feat/dev-dana-medtrum
Draft

Add support for DanaKit and MedtrumKit to Loop#402
marionbarker wants to merge 69 commits intodevfrom
feat/dev-dana-medtrum

Conversation

@marionbarker
Copy link
Copy Markdown
Contributor

@marionbarker marionbarker commented Jan 17, 2026

Purpose

Draft PR while we work through updates required before landing the support for DanaKit and MedtrumKit into LoopWorkspace dev branch.

The mixing of these two pump managers is for my convenience. Both are at about the same stage of development and are being developed by the same person, @bastiaanv.

Method

Testers will continue to build the feat/dev-dana-medtrum branch for testing. This branch can be updated as frequently as needed without a formal review process - although every update includes local testing prior to pushing the update to GitHub.

When a tester has an issue or concern, they should add a comment to this PR.

When we are ready to get formal approval for the merge, the target branch for this PR will be moved to a new branch, update_dev_to_M.m.x, with the appropriate version number.

Documentation

I will configure 2 comments, one for Dana and one for Medtrum, that can be edited as testing proceeds. These comments will summarize status and indicate must-have and nice-to-have features for the Pump Managers before landing this PR.

Testing

Testers should create a new comment each time they wish to document a bug or feature request for the pump.

For your comment - please Include:

  • the LoopWorkspace SHA - this identifies the DanaKit and MedtrumKit version. (This information is in the LoopReport.)
  • which pump is being tested
  • whether this is a possible bug report or a desired feature
  • If it is a possible bug report, then
    • add enough documentation including a timestamp so we can diagnose the issue
      • include screenshots
      • include the pump log files (scroll to the bottom of the pump manager screen in Loop and tap on Share Dana/Medtrum logs
      • include the LoopReport
      • include the Critical Event Log

bastiaanv and others added 30 commits September 20, 2025 08:34
Update medtrum with dev updates
chore: update MedtrumKit for IOB fix
* prevent action while bolus in progress,
* show No Patch when deactivated
* crowdin updates
@marionbarker
Copy link
Copy Markdown
Contributor Author

marionbarker commented Jan 20, 2026

Comment

Updated MedtrumKit and DanaKit on 20 January 2026. (Edited to indicate the DanaKit change was reverted on 24 Jan.)

LoopWorkspace commit submodule submodule commit comment
4c24155 DanaKit from dbe63ae to 8292ea3 refactor, fix bolus duration estimate, make Swift 6 compatible
ae19f03 MedtrumKit from 1a3b75e to c124c7e add lifecycle to HUD, improved connection cleanup and error logs

@marionbarker
Copy link
Copy Markdown
Contributor Author

Medtrum UI

HUD update for Medtrum

The indication of Medtrum patch lifecycle in the HUD is now included on the Loop HUD:

loop-hud-medtrum

UI screens for Medtrum

I think the UI screens for Medtrum probably need some discussion.

There appears to be mixing between expiration (at 3 days) and stop delivery (at 3 days 8 hours) and what is shown when the user chooses extended life (until batteries fail).

This graphic shows the indication on the Medtrum screen when in the grace period (between 3 days and 3 days 8 hours).

  • left screenshot is when nominal life is selected
  • right screenshot is when extended life is selected
medtrum-in-grace-period-indicator

Medtrum Nominal Life selected

The next graphic shows the composite of the full set of Medtrum screens when the nominal life is selected - note the red rectangle highlights

  • Top icon indicates patch expired - I think the line should be red, not blue
  • Pretty sure the Patch expires at should be at 3 days not at 3 days 8 hours as is currently shown (that's when delivery stops)
medtrum-nominal-in-grace-composite

I'm going to run this pod to 3 d 8 h to get that experience.

Medtrum Settings UI

The Medtrum has the option to choose nominal life or extended life.

The graphic below shows the screens for these 2 choices. Nominal life is the default.

My understanding is the newer editions of the brain limit the extended life to 5 days maximum.

Last nit for this screen is the Save button should be gray when inactive and only blue when something has been modified.

medtrum-patch-settings

@bastiaanv
Copy link
Copy Markdown
Contributor

@marionbarker

Medtrumkit has been updated:

  • Progressbar will be red if the patch is expired
  • Expired is after 3d8h, not after 3d
  • Save button will stay disabled if no change is done
  • The wording is changed for extended lifetime including the warning:

Do you have a proposal on what needs to be done for: Add some Medtrum log information to the LoopReport - particularly dosing information? Maybe some examples from Omnipod?

@marionbarker
Copy link
Copy Markdown
Contributor Author

Comment

Updated MedtrumKit and DanaKit on 24 January 2026

LoopWorkspace commit submodule submodule commit comment
1cdcc2e MedtrumKit from c124c7e to f21d808 UI tweaks, progress & activity indicator, translations
af8b074 DanaKit from 8292ea3 back to dbe63ae to reverted the last commit per request from @bastiaanv. DanaKit commit dbe63ae is more stable

@marionbarker
Copy link
Copy Markdown
Contributor Author

Comment

Updated branch to align with update_dev_to_3.11.1 on 2 Feb 2026. No change to DanaKit (dbe63ae) or MedtrumKit (f21d808) at this time.

LoopWorkspace commit: 0282e18
Includes these updates:

  • bump dev version to 3.11.1
  • update to fastlane 2.231.0 using bundler 4.0.4
  • update Submodules: Updated translations from lokalise on Sun Feb 1 09:46:29 PST 2026
  • update Loop: Live Activity, modify to handle larger fonts, fix plot for glucose color

marionbarker and others added 18 commits February 5, 2026 07:32
fix NUKE_CERT variables to be case insensitive
* modify UI to be similar to Omnipod;
* use consistent 8 hour grace period for normal or extended life;
* add a clear alert button if hourly or daily delivery limit is tripped;
* enable picker for hourly limits to include 1 and 2 U/hr;
* remove zero unit from the picker for hourly and daily delivery limis;
* require authorization to modify Patch settings except when onboarding pump
* add two flags for upload to lokalise;
* replace-modified assists in bringing in translations from other sources;
* cleanup-mode removes old strings that have been changed
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.

2 participants