Repository navigation
Conversation
A Live Activity only redraws when an update reaches it, so with no network or a stopped app it cannot show that its data is old. staleDate is now 12 minutes after the reading and is sent in update pushes, so iOS can flag the activity without the app. Renewal relies only on laRenewBy and laRenewalFailed, so stale data no longer replaces the activity when the app opens; an activity with no stored deadline is still replaced, since it could never renew. The small family, shown on CarPlay and in the Watch Smart Stack: - A stale reading is struck out in red, with the BG and arrow grey. - A status line, on by default, shows the update time, IOB and COB (or Not Looping in their place) and any active override with its insulin needs, range and time left. While it is on, IOB, COB and Override are not offered for the right slot; a stored choice of one of them comes back when the line is turned off. Turning it off also restores the original font sizes. - A Tight CarPlay Layout switch, off by default, replaces the right slot with projected BG, IOB, COB and basal, and centres the bottom row. No API tells CarPlay from the Watch, so it also needs a width of at least 205 points: the 240-wide CarPlay layouts, not the 170-wide one. Both switches explain themselves in an info button.
1e17855 to
3e15548
Compare
|
Looks good overall, a few things I found:
|
- startIfNeeded now treats a .stale activity as updatable, like firstUpdatableActivity. With the stale date at reading + 12 min, .stale is a normal state, so skipping it could bind the wrong activity and then end the live one as an orphan. - The status line now starts off when the right slot holds IOB, COB or Override, so those users keep their slot and the original font sizes. The value is stored the first time the slot changes, so picking a new slot never turns the line on or off by itself. - The APNs expiry comment no longer refers to the old 8 h stale date.
|
Thanks for the review. All three are fixed in 57bd2ba:
|
A Live Activity only redraws when an update reaches it, so on CarPlay a reading can look current long after it has stopped updating.
Staleness
staleDateis set 12 minutes after the reading and sent in update pushes, so iOS can flag a stale activity on its own.laRenewByandlaRenewalFailed, so stale data no longer forces a replacement when the app opens.Small family (CarPlay and the Watch Smart Stack)
Tests cover the stale date, renewal, override details and the small-widget layout. A CarPlay widget follows in a separate PR.