Quick-Pick Boluses and Meals for remote commands#603
Merged
Conversation
Renames all files, classes, types, and UI labels introduced by the quick-pick feature from "Common" to "Quick-Pick": - CommonBoluses/ → QuickPickBoluses/ - CommonMeals/ → QuickPickMeals/ - CommonBolusesManager → QuickPickBolusesManager - CommonMealsManager → QuickPickMealsManager - CommonSectionHeader → QuickPickSectionHeader - UI labels: "Common Boluses/Meals" → "Quick-Pick Boluses/Meals"
Member
Author
Member
Author
bjorkert
added a commit
that referenced
this pull request
Apr 27, 2026
# Conflicts: # LoopFollow.xcodeproj/project.pbxproj
codebymini
approved these changes
Jun 13, 2026
marionbarker
approved these changes
Jun 14, 2026
marionbarker
left a comment
Collaborator
There was a problem hiding this comment.
Relying on code review by @codebymini.
Confirm this builds for iOS 18 and iOS 26 phones and using Loop and Trio URLs.
LF TRC was configured for carbs only
- Sent several remote meals via LoopFollow phone to Trio.
- The items showed up as quick pick options for next remote meal.
modifies LF TRC to include fat and protein and bolus.
- sent a meal with carbs, fat, protein and bolus
- this was added to the quick pick list for next time
LF Loop remote control configured
- This also adds the quick pick
- This is nice but it would be convenient if the absorption time were included along with carb amount.
Since this has been around for along time and is a great feature, I'm going to merge it.
Perhaps improvements could be added later.
marionbarker
pushed a commit
that referenced
this pull request
Jun 21, 2026
* Common remote commands * Help texts * Rename Common to Quick-Pick throughout Renames all files, classes, types, and UI labels introduced by the quick-pick feature from "Common" to "Quick-Pick": - CommonBoluses/ → QuickPickBoluses/ - CommonMeals/ → QuickPickMeals/ - CommonBolusesManager → QuickPickBolusesManager - CommonMealsManager → QuickPickMealsManager - CommonSectionHeader → QuickPickSectionHeader - UI labels: "Common Boluses/Meals" → "Quick-Pick Boluses/Meals"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




What this adds
Quick-Pick Boluses and Meals: contextual shortcut buttons that appear at the top of the bolus and meal entry screens in TRC (Trio Remote Commands) and Loop APNS remote views.
Instead of typing an amount each time, the most relevant recent entries appear as tap-to-fill buttons — saving a step for the caregiver sending remote commands.
How it works
Every successfully sent bolus or meal is stored locally on the device. When the remote command screen opens, the stored history is scored to surface the most relevant options for right now, considering:
Up to 5 results are shown. The section is hidden entirely until there is history to show.
Scope
Info button
Each Quick-Pick section header includes an ⓘ button. Tapping it shows a brief, plain-language explanation of what the buttons are and how they are built — easily dismissed by swiping or tapping Done.
New files
Remote/QuickPickBoluses/QuickPickBolusesManager.swift— scoring logic + history management for bolusesRemote/QuickPickBoluses/RemoteBolusHistoryEntry.swift— local history modelRemote/QuickPickMeals/QuickPickMealsManager.swift— scoring logic + history management for mealsRemote/QuickPickMeals/RemoteMealHistoryEntry.swift— local history modelHelpers/Views/QuickPickSectionHeader.swift— reusable section header with info popoverCompanion PR
Documentation: loopandlearn/loopfollowdocs#33