Skip to content

Add ability to double-click carbs to enter Treatments screen - #757

Merged
bjorkert merged 2 commits into
feature/remote-meal-edit-deletefrom
touch-carb
Sep 26, 2026
Merged

bjorkert merged 2 commits into
feature/remote-meal-edit-deletefrom
touch-carb

Conversation

@codebymini

Copy link
Copy Markdown
Collaborator

No description provided.

…onstruction (#758)

* Share carb Treatment construction and root-meal lookup

Treatment.carb builds a carb entry for both the treatments list and the
chart's detail sheet, with one id fallback for entries without a
Nightscout _id. Treatment.rootMealsByFPUID and rootMeal(in:) back the
FPU-child root lookup in both places.

* Refresh treatments when a remote meal command completes

The chart's carb marks follow a remote meal edit or delete from any
screen by running the treatments task as soon as the command resolves.

* Keep the carb detail sheet in the chart shell

BGChartView owns the selected carb and its sheet, outside the subtree
that is remounted on foregrounding, so an open sheet survives a trip to
Notification Center or the background. Double-tap hit-tests carb marks
only, so a nearby bolus cannot shadow the carb it sits next to.
@kristinkand

Copy link
Copy Markdown

I built this PR and double tap brings you straight to the carb entry which one can then edit or delete. Works well.

@bjorkert
bjorkert merged commit 67e2cc8 into feature/remote-meal-edit-delete Sep 26, 2026
1 check passed
@bjorkert
bjorkert deleted the touch-carb branch September 26, 2026 17:58
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.

3 participants