-
Notifications
You must be signed in to change notification settings - Fork 293
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
Dashboard search visitors widget uses incorrect condition for whether to display zero data state #3880
Comments
IB ✅ |
QA Update: ❌@johnPhillips I have a test site that has zero search but does have user data in analytics in other channels. When I go to Site Kit Dashboard, an error appears. Not sure if this helps, but the error does not appear when you have search data. If you would like access to this site please let me know |
QA Update: ✅Observed the Zero total users, including from search (should display 'zero data' state) @johnPhillips I did notice that the graph underneath the |
Bug Description
There's a problem with the
DashboardSearchVisitorsWidget
, related to the improvements in #3064: Similar to howDashboardGoalsWidget
does, that widget should only render in aWidgetZeroData
state if there is actually no data at all, which in this case cannot be determined based on the regularly used query of the widget alone, since that widget only queries the users from Search. We need to make this check based on whether no users at all were present in the time, otherwise it can lead to incorrect and confusing UX (see below).The experience here is quite confusing since the All Traffic widget shows data (because there _is_ data, even if super little), while at the same time the small widget which should display the visitors from Search displays the "zero data" blue box below. There is data, so it's not like we're waiting for data in this scenario.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
DashboardSearchVisitorsWidget
should also get the number of total users in the period and only based on that show or not show theWidgetZeroData
UI.Implementation Brief
assets/js/modules/analytics/components/dashboard/DashboardSearchVisitorsWidget.js
,getReport
selector, passing the values for:WidgetReportZero
component if the total users is zero in addition to the existing conditions.Test Coverage
Visual Regression Changes
QA Brief
Unique Visitors from Search
widget under the search funnel section of the dashboard:Changelog entry
The text was updated successfully, but these errors were encountered: