Skip to content

Conversation

@olorinmaia
Copy link
Contributor

@olorinmaia olorinmaia commented Dec 30, 2025

Split out from: #4448

Problem
Duplicate "Enacted" and "Suggested" messages shown when they're the same
Stale enacted data in AAPSClient OpenAPS pill.

Solution
Show "Loop" label when enacted/suggested match
Hide stale enacted data

Testing
✅ TBR only
✅ SMB only
✅ TBR + SMB
✅ No changes loop
✅ Stale enacted data

Result: Cleaner, more accurate loop status display.

Some pictures to illustrate. See also: #3706

BEFORE

Duplicated data Stale enacted data Stale misleading enacted data
image image image

AFTER PR

Loop result AAPSClient OpenAPS pill
image image
image image
image image

Changes:
- ProcessedDeviceStatusDataImpl: Show "Loop" label when enacted and
  suggested have matching reasons within 30s window
- ProcessedDeviceStatusDataImpl: Show separate "Enacted"/"Suggested"
  labels only when reasons differ or enacted is stale

This ensures consistent behavior across wear and phone interfaces, avoids showing duplicate or stale
enacted data.
@sonarqubecloud
Copy link

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