Skip to content

Feature/tir band - #766

Closed
kristinkand wants to merge 4 commits into
loopandlearn:devfrom
kristinkand:feature/tir-band
Closed

kristinkand wants to merge 4 commits into
loopandlearn:devfrom
kristinkand:feature/tir-band

Conversation

@kristinkand

Copy link
Copy Markdown

Adds an optional Time in Range band to the home screen as an alternative to
the statistics box, similar to the stats banner in Trio.

  • Shows today's (since midnight) time in range as a percentage above a
    segmented bar: very low (<54 mg/dL), low, in range, high.
  • The range follows the existing Range Mode setting (TIR, TITR or Custom),
    and the title changes accordingly.
  • New "Stats Style" setting (Statistics Box / Time in Range Band) in
    General and in Units and Metrics. Default is the existing Statistics Box,
    so nothing changes for current users.
  • Tapping the band opens the statistics screen, like the statistics box.
  • Also refreshes the home screen stats immediately when Range Mode changes.
IMG_1747 IMG_1748

bjorkert and others added 2 commits October 10, 2026 13:37
The band now uses TIRCalculator, so each reading is counted once with
the same 54 and 250 mg/dL cutoffs as the TIR chart in Stats. It also
has a very high segment and uses the same colors as that chart. Every
non-empty segment gets a minimum width so a single low reading stays
visible, and the bar fills the full width of the band. The Stats Style
setting is only in General.
@kristinkand

Copy link
Copy Markdown
Author

Superseded by #774, which includes this band (with Jonas's fixes) rebased on the current dev, plus a shared period for the statistics box and the band.

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.

2 participants