Skip to content

Conversation

@KaiVandivier
Copy link
Contributor

@KaiVandivier KaiVandivier commented Apr 4, 2025

Related to DHIS2-19285

Uses document visibility to decide whether to ping instead of window focus. Window focus can be insufficient if focus is in iframes on the page, as seen in the Jira issue above

A downside is that this may lead to multiple apps in iframes in a page all issuing pings -- I think using document visibility vs window focus should be a configurable thing, so an app like the global shell can still update its online status with pings as long as the page is visible, while all other apps only update with pings when focused. The latter has been working so far, since apps generally need to know the status once they're interacted with. I don't think we want the dashboard app and all its plugins sending pings, for example

This PR is in a draft while that configuration is considered

Checklist

  • Have written Documentation
  • Has tests coverage

Screenshots

In action in the global shell:

offline-indicator.mov

@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 4, 2025

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