Quick-Pick Boluses and Meals for remote commands#603
Open
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"
Contributor
Author
Contributor
Author
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 popover