loopandlearn / LoopFollow

A general Follow app for parents of T1D Loop Users
GNU Affero General Public License v3.0
99 stars 494 forks source link

[feature request] - Add a treatments table for bolus and carb entries for easier lookup of details in a crowded graph #300

Open bjornoleh opened 1 month ago

bjornoleh commented 1 month ago

Description of the problem: The graph with BG values and treatment details can sometimes be pretty crowded, especially when microbolus / SMB is used, and even more so if carb equivalents from fat and protein (FPU) are logged. Sometimes it is necessary to look into the exact details of a treatment (size or timestamp), or check for duplicates that might perfectly overlap on the chart.

Proposed solution: I would like to have a table or list view of treatments to more easily look up treatment details for bolus and carb entries. The list or table should contain timestamps, treatment type and size, and possibly allow filtering based on treatment type. Maybe filtering based on manual bolus vs AB/SMB, or filtering based on bolus size.

xDrip4iOS has such a table view, and I find myself using this app in parallel to LF just to have the treatments table available:

Alternatives considered: Pinch to zoom is an alternative today, but I find this to require more effort, as it takes two fingers, accurate zooming, and then tapping of the treatment marker to bring up its timestamp. Please note that perfectly overlapping duplicate entries can’t reliably be identified by pinch to zoom.

bjorkert commented 1 month ago

I think this a great idea. Possibly also with a pull to refresh. Have you thought of how to navigate to this list in LF?

bjornoleh commented 1 month ago

Would a sixth button on the bottom make it too crowded?

If so, perhaps combine Settings and Alarms in one button to make room for Treatments?

Combining Settings and Alarms could be done like in Nightguard, but I would prefer if the areas to tap were aligned at the bottom and not the top for easier reach. And possibly just a small menu that expands up from the button instead of a full page with only two items? Kind of like how the Google Calendar ➕button works if you’re familiar with this.