Skip to content

Use the selected range mode for Live Activity colors - #762

Merged
marionbarker merged 1 commit into
devfrom
fix/la-color-range-mode
Oct 16, 2026
Merged

marionbarker merged 1 commit into
devfrom
fix/la-color-range-mode

Conversation

@bjorkert

Copy link
Copy Markdown
Member

The Live Activity always colored the reading against the custom low and high lines, even when TIR or TITR was selected, so it could disagree with the chart and the BG header. It now uses the same range as the rest of the app: 70-180 for TIR, 70-140 for TITR, and the user's lines for Custom.

A reading exactly on the low or high line now counts as low or high, matching the header. Changing the range mode refreshes the Live Activity, and a change in range is enough to push an update even if the reading itself hasn't changed.

The Live Activity now colors the reading against the same low and high
values as the chart and BG header, so TIR and TITR use 70-180 and
70-140 and Custom uses the user's lines. A reading exactly on a line
counts as low or high, like in the header. Changing the range mode
refreshes the Live Activity.

@codebymini codebymini left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marionbarker marionbarker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code change is approved. I tested that it builds.

@marionbarker
marionbarker merged commit 4530d57 into dev Oct 16, 2026
1 check passed
@marionbarker
marionbarker deleted the fix/la-color-range-mode branch October 16, 2026 22:49
kristinkand added a commit to kristinkand/LoopFollow that referenced this pull request Oct 17, 2026
Brings in the larger Snoozer text (loopandlearn#749), the APNS environment shown as info
(loopandlearn#776), and the final narrow-screen Live Activity fix (loopandlearn#775). Integration
already had loopandlearn#757, loopandlearn#764, loopandlearn#769 and remote meal edit/delete; for loopandlearn#762 it keeps
its own range-mode thresholds and the dynamic Live Activity colors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LgnnHLJbhxmQaEjQNYR5VZ
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