Skip to content

Compare a setup change until now with the 3 weeks before it - #2626

Merged
ps2 merged 1 commit into
next-devfrom
fix/current-setup-windows
Oct 28, 2026
Merged

ps2 merged 1 commit into
next-devfrom
fix/current-setup-windows

Conversation

@ps2

@ps2 ps2 commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Two changes to the Current Setup comparison.

The before period is always the 3 weeks before the change.

  • Before, it was the previous setup, up to 14 days, so a short previous setup left little or nothing to compare with.
  • As before, it's left out when CGM data covers less than 70% of that period.

Selecting an earlier change runs from that change until now.

  • Before, it showed only that setup, ending at the next change.
  • Now the selected change is the start of the window and the end is now, so an older change can be used as the start and the results include the later changes. The summary says so.

The Setup History rows still show each setup's own duration and time in range.

Testing
SetupComparisonTests were updated and pass, along with SetupChangeTests.

The before period was the previous setup, up to 14 days, so a short previous
setup left little or nothing to compare with. It is now always the 3 weeks
before the change.

Selecting an earlier change used to show only that setup, until the next
change. It now runs from the selected change until now, including the later
changes, so an older change can be used as the start of the window.
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.

1 participant