Skip to content

Improve OpenAPS reason display logic for AAPSClient#4452

Closed
olorinmaia wants to merge 1 commit intonightscout:devfrom
olorinmaia:improve_extendedopenapsstatus
Closed

Improve OpenAPS reason display logic for AAPSClient#4452
olorinmaia wants to merge 1 commit intonightscout:devfrom
olorinmaia:improve_extendedopenapsstatus

Conversation

@olorinmaia
Copy link
Copy Markdown
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
Copy Markdown

@MilosKozak
Copy link
Copy Markdown
Contributor

this will be new in compose

@MilosKozak MilosKozak closed this Mar 8, 2026
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