site-kit-wp icon indicating copy to clipboard operation
site-kit-wp copied to clipboard

PageSpeed insights widget does not show loading state when date range changes

Open aaemnnosttv opened this issue 7 years ago • 2 comments

Bug Description

Currently the PSI widget components refetch data when the date range changes on the page (not sure if this should happen?). It does not go back into a loading state when this happens, inner widgets just disappear temporarily.

Expected (assuming this data is date-range specific and needs to be refetched) image

Actual image

Note, this varies how long it stays in this state; sometimes it is fairly quick, others it takes about as long as the initial load.

Steps to reproduce

  1. Go to dashboard
  2. Activate PageSpeed Insights
  3. After initial loading completes, change the date range
  4. See inner PSI widgets have disappeared with no loading state

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

PSI stats are not connected to a specific time-frame. If a user changes the date range for the rest of the dashboard:

  • PSI module should remain as-is, no need to re-fetch the data.

Implementation Brief

  • Specify a static dateRange for pagespeed requests
    This will prevent the date range changes from inheriting the dateRange from the page/dropdown
  • Merge #1047

Changelog entry

  • Do not refetch PageSpeed Insights data when the date range selector is changed, as its data its date-agnostic.

aaemnnosttv avatar Nov 21 '19 09:11 aaemnnosttv

IB ✅

felixarntz avatar Jan 16 '20 11:01 felixarntz

Tested Page speed insights is confirmed functional and agnostic regardless of date range and is able to be disconnected and reconnected without issue.

Site Kit by Google Dashboard ‹ googlekitlocal 10uplabs com — WordPress (2)

Passed QA ✅

cole10up avatar Jan 22 '20 07:01 cole10up