Skip to content

Add a scheduled target line to the BG graph - #755

Open
kristinkand wants to merge 12 commits into
loopandlearn:devfrom
kristinkand:patch-1
Open

kristinkand wants to merge 12 commits into
loopandlearn:devfrom
kristinkand:patch-1

Conversation

@kristinkand

Copy link
Copy Markdown

Adds a dashed line to the BG graph tracking the profile's routine, schedule-based BG
target (target_high) over time -- mirrors the existing scheduled basal line
(basalScheduleData / scheduledBasalMarks) exactly, substituting the target schedule
for the basal schedule.

This only ever reflects the routine schedule, the same way the basal line does --
an active Override, Temp Target, or Weekend Profile is still shown separately via the
existing colored bands, so this doesn't change that behavior. target_high is used
specifically because it's the same value the existing "Target" info row already reads
from (currentTargetHigh()), so the new line never disagrees with that number.

New setting: "Graph Target Line" in Advanced Settings, default on, matching the
existing "Graph Basal" toggle's pattern.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This PR targets the main branch. We do not accept PRs directly to main — please retarget your PR to the dev branch instead.

@kristinkand
kristinkand changed the base branch from main to dev September 23, 2026 10:18
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