Skip to content

Add CGM status highlight#981

Draft
bastiaanv wants to merge 4 commits intonightscout:devfrom
bastiaanv:feat/cgm-highlight
Draft

Add CGM status highlight#981
bastiaanv wants to merge 4 commits intonightscout:devfrom
bastiaanv:feat/cgm-highlight

Conversation

@bastiaanv
Copy link
Copy Markdown
Contributor

@bastiaanv bastiaanv commented Feb 19, 2026

With CGM's like Eversense and Accu Chek, it is important to be aware of any required actions, like calibrations or critical issues. LoopKit provides the cgmStatusHighlight for this use case. Currently, only the G7 CGM has implemented this, but I believe this should be implemented in every CGMKit and Trio should show this highlight.

Current proposal (when clicking on the badge the CGM sheet opens, design is copied from the pump timezone warning):

IMG_1385 IMG_1386

If this proposal gets approved, the following items need to be done:

  • Are we cool with the current design?
  • Should we show all highlights or only warning/critical? -> Should we show Searching for sensor link
  • Do we want to show the image?
  • Implement cgmStatusHighlight on other CGMKit's, like LibreTransmitter, G6/G7, EversenseKit

@dnzxy dnzxy marked this pull request as draft February 19, 2026 19:51
@dnzxy dnzxy changed the title DRAFT: CGM status highlight Add CGM status highlight Feb 19, 2026
@bastiaanv
Copy link
Copy Markdown
Contributor Author

bastiaanv commented Mar 2, 2026

@dnzxy @marionbarker
Regarding the cgm lifetime progress, what do we think of this?
A 10s loop between delta & lifetime progress. The transition isn't perfect yet, but it shows the idea

Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-03-02.at.21.38.54.mov

@dnzxy
Copy link
Copy Markdown
Contributor

dnzxy commented Mar 4, 2026

Is the progress bar supposed to replace delta and minute since?

@bastiaanv
Copy link
Copy Markdown
Contributor Author

No, it should toggle/transition between the delta and progress (as long as the CGM manager provides a progress).

I've been playing between a few designs and found these three to fit the best with the least amount of changes:
Screenshot 2026-03-04 at 18 42 23

Screenshot 2026-03-04 at 18 42 29 Screenshot 2026-03-04 at 18 48 41

We could also redesign the header to be a bit more like Loop, but it would be great to find something to show the cgm lifetime progress.

@dnzxy
Copy link
Copy Markdown
Contributor

dnzxy commented Mar 4, 2026

Make it a custom half circle progress that’s a second border of the header element.
I‘m still not sure when exactly this progress is supposed to be displayed. During warmup?

@bastiaanv
Copy link
Copy Markdown
Contributor Author

Not the prettiest Figma :D

Screenshot 2026-03-04 at 19 27 16

The G7 and Eversense shows it 24h before action. Calibration for Eversense, Expiration for Eversense

@dnzxy
Copy link
Copy Markdown
Contributor

dnzxy commented Mar 5, 2026

What I meant is something along the lines of this
image
or possibly below the bobble, or possibly as an additional "filling-up-like-progress-bar"-type second border of the circle (inner or outer)

If this is to introduce the same doubly-used control like used for Loop (one for expiration, one for calibration), I‘m quite opposed to that. UI elements need to have one meaning, not multiple. I brought up the same thing for how this was solved in Loop, which is less than ideal.

@mountrcg
Copy link
Copy Markdown
Contributor

I like those features a lot. I read the article on the nightscout foundation discord.

The scripts work fine, e.g. cgm_sensor_integrity_detector.py from his linked github. I am amazed how bad my g6 is sometimes on day 1, I mean I know but seeing it black on white to have a purple day 1 on most of my sensors is another thing. It be nice to ask for fingerprick in those moments, same as in your screenshot at very first post.

@dnzxy
Copy link
Copy Markdown
Contributor

dnzxy commented Mar 26, 2026

The proposed status highlight here is sensor lifetime / duration. This has nothing to do with Heller‘s SID degradation and how it could potentially be added as a UI enhancement in OSAID.

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