nightscout / nightscout/AndroidAPS
[Feature request] Upon cancelling bolus triggered by Bolus wizard, prompt to remove Carbs added by wizard for that event
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 1.2k
- Forks
- 6.4k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 19
Description
As a user, I'd like to be prompted to remove the carbs added by the bolus wizard if I cancel the bolus, so that the loop doesn't then assume COB is higher than reality, given the bolus was cancelled due to no longer eating or changing the amount being eaten.
Example
- User opens Bolus wizard and enters 70g carbs for meal.
- Bolus of 7U started.
- User realises carb count was too high and cancels bolus after 0.05U is administered.
- User then opens Bolus wizard again and enters the correct amount of carbs, being 50g.
- Bolus of 5U is administered.
- User has eaten 50g but the logged COB is 120g (70g + 50g from two events).
- Loop administers an additional 5U over the next two hours via SMBs to handle the additional 70g that was not consumed, resulting in hypo.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Bolus wizard flow from bolus cancellation through the carb event recorded for that bolus. Check how a cancelled delivery and its associated carbs are represented, then verify that the user can remove those carbs while retaining the correctly administered event; the issue provides no file or test names.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100