Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.0] Reload on inactive tabs #1761

Merged
merged 7 commits into from
Nov 7, 2019
Merged

[8.0] Reload on inactive tabs #1761

merged 7 commits into from
Nov 7, 2019

Commits on Nov 6, 2019

  1. Add new reload interval settings

    Add reloadIntervalActive and reloadIntervalInactive settings.
    bjoernricks committed Nov 6, 2019
    Configuration menu
    Copy the full SHA
    df77adc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9eda459 View commit details
    Browse the repository at this point in the history
  3. Introduce three different reload intervals

    1. default reload interval -> used by default (15 seconds)
    2. reload interval active -> used when an "active" process like scan is
      running (3 seconds)
    3. reload interval inactive -> used when a page will "inactive" (60
      seconds)
    bjoernricks committed Nov 6, 2019
    Configuration menu
    Copy the full SHA
    b9ba580 View commit details
    Browse the repository at this point in the history
  4. Consider reload as inactive if the browser tab is hidden

    Add handlers for visibility changed events. If the current window/tab
    gets hidden the next reload interval will be "inactive" (60 seconds). If
    the window/tab gets activated again to current timer will be aborted and
    a new timer will be started. This new timer can be an active (3 seconds)
    or default (15 seconds) reload timer depending on the current page
    state.
    bjoernricks committed Nov 6, 2019
    Configuration menu
    Copy the full SHA
    de26575 View commit details
    Browse the repository at this point in the history
  5. Update tests for Reload component changes

    Some of the behavior is tested only indirectly (e.g the exact used
    interval) because with class components it isn't possible to access and
    test internals.
    bjoernricks committed Nov 6, 2019
    Configuration menu
    Copy the full SHA
    36bcce3 View commit details
    Browse the repository at this point in the history
  6. Add changelog entry

    bjoernricks committed Nov 6, 2019
    Configuration menu
    Copy the full SHA
    17294cd View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2019

  1. Fix typo

    removeVisibilityListender -> removeVisibilityListener
    
    Co-Authored-By: Steffen Waterkamp <[email protected]>
    bjoernricks and swaterkamp authored Nov 7, 2019
    Configuration menu
    Copy the full SHA
    3fed605 View commit details
    Browse the repository at this point in the history