Skip to content

Show active override and temp target with remaining time on the Live Activity and in the remote command views#719

Open
bjorkert wants to merge 2 commits into
devfrom
feature/la-override-tt-countdown
Open

Show active override and temp target with remaining time on the Live Activity and in the remote command views#719
bjorkert wants to merge 2 commits into
devfrom
feature/la-override-tt-countdown

Conversation

@bjorkert

@bjorkert bjorkert commented Jul 23, 2026

Copy link
Copy Markdown
Member

The Live Activity gets a new row between the metric grid and the footer that shows the active override and/or temp target. The row only appears while one of them is active. When 2 hours or less remain, a live countdown ticks next to the name or target value. Longer or indefinite overrides show just the name, since a multi-day ticker gets silly. The same row appears in the expanded Dynamic Island above the updated-at line.

Since the row makes the Override grid slot redundant, it is removed from the four grid slot pickers. Stored selections from older versions render as an empty cell. It is still selectable for the CarPlay/Watch slot, which has no row.

The remote command views also show the remaining time of the active override or temp target: the Trio override and temp target views get a Time Remaining row, and the Loop override presets view shows it under the active override name. A countdown when 2 hours or less remain, otherwise a static duration like 5h 30m. Durations of a week or longer are treated as indefinite and show no remaining time at all, since Trio represents indefinite overrides and temp targets as 30 day durations.

On the remote control overview, the Overrides and Temp Target buttons get a green ring and glow while the corresponding override or temp target is active.

The end times come from the treatments parsing and travel to the extension via three new optional snapshot fields. Indefinite Loop overrides ship no end time, and the graph-edge clamp used for the chart bands is not applied to these, so long overrides count down correctly. Also clears the active override and temp target observables when treatments age out of the download window, which previously left them stale.

…ommand buttons while an override or temp target is active
@bjorkert

Copy link
Copy Markdown
Member Author
FE585A76-C271-4C20-AEB6-885A6B0C23E3_1_105_c B7E4726E-E044-4B7F-8207-6547E9E6AF32 22B6C60B-2F61-40A0-B617-B9C54F22EEA6

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