Skip to content

TIR band: custom range bounds, threshold refresh, shared title - #58

Merged
kristinkand merged 3 commits into
kristinkand:feature/stats-periodfrom
bjorkert:stats-period-fixes
Oct 10, 2026
Merged

kristinkand merged 3 commits into
kristinkand:feature/stats-periodfrom
bjorkert:stats-period-fixes

Conversation

@bjorkert

Copy link
Copy Markdown

Follow-ups for loopandlearn#774.

  • Custom range bounds: very low and very high are clamped so they never overlap a custom range (very low below min(54, low), very high above max(250, high)). With a custom range such as 45–300 mg/dL, in range in the TIR band and the Stats screen now matches the statistics box.
  • Threshold refresh: the home screen stats and TIR band refresh when the custom low or high threshold is edited.
  • Shared title: UnitSettingsStore.timeInRangeTitle provides the Range Mode title for both the TIR band and the Stats screen, so Custom mode reads "Custom Range" in both places.

Very low is below the lower of 54 mg/dL and the range's low bound, and very high is above the higher of 250 mg/dL and the range's high bound. In range in the TIR band and the Stats screen then matches the statistics box for any custom range.
@kristinkand
kristinkand merged commit 4abab5c into kristinkand:feature/stats-period Oct 10, 2026
1 check passed
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