Skip to content

Watch: centered glucose page, working chart scrubbing, and overrides - #789

Merged
bjorkert merged 4 commits into
loopandlearn:feature/apple-watchfrom
achkars-org:feature/watch-chart-overrides
Oct 23, 2026
Merged

bjorkert merged 4 commits into
loopandlearn:feature/apple-watchfrom
achkars-org:feature/watch-chart-overrides

Conversation

@MtlPhil

@MtlPhil MtlPhil commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Glucose page

  • The BG digits and delta are centered. The trend arrow hangs off the number's trailing edge instead of pushing the digits left.
  • IOB and COB share one line under the delta, with syringe and fork-and-knife icons, instead of IOB in the top toolbar and COB below.
  • The running override shows as a green line with its name and insulin-needs percentage.

Chart page

  • Fix: the Digital Crown now scrubs after tapping the chart. Focus was requested in the same update that made the page focusable, so it was dropped and the crown kept paging.
  • A crown button in the toolbar makes scrubbing discoverable and toggles it. It turns green while active.
  • While scrubbing, a row under the chart shows the time, a range-colored dot with the BG, and any carbs and boluses within the marker's five-minute crown step. It sits below the chart, clear of the toolbar buttons.
  • Overrides draw as a thin green band along the top of the chart. A line under the chart shows the running override's name and percentage, or the one at the marker while scrubbing.

Phone → watch

  • WatchState gains an optional overrides list (start, end, name, percent) covering the last 24 hours, built from overrideGraphData. When the Nightscout entry carries no insulin-needs factor (Trio's may not), the percentage comes from the preset with the same name. The field is optional, so the watch's own Nightscout fetch and older cached state still decode.

Notes

  • The insulin on the scrub row includes SMBs, matching the bolus markers on the chart.
  • If a preset was edited after an override started, the fallback percentage reflects the preset's current value.

…n the chart page

The trend arrow no longer shifts the BG digits or the delta off center, and
IOB and COB share one line under the delta with syringe and fork-and-knife icons.

On the chart page, crown focus is now requested after the page becomes
focusable, so the crown scrubs instead of paging. A crown button in the
toolbar shows the feature and toggles it.
The readout moves below the chart so it no longer collides with the toolbar
buttons, and shows a range-colored dot with the BG plus any carbs and boluses
that fall within the marker's five-minute crown step.
…on the glucose page

The phone now sends the override periods of the last 24 hours with their
name and insulin needs, taking the percentage from the matching preset when
Nightscout does not carry it. The chart draws them as a thin green band along
the top, and the glucose page shows the running override's name and
percentage under IOB and COB.
The line shows the running override, or the one at the marker while
scrubbing, and shares its view with the glucose page.
@bjorkert
bjorkert merged commit 657000a into loopandlearn:feature/apple-watch Oct 23, 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