nightscout / Trio

MIT License
45 stars 125 forks source link

add manual glucose value visualization to chart and history #332

Closed mountrcg closed 6 days ago

mountrcg commented 1 week ago
Visualize manual Glucose (finger prick) in Chart and history Chart History
Simulator Screenshot - Dev 13 mini - 2024-06-24 at 16 57 14 Simulator Screenshot - Dev 13 mini - 2024-06-24 at 16 57 04
dnzxy commented 1 week ago

Thank you for tackling this and bringing this small change to Trio.

If I may ask, why the ZStack and to achieve the white outline, and why the white outline? Wouldn’t this also work? Just asking because I seldom see icons have borders on iOS.

image

mountrcg commented 1 week ago

If I may ask, why the ZStack and to achieve the white outline, and why the white outline? Wouldn’t this also work? Just asking because I seldom see icons have borders on iOS.

fixed!

MikePlante1 commented 1 week ago

I just merged this into alpha to test this on a simulator.

I noticed this PR breaks the display when using "Glucose Simulator" for cgm, but it seems that's probably not really so much a problem with this PR as it is that readings from Glucose Simulator use nil for type instead of sgv.

marionbarker commented 1 week ago

Summary

Success using NS as a CGM Switched to CGM simulator and it continued to work - not sure of the configuration that @MikePlante1 referred to.

Test

Began with SE running Trio, alpha branch, commit 3ec6176d, rPi DASH pod and NS as CGM

marionbarker commented 1 week ago

Realized I had not tested deleting the manual Glucose entry. Returned and test that too. Works as expected.

MikePlante1 commented 6 days ago

not sure of the configuration that @MikePlante1 referred to.

I did an Erase all content and settings on this iPhone 15 Pro simulator before building alpha + PR332 to it:

https://github.com/nightscout/Trio/assets/82073483/075a4bae-6e2c-4c52-bf86-00ecc504e9d6

mountrcg commented 6 days ago
Glucose dots for Glucose Simulator and Freestyle Libre Demo are drawn. Only Glucose Simulator dots were not shown due to filtering, Freestyle Libre Demo dots were unaffected (dots before the big glucose jump are Freestyle Libre Demo, after the jump Glucose Simulator)! Test without filter adjustment Filter adjusted
Simulator Screenshot - Dev 13 mini - 2024-06-26 at 11 56 47 Simulator Screenshot - Dev 13 mini - 2024-06-26 at 11 53 17
mountrcg commented 6 days ago

I just merged this into alpha to test this on a simulator.

I noticed this PR breaks the display when using "Glucose Simulator" for cgm, but it seems that's probably not really so much a problem with this PR as it is that readings from Glucose Simulator use nil for type instead of sgv.

yes the culprit was this PR! Fixed now - see above.

MikePlante1 commented 6 days ago

I just retested and confirmed Glucose Simulator display is now fixed. Built it to my live phone as well and everything works great. I did notice some linting from Xcode, but after that's addressed I'll give it a ✅ based on both code review and testing.

Screenshot 2024-06-26 at 11 42 07 AM
Sjoerd-Bo3 commented 6 days ago

Got sniped by @dnzxy there 🐌, But also LGTM!